From 6e3799bd992591c601fd4d942a841f2fb1d9f06e Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Thu, 28 May 2026 10:59:29 -0700 Subject: [PATCH 1/2] feat(providers): add Claude Opus 4.8 model --- apps/sim/providers/anthropic/core.ts | 4 +++- apps/sim/providers/models.ts | 21 ++++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/apps/sim/providers/anthropic/core.ts b/apps/sim/providers/anthropic/core.ts index 80f741f4ac..6dd00c8275 100644 --- a/apps/sim/providers/anthropic/core.ts +++ b/apps/sim/providers/anthropic/core.ts @@ -82,13 +82,15 @@ const THINKING_BUDGET_TOKENS: Record = { /** * Checks if a model supports adaptive thinking (thinking.type: "adaptive"). - * Opus 4.7 supports ONLY adaptive thinking (no extended thinking / budget_tokens). + * Opus 4.8 and Opus 4.7 support ONLY adaptive thinking (no extended thinking / budget_tokens). * Opus 4.6 and Sonnet 4.6 support both extended and adaptive thinking — use adaptive. * Opus 4.5 supports effort but NOT adaptive thinking — it uses budget_tokens with type: "enabled". */ function supportsAdaptiveThinking(modelId: string): boolean { const normalizedModel = modelId.toLowerCase() return ( + normalizedModel.includes('opus-4-8') || + normalizedModel.includes('opus-4.8') || normalizedModel.includes('opus-4-7') || normalizedModel.includes('opus-4.7') || normalizedModel.includes('opus-4-6') || diff --git a/apps/sim/providers/models.ts b/apps/sim/providers/models.ts index 375506cde2..6c98ea3623 100644 --- a/apps/sim/providers/models.ts +++ b/apps/sim/providers/models.ts @@ -582,6 +582,26 @@ export const PROVIDER_DEFINITIONS: Record = { toolUsageControl: true, }, models: [ + { + id: 'claude-opus-4-8', + pricing: { + input: 5.0, + cachedInput: 0.5, + output: 25.0, + updatedAt: '2026-05-28', + }, + capabilities: { + nativeStructuredOutputs: true, + maxOutputTokens: 128000, + thinking: { + levels: ['low', 'medium', 'high', 'xhigh', 'max'], + default: 'high', + }, + }, + contextWindow: 1000000, + releaseDate: '2026-05-27', + recommended: true, + }, { id: 'claude-opus-4-7', pricing: { @@ -600,7 +620,6 @@ export const PROVIDER_DEFINITIONS: Record = { }, contextWindow: 1000000, releaseDate: '2026-04-16', - recommended: true, }, { id: 'claude-opus-4-6', From 1183424fcac79e492193cdfce50c789ab5e8694d Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Thu, 28 May 2026 11:01:24 -0700 Subject: [PATCH 2/2] chore(providers): update buildThinkingConfig docstring for Opus 4.8 --- apps/sim/providers/anthropic/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sim/providers/anthropic/core.ts b/apps/sim/providers/anthropic/core.ts index 6dd00c8275..c265d1e903 100644 --- a/apps/sim/providers/anthropic/core.ts +++ b/apps/sim/providers/anthropic/core.ts @@ -103,7 +103,7 @@ function supportsAdaptiveThinking(modelId: string): boolean { /** * Builds the thinking configuration for the Anthropic API based on model capabilities and level. * - * - Opus 4.7: Uses adaptive thinking only (no extended thinking support) + * - Opus 4.8, Opus 4.7: Uses adaptive thinking only (no extended thinking support) * - Opus 4.6, Sonnet 4.6: Uses adaptive thinking with effort parameter * - Other models: Uses budget_tokens-based extended thinking *