From a04293cbba100b9e082d0570b66e0dd105d956e1 Mon Sep 17 00:00:00 2001 From: clonwu0120 Date: Sun, 10 May 2026 15:22:25 +0800 Subject: [PATCH 1/2] Update api.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新新模型 --- src/shared/api.ts | 57 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/src/shared/api.ts b/src/shared/api.ts index d9e40070..04c95c9c 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -328,6 +328,61 @@ export const anthropicDefaultModelId: AnthropicModelId = "claude-sonnet-4-5-2025 export const ANTHROPIC_MIN_THINKING_BUDGET = 1_024 export const ANTHROPIC_MAX_THINKING_BUDGET = 6_000 export const anthropicModels = { + "claude-opus-4-7-thinking": { + maxTokens: 8192, + contextWindow: 200_000, + supportsImages: true, + supportsPromptCache: true, + supportsReasoning: true, + inputPrice: 3.0, + outputPrice: 15.0, + cacheWritesPrice: 3.75, + cacheReadsPrice: 0.3, + }, + "claude-opus-4-7": { + maxTokens: 8192, + contextWindow: 200_000, + supportsImages: true, + supportsPromptCache: true, + supportsReasoning: true, + inputPrice: 3.0, + outputPrice: 15.0, + cacheWritesPrice: 3.75, + cacheReadsPrice: 0.3, + }, + "claude-sonnet-4-6": { + maxTokens: 8192, + contextWindow: 200_000, + supportsImages: true, + supportsPromptCache: true, + supportsReasoning: true, + inputPrice: 3.0, + outputPrice: 15.0, + cacheWritesPrice: 3.75, + cacheReadsPrice: 0.3, + }, + "claude-opus-4-6-thinking": { + maxTokens: 8192, + contextWindow: 200_000, + supportsImages: true, + supportsPromptCache: true, + supportsReasoning: true, + inputPrice: 3.0, + outputPrice: 15.0, + cacheWritesPrice: 3.75, + cacheReadsPrice: 0.3, + }, + "claude-opus-4-6": { + maxTokens: 8192, + contextWindow: 200_000, + supportsImages: true, + supportsPromptCache: true, + supportsReasoning: true, + inputPrice: 3.0, + outputPrice: 15.0, + cacheWritesPrice: 3.75, + cacheReadsPrice: 0.3, + }, "claude-sonnet-4-5-20250929": { maxTokens: 8192, contextWindow: 200_000, @@ -339,7 +394,7 @@ export const anthropicModels = { cacheWritesPrice: 3.75, cacheReadsPrice: 0.3, }, - "claude-sonnet-4-5-20250929:1m": { + "claude-sonnet-4-5-20250929:1m": { maxTokens: 8192, contextWindow: 1_000_000, supportsImages: true, From 3cddce66c3c0c2a4f6e2c17e3d58f209a2bb0e1c Mon Sep 17 00:00:00 2001 From: clonwu0120 Date: Sun, 10 May 2026 15:30:16 +0800 Subject: [PATCH 2/2] Update api.ts --- src/shared/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/api.ts b/src/shared/api.ts index 04c95c9c..823dd4a7 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -324,7 +324,7 @@ export const hicapModelInfoSaneDefaults: HicapCompatibleModelInfo = { // Anthropic // https://docs.anthropic.com/en/docs/about-claude/models // prices updated 2025-01-02 export type AnthropicModelId = keyof typeof anthropicModels -export const anthropicDefaultModelId: AnthropicModelId = "claude-sonnet-4-5-20250929" +export const anthropicDefaultModelId: AnthropicModelId = "claude-opus-4-7" export const ANTHROPIC_MIN_THINKING_BUDGET = 1_024 export const ANTHROPIC_MAX_THINKING_BUDGET = 6_000 export const anthropicModels = {