Skip to content

Commit b12b0f1

Browse files
authored
feat(models): add Claude Fable 5 (#4921)
* feat(models): add Claude Fable 5 * docs(anthropic): note Fable 5 in buildThinkingConfig docblock
1 parent f7811f8 commit b12b0f1

2 files changed

Lines changed: 21 additions & 1 deletion

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+
* Fable 5 supports ONLY adaptive thinking (always on; type: "disabled" is rejected).
8586
* Opus 4.8 and Opus 4.7 support ONLY adaptive thinking (no extended thinking / budget_tokens).
8687
* Opus 4.6 and Sonnet 4.6 support both extended and adaptive thinking — use adaptive.
8788
* Opus 4.5 supports effort but NOT adaptive thinking — it uses budget_tokens with type: "enabled".
8889
*/
8990
function supportsAdaptiveThinking(modelId: string): boolean {
9091
const normalizedModel = modelId.toLowerCase()
9192
return (
93+
normalizedModel.includes('fable-5') ||
9294
normalizedModel.includes('opus-4-8') ||
9395
normalizedModel.includes('opus-4.8') ||
9496
normalizedModel.includes('opus-4-7') ||
@@ -103,7 +105,7 @@ function supportsAdaptiveThinking(modelId: string): boolean {
103105
/**
104106
* Builds the thinking configuration for the Anthropic API based on model capabilities and level.
105107
*
106-
* - Opus 4.8, Opus 4.7: Uses adaptive thinking only (no extended thinking support)
108+
* - Fable 5, Opus 4.8, Opus 4.7: Uses adaptive thinking only (no extended thinking support)
107109
* - Opus 4.6, Sonnet 4.6: Uses adaptive thinking with effort parameter
108110
* - Other models: Uses budget_tokens-based extended thinking
109111
*

apps/sim/providers/models.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,24 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
631631
toolUsageControl: true,
632632
},
633633
models: [
634+
{
635+
id: 'claude-fable-5',
636+
pricing: {
637+
input: 10.0,
638+
cachedInput: 1.0,
639+
output: 50.0,
640+
updatedAt: '2026-06-09',
641+
},
642+
capabilities: {
643+
maxOutputTokens: 128000,
644+
thinking: {
645+
levels: ['low', 'medium', 'high', 'xhigh', 'max'],
646+
default: 'high',
647+
},
648+
},
649+
contextWindow: 1000000,
650+
releaseDate: '2026-06-09',
651+
},
634652
{
635653
id: 'claude-opus-4-8',
636654
pricing: {

0 commit comments

Comments
 (0)