From d5992a294f20925748cfe7c2cd2a1cc30af745a2 Mon Sep 17 00:00:00 2001 From: daniel-lxs Date: Mon, 24 Nov 2025 15:44:41 -0500 Subject: [PATCH 1/2] feat: add claude-opus-4.5 to Anthropic and Vertex providers --- packages/types/src/providers/anthropic.ts | 11 +++++++++++ packages/types/src/providers/vertex.ts | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/packages/types/src/providers/anthropic.ts b/packages/types/src/providers/anthropic.ts index 766869c7e6e..27b57141913 100644 --- a/packages/types/src/providers/anthropic.ts +++ b/packages/types/src/providers/anthropic.ts @@ -48,6 +48,17 @@ export const anthropicModels = { }, ], }, + "claude-opus-4-5-20251101": { + maxTokens: 32_000, // Overridden to 8k if `enableReasoningEffort` is false. + contextWindow: 200_000, + supportsImages: true, + supportsPromptCache: true, + inputPrice: 15.0, // $15 per million input tokens + outputPrice: 75.0, // $75 per million output tokens + cacheWritesPrice: 18.75, // $18.75 per million tokens + cacheReadsPrice: 1.5, // $1.50 per million tokens + supportsReasoningBudget: true, + }, "claude-opus-4-1-20250805": { maxTokens: 32_000, // Overridden to 8k if `enableReasoningEffort` is false. contextWindow: 200_000, diff --git a/packages/types/src/providers/vertex.ts b/packages/types/src/providers/vertex.ts index e533992bd11..494003dfe2d 100644 --- a/packages/types/src/providers/vertex.ts +++ b/packages/types/src/providers/vertex.ts @@ -220,6 +220,17 @@ export const vertexModels = { cacheReadsPrice: 0.1, supportsReasoningBudget: true, }, + "claude-opus-4-5@20251101": { + maxTokens: 8192, + contextWindow: 200_000, + supportsImages: true, + supportsPromptCache: true, + inputPrice: 15.0, + outputPrice: 75.0, + cacheWritesPrice: 18.75, + cacheReadsPrice: 1.5, + supportsReasoningBudget: true, + }, "claude-opus-4-1@20250805": { maxTokens: 8192, contextWindow: 200_000, From afff8882e661f2982db1f15045a2a4ed11dc5680 Mon Sep 17 00:00:00 2001 From: daniel-lxs Date: Mon, 24 Nov 2025 15:51:35 -0500 Subject: [PATCH 2/2] fix: update claude-opus-4.5 pricing to correct rates (/5 instead of 5/5) --- packages/types/src/providers/anthropic.ts | 8 ++++---- packages/types/src/providers/vertex.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/types/src/providers/anthropic.ts b/packages/types/src/providers/anthropic.ts index 27b57141913..883b6eb7160 100644 --- a/packages/types/src/providers/anthropic.ts +++ b/packages/types/src/providers/anthropic.ts @@ -53,10 +53,10 @@ export const anthropicModels = { contextWindow: 200_000, supportsImages: true, supportsPromptCache: true, - inputPrice: 15.0, // $15 per million input tokens - outputPrice: 75.0, // $75 per million output tokens - cacheWritesPrice: 18.75, // $18.75 per million tokens - cacheReadsPrice: 1.5, // $1.50 per million tokens + inputPrice: 5.0, // $5 per million input tokens + outputPrice: 25.0, // $25 per million output tokens + cacheWritesPrice: 6.25, // $6.25 per million tokens + cacheReadsPrice: 0.5, // $0.50 per million tokens supportsReasoningBudget: true, }, "claude-opus-4-1-20250805": { diff --git a/packages/types/src/providers/vertex.ts b/packages/types/src/providers/vertex.ts index 494003dfe2d..6805f17d891 100644 --- a/packages/types/src/providers/vertex.ts +++ b/packages/types/src/providers/vertex.ts @@ -225,10 +225,10 @@ export const vertexModels = { contextWindow: 200_000, supportsImages: true, supportsPromptCache: true, - inputPrice: 15.0, - outputPrice: 75.0, - cacheWritesPrice: 18.75, - cacheReadsPrice: 1.5, + inputPrice: 5.0, + outputPrice: 25.0, + cacheWritesPrice: 6.25, + cacheReadsPrice: 0.5, supportsReasoningBudget: true, }, "claude-opus-4-1@20250805": {