Skip to content

Commit c313772

Browse files
committed
feat(providers): add Claude Opus 4.8 model
1 parent 856182b commit c313772

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

apps/sim/providers/anthropic/core.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,15 @@ const THINKING_BUDGET_TOKENS: Record<string, number> = {
8282

8383
/**
8484
* Checks if a model supports adaptive thinking (thinking.type: "adaptive").
85-
* Opus 4.7 supports ONLY adaptive thinking (no extended thinking / budget_tokens).
85+
* Opus 4.8 and Opus 4.7 support ONLY adaptive thinking (no extended thinking / budget_tokens).
8686
* Opus 4.6 and Sonnet 4.6 support both extended and adaptive thinking — use adaptive.
8787
* Opus 4.5 supports effort but NOT adaptive thinking — it uses budget_tokens with type: "enabled".
8888
*/
8989
function supportsAdaptiveThinking(modelId: string): boolean {
9090
const normalizedModel = modelId.toLowerCase()
9191
return (
92+
normalizedModel.includes('opus-4-8') ||
93+
normalizedModel.includes('opus-4.8') ||
9294
normalizedModel.includes('opus-4-7') ||
9395
normalizedModel.includes('opus-4.7') ||
9496
normalizedModel.includes('opus-4-6') ||

apps/sim/providers/models.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,26 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
582582
toolUsageControl: true,
583583
},
584584
models: [
585+
{
586+
id: 'claude-opus-4-8',
587+
pricing: {
588+
input: 5.0,
589+
cachedInput: 0.5,
590+
output: 25.0,
591+
updatedAt: '2026-05-28',
592+
},
593+
capabilities: {
594+
nativeStructuredOutputs: true,
595+
maxOutputTokens: 128000,
596+
thinking: {
597+
levels: ['low', 'medium', 'high', 'xhigh', 'max'],
598+
default: 'high',
599+
},
600+
},
601+
contextWindow: 1000000,
602+
releaseDate: '2026-05-27',
603+
recommended: true,
604+
},
585605
{
586606
id: 'claude-opus-4-7',
587607
pricing: {
@@ -600,7 +620,6 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
600620
},
601621
contextWindow: 1000000,
602622
releaseDate: '2026-04-16',
603-
recommended: true,
604623
},
605624
{
606625
id: 'claude-opus-4-6',

0 commit comments

Comments
 (0)