Skip to content

Comments

improvement: Adds a user-agent header for Anthropic API calls#1524

Open
mikelambert wants to merge 2 commits intoPortkey-AI:mainfrom
mikelambert:mike/user-agent
Open

improvement: Adds a user-agent header for Anthropic API calls#1524
mikelambert wants to merge 2 commits intoPortkey-AI:mainfrom
mikelambert:mike/user-agent

Conversation

@mikelambert
Copy link

Description: (required)

  • Adds a user-agent header for Anthropic API calls

Tests Run/Test cases added: (required)
Tests that the anthropic api passes the user-agent header and the api key

Type of Change:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)

mikelambert and others added 2 commits February 9, 2026 11:15
Passes User-Agent: portkey-ai-gateway/1.15.2 when proxying to
Anthropic so they can identify traffic from Portkey.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Follows the project convention of mirroring src/ structure under tests/unit/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mikelambert mikelambert changed the title Adds a user-agent header for Anthropic API calls improvement: Adds a user-agent header for Anthropic API calls Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant