Skip to content

Add header mutation for anthropic version in sample#1909

Closed
jimangel wants to merge 1 commit intoenvoyproxy:mainfrom
jimangel:patch-1
Closed

Add header mutation for anthropic version in sample#1909
jimangel wants to merge 1 commit intoenvoyproxy:mainfrom
jimangel:patch-1

Conversation

@jimangel
Copy link

@jimangel jimangel commented Mar 2, 2026

Add header mutation to set anthropic version (https://platform.claude.com/docs/en/api/versioning).

Otherwise:

{"type":"error","error":{"type":"invalid_request_error","message":"anthropic-version: header is required"},"request_id":"..."}

Description

Related Issues/PRs (if applicable)

Special notes for reviewers (if applicable)

Add header mutation to set anthropic version (https://platform.claude.com/docs/en/api/versioning).

Otherwise:

```
{"type":"error","error":{"type":"invalid_request_error","message":"anthropic-version: header is required"},"request_id":"..."}
```

Signed-off-by: Jim Angel <jimangel@users.noreply.github.com>
@jimangel jimangel requested a review from a team as a code owner March 2, 2026 18:35
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Mar 2, 2026
@mathetake
Copy link
Member

i mean why? you should send from your client in the first place, no?

@mathetake mathetake closed this Mar 3, 2026
@mathetake
Copy link
Member

if this is about the translation case (#1878), then the translator should set it, not via the API settings like this

@jimangel jimangel deleted the patch-1 branch March 3, 2026 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants