File tree Expand file tree Collapse file tree 2 files changed +3
-15
lines changed
Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export class AnthropicHandler extends BaseProvider implements SingleCompletionHa
8686 const betas = [ ]
8787
8888 // Check for the thinking-128k variant first
89- if ( virtualId === "claude-3-7-sonnet-20250219:thinking-128k " ) {
89+ if ( virtualId === "claude-3-7-sonnet-20250219:thinking" ) {
9090 betas . push ( "output-128k-2025-02-19" )
9191 }
9292
@@ -201,7 +201,7 @@ export class AnthropicHandler extends BaseProvider implements SingleCompletionHa
201201 // The `:thinking` variant is a virtual identifier for the
202202 // `claude-3-7-sonnet-20250219` model with a thinking budget.
203203 // We can handle this more elegantly in the future.
204- if ( id === "claude-3-7-sonnet-20250219:thinking" || id === "claude-3-7-sonnet-20250219:thinking-128k" ) {
204+ if ( id === "claude-3-7-sonnet-20250219:thinking" ) {
205205 id = "claude-3-7-sonnet-20250219"
206206 }
207207
Original file line number Diff line number Diff line change @@ -98,20 +98,8 @@ export interface ModelInfo {
9898export type AnthropicModelId = keyof typeof anthropicModels
9999export const anthropicDefaultModelId : AnthropicModelId = "claude-3-7-sonnet-20250219"
100100export const anthropicModels = {
101- "claude-3-7-sonnet-20250219:thinking-128k" : {
102- maxTokens : 128_000 ,
103- contextWindow : 200_000 ,
104- supportsImages : true ,
105- supportsComputerUse : true ,
106- supportsPromptCache : true ,
107- inputPrice : 3.0 , // $3 per million input tokens
108- outputPrice : 15.0 , // $15 per million output tokens
109- cacheWritesPrice : 3.75 , // $3.75 per million tokens
110- cacheReadsPrice : 0.3 , // $0.30 per million tokens
111- thinking : true ,
112- } ,
113101 "claude-3-7-sonnet-20250219:thinking" : {
114- maxTokens : 64_000 ,
102+ maxTokens : 128_000 ,
115103 contextWindow : 200_000 ,
116104 supportsImages : true ,
117105 supportsComputerUse : true ,
You can’t perform that action at this time.
0 commit comments