Skip to content

Commit

Permalink
feat: add new 'anthropic-beta' header for Claude 3.7 to include token…
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-avila committed Feb 28, 2025
1 parent b02abd1 commit 0c208b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/server/services/Endpoints/anthropic/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ function getClaudeHeaders(model, supportsCacheControl) {
};
} else if (/claude-3[-.]7/.test(model)) {
return {
'anthropic-beta': 'output-128k-2025-02-19,prompt-caching-2024-07-31',
'anthropic-beta':
'token-efficient-tools-2025-02-19,output-128k-2025-02-19,prompt-caching-2024-07-31',
};
} else {
return {
Expand Down

0 comments on commit 0c208b3

Please sign in to comment.