From 99918dd94141a4df89aa8253438df03de531f334 Mon Sep 17 00:00:00 2001 From: waleed Date: Tue, 9 Jun 2026 10:19:26 -0700 Subject: [PATCH 1/2] feat(models): add Claude Fable 5 --- apps/sim/providers/anthropic/core.ts | 2 ++ apps/sim/providers/models.ts | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/apps/sim/providers/anthropic/core.ts b/apps/sim/providers/anthropic/core.ts index c265d1e903c..ced0f71a98f 100644 --- a/apps/sim/providers/anthropic/core.ts +++ b/apps/sim/providers/anthropic/core.ts @@ -82,6 +82,7 @@ const THINKING_BUDGET_TOKENS: Record = { /** * Checks if a model supports adaptive thinking (thinking.type: "adaptive"). + * Fable 5 supports ONLY adaptive thinking (always on; type: "disabled" is rejected). * 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". @@ -89,6 +90,7 @@ const THINKING_BUDGET_TOKENS: Record = { function supportsAdaptiveThinking(modelId: string): boolean { const normalizedModel = modelId.toLowerCase() return ( + normalizedModel.includes('fable-5') || normalizedModel.includes('opus-4-8') || normalizedModel.includes('opus-4.8') || normalizedModel.includes('opus-4-7') || diff --git a/apps/sim/providers/models.ts b/apps/sim/providers/models.ts index ca008901b84..58dba7431b2 100644 --- a/apps/sim/providers/models.ts +++ b/apps/sim/providers/models.ts @@ -631,6 +631,24 @@ export const PROVIDER_DEFINITIONS: Record = { toolUsageControl: true, }, models: [ + { + id: 'claude-fable-5', + pricing: { + input: 10.0, + cachedInput: 1.0, + output: 50.0, + updatedAt: '2026-06-09', + }, + capabilities: { + maxOutputTokens: 128000, + thinking: { + levels: ['low', 'medium', 'high', 'xhigh', 'max'], + default: 'high', + }, + }, + contextWindow: 1000000, + releaseDate: '2026-06-09', + }, { id: 'claude-opus-4-8', pricing: { From 3bfe2349a327d7d248dcb4a5fe028f1572112bfa Mon Sep 17 00:00:00 2001 From: waleed Date: Tue, 9 Jun 2026 10:23:39 -0700 Subject: [PATCH 2/2] docs(anthropic): note Fable 5 in buildThinkingConfig docblock --- 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 ced0f71a98f..d00413eb141 100644 --- a/apps/sim/providers/anthropic/core.ts +++ b/apps/sim/providers/anthropic/core.ts @@ -105,7 +105,7 @@ function supportsAdaptiveThinking(modelId: string): boolean { /** * Builds the thinking configuration for the Anthropic API based on model capabilities and level. * - * - Opus 4.8, Opus 4.7: Uses adaptive thinking only (no extended thinking support) + * - Fable 5, 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 *