diff --git a/src/shared/api.ts b/src/shared/api.ts index d9e40070..823dd4a7 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -324,10 +324,65 @@ 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 = { + "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,