Skip to content

Commit ef93f5d

Browse files
committed
refactor: always enable 128k for simplification
1 parent 38cf054 commit ef93f5d

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

src/api/providers/anthropic.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/shared/api.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -98,20 +98,8 @@ export interface ModelInfo {
9898
export type AnthropicModelId = keyof typeof anthropicModels
9999
export const anthropicDefaultModelId: AnthropicModelId = "claude-3-7-sonnet-20250219"
100100
export 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,

0 commit comments

Comments
 (0)