mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
Remove unnecessary beta header from Anthropic provider
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"name": "claude-dev",
|
"name": "claude-dev",
|
||||||
"displayName": "Claude Dev",
|
"displayName": "Claude Dev",
|
||||||
"description": "Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, and more with your permission every step of the way.",
|
"description": "Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, and more with your permission every step of the way.",
|
||||||
"version": "1.3.42",
|
"version": "1.3.43",
|
||||||
"icon": "icon.png",
|
"icon": "icon.png",
|
||||||
"engines": {
|
"engines": {
|
||||||
"vscode": "^1.84.0"
|
"vscode": "^1.84.0"
|
||||||
|
|||||||
@@ -60,7 +60,6 @@ export class AnthropicHandler implements ApiHandler {
|
|||||||
tool_choice: { type: "auto" },
|
tool_choice: { type: "auto" },
|
||||||
},
|
},
|
||||||
(() => {
|
(() => {
|
||||||
// 8192 tokens: https://x.com/alexalbert__/status/1812921642143900036
|
|
||||||
// prompt caching: https://x.com/alexalbert__/status/1823751995901272068
|
// 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?tab=readme-ov-file#default-headers
|
||||||
// https://github.com/anthropics/anthropic-sdk-typescript/commit/c920b77fc67bd839bfeb6716ceab9d7c9bbe7393
|
// https://github.com/anthropics/anthropic-sdk-typescript/commit/c920b77fc67bd839bfeb6716ceab9d7c9bbe7393
|
||||||
@@ -68,7 +67,7 @@ export class AnthropicHandler implements ApiHandler {
|
|||||||
case "claude-3-5-sonnet-20240620":
|
case "claude-3-5-sonnet-20240620":
|
||||||
return {
|
return {
|
||||||
headers: {
|
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":
|
case "claude-3-haiku-20240307":
|
||||||
|
|||||||
Reference in New Issue
Block a user