Remove unnecessary beta header from Anthropic provider

This commit is contained in:
Saoud Rizwan
2024-08-22 04:32:06 -04:00
parent 10063c11b0
commit e8df2400bf
2 changed files with 2 additions and 3 deletions

View File

@@ -60,7 +60,6 @@ export class AnthropicHandler implements ApiHandler {
tool_choice: { type: "auto" },
},
(() => {
// 8192 tokens: https://x.com/alexalbert__/status/1812921642143900036
// prompt caching: https://x.com/alexalbert__/status/1823751995901272068
// https://github.com/anthropics/anthropic-sdk-typescript?tab=readme-ov-file#default-headers
// https://github.com/anthropics/anthropic-sdk-typescript/commit/c920b77fc67bd839bfeb6716ceab9d7c9bbe7393
@@ -68,7 +67,7 @@ export class AnthropicHandler implements ApiHandler {
case "claude-3-5-sonnet-20240620":
return {
headers: {
"anthropic-beta": "prompt-caching-2024-07-31,max-tokens-3-5-sonnet-2024-07-15",
"anthropic-beta": "prompt-caching-2024-07-31",
},
}
case "claude-3-haiku-20240307":