-
Notifications
You must be signed in to change notification settings - Fork 76
feat: add Claude Opus 4.8 support across Anthropic, Bedrock, and Vertex providers #386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
fe85368
6d951a0
c53ab50
7631312
25a23dd
8618f84
506bc9a
26c4447
bf2129a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -167,6 +167,56 @@ export const bedrockModels = { | |
| }, | ||
| ], | ||
| }, | ||
| "anthropic.claude-opus-4-7": { | ||
| maxTokens: 8192, | ||
| contextWindow: 200_000, // Default 200K, extendable to 1M with beta flag 'context-1m-2025-08-07' | ||
| supportsImages: true, | ||
| supportsPromptCache: true, | ||
| supportsReasoningBudget: true, | ||
| inputPrice: 5.0, // $5 per million input tokens (≤200K context) — verify against Bedrock console | ||
| outputPrice: 25.0, // $25 per million output tokens (≤200K context) — verify against Bedrock console | ||
| cacheWritesPrice: 6.25, // $6.25 per million tokens | ||
| cacheReadsPrice: 0.5, // $0.50 per million tokens | ||
| minTokensPerCachePoint: 1024, | ||
| maxCachePoints: 4, | ||
| cachableFields: ["system", "messages", "tools"], | ||
| // Tiered pricing for extended context (requires beta flag 'context-1m-2025-08-07') | ||
| tiers: [ | ||
| { | ||
| contextWindow: 1_000_000, // 1M tokens with beta flag | ||
| inputPrice: 10.0, // $10 per million input tokens (>200K context) | ||
| outputPrice: 37.5, // $37.50 per million output tokens (>200K context) | ||
| cacheWritesPrice: 12.5, // $12.50 per million tokens (>200K context) | ||
| cacheReadsPrice: 1.0, // $1.00 per million tokens (>200K context) | ||
| }, | ||
| ], | ||
| }, | ||
| "anthropic.claude-opus-4-8": { | ||
| maxTokens: 8192, | ||
| contextWindow: 200_000, // Default 200K, extendable to 1M with beta flag 'context-1m-2025-08-07' | ||
| supportsImages: true, | ||
| supportsPromptCache: true, | ||
| supportsReasoningBudget: true, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same for Opus 4.8 — |
||
| inputPrice: 5.0, // $5 per million input tokens (≤200K context) — verify against Bedrock console | ||
| outputPrice: 25.0, // $25 per million output tokens (≤200K context) — verify against Bedrock console | ||
| cacheWritesPrice: 6.25, // $6.25 per million tokens | ||
| cacheReadsPrice: 0.5, // $0.50 per million tokens | ||
| minTokensPerCachePoint: 1024, | ||
| maxCachePoints: 4, | ||
| cachableFields: ["system", "messages", "tools"], | ||
| // Tiered pricing for extended context (requires beta flag 'context-1m-2025-08-07') | ||
| // 4.8 inherits the same Bedrock pricing structure as 4.7 — no API breaking changes. | ||
| // Adaptive thinking is the only supported reasoning mode (same as 4.7). | ||
| tiers: [ | ||
| { | ||
| contextWindow: 1_000_000, // 1M tokens with beta flag | ||
| inputPrice: 10.0, // $10 per million input tokens (>200K context) | ||
| outputPrice: 37.5, // $37.50 per million output tokens (>200K context) | ||
| cacheWritesPrice: 12.5, // $12.50 per million tokens (>200K context) | ||
| cacheReadsPrice: 1.0, // $1.00 per million tokens (>200K context) | ||
| }, | ||
| ], | ||
| }, | ||
| "anthropic.claude-opus-4-5-20251101-v1:0": { | ||
| maxTokens: 8192, | ||
| contextWindow: 200_000, | ||
|
|
@@ -525,6 +575,8 @@ export const BEDROCK_1M_CONTEXT_MODEL_IDS = [ | |
| "anthropic.claude-sonnet-4-5-20250929-v1:0", | ||
| "anthropic.claude-sonnet-4-6", | ||
| "anthropic.claude-opus-4-6-v1", | ||
| "anthropic.claude-opus-4-7", | ||
| "anthropic.claude-opus-4-8", | ||
| ] as const | ||
|
|
||
| // Amazon Bedrock models that support Global Inference profiles | ||
|
|
@@ -535,13 +587,16 @@ export const BEDROCK_1M_CONTEXT_MODEL_IDS = [ | |
| // - Claude Haiku 4.5 | ||
| // - Claude Opus 4.5 | ||
| // - Claude Opus 4.6 | ||
| // - Claude Opus 4.7 | ||
| export const BEDROCK_GLOBAL_INFERENCE_MODEL_IDS = [ | ||
| "anthropic.claude-sonnet-4-20250514-v1:0", | ||
| "anthropic.claude-sonnet-4-5-20250929-v1:0", | ||
| "anthropic.claude-sonnet-4-6", | ||
| "anthropic.claude-haiku-4-5-20251001-v1:0", | ||
| "anthropic.claude-opus-4-5-20251101-v1:0", | ||
| "anthropic.claude-opus-4-6-v1", | ||
| "anthropic.claude-opus-4-7", | ||
| "anthropic.claude-opus-4-8", | ||
| ] as const | ||
|
|
||
| // Amazon Bedrock Service Tier types | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -384,6 +384,7 @@ export const vertexModels = { | |
| cacheWritesPrice: 6.25, // $6.25 per million tokens | ||
| cacheReadsPrice: 0.5, // $0.50 per million tokens | ||
| supportsReasoningBudget: true, | ||
| supportsReasoningBinary: true, | ||
| supportsTemperature: false, | ||
| // Tiered pricing for extended context (requires beta flag 'context-1m-2025-08-07') | ||
| tiers: [ | ||
|
|
@@ -396,6 +397,30 @@ export const vertexModels = { | |
| }, | ||
| ], | ||
| }, | ||
| "claude-opus-4-8": { | ||
| maxTokens: 8192, | ||
| contextWindow: 200_000, // Default 200K, extendable to 1M with beta flag 'context-1m-2025-08-07' | ||
| supportsImages: true, | ||
| supportsPromptCache: true, | ||
| inputPrice: 5.0, // $5 per million input tokens (≤200K context) | ||
| outputPrice: 25.0, // $25 per million output tokens (≤200K context) | ||
| cacheWritesPrice: 6.25, // $6.25 per million tokens | ||
| cacheReadsPrice: 0.5, // $0.50 per million tokens | ||
| supportsReasoningBudget: true, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing Adding the flag alone won't fully fix it — |
||
| supportsReasoningBinary: true, | ||
| supportsTemperature: false, | ||
| // 4.8 inherits the same Vertex pricing structure as 4.7 — no breaking changes. | ||
| // Tiered pricing for extended context (requires beta flag 'context-1m-2025-08-07') | ||
| tiers: [ | ||
| { | ||
| contextWindow: 1_000_000, // 1M tokens with beta flag | ||
| inputPrice: 10.0, // $10 per million input tokens (>200K context) | ||
| outputPrice: 37.5, // $37.50 per million output tokens (>200K context) | ||
| cacheWritesPrice: 12.5, // $12.50 per million tokens (>200K context) | ||
| cacheReadsPrice: 1.0, // $1.00 per million tokens (>200K context) | ||
| }, | ||
| ], | ||
| }, | ||
| "claude-opus-4-5@20251101": { | ||
| maxTokens: 8192, | ||
| contextWindow: 200_000, | ||
|
|
@@ -595,6 +620,7 @@ export const VERTEX_1M_CONTEXT_MODEL_IDS = [ | |
| "claude-sonnet-4-6", | ||
| "claude-opus-4-6", | ||
| "claude-opus-4-7", | ||
| "claude-opus-4-8", | ||
| ] as const | ||
|
|
||
| export const VERTEX_REGIONS = [ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing
supportsTemperature: false— without itApiOptions.tsx:787still shows the temperature slider for this model even though temperature is silently stripped byisAdaptiveThinkingModel.