Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/sync-models.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tanstack/ai-anthropic': patch
---

Update model metadata from OpenRouter API
50 changes: 50 additions & 0 deletions packages/ai-anthropic/src/model-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,45 @@ const CLAUDE_OPUS_4_8_FAST = {
AnthropicSamplingOptions
>

const CLAUDE_FABLE_5 = {
name: 'claude-fable-5',
id: 'claude-fable-5',
context_window: 1_000_000,
max_output_tokens: 128_000,
supports: {
input: ['text', 'image', 'document'],
extended_thinking: true,
priority_tier: true,
tools: [
'web_search',
'web_fetch',
'code_execution',
'computer_use',
'bash',
'text_editor',
'memory',
],
},
pricing: {
input: {
normal: 10,
cached: 1,
},
output: {
normal: 50,
},
},
} as const satisfies ModelMeta<
AnthropicContainerOptions &
AnthropicContextManagementOptions &
AnthropicMCPOptions &
AnthropicServiceTierOptions &
AnthropicStopSequencesOptions &
AnthropicThinkingOptions &
AnthropicToolChoiceOptions &
AnthropicSamplingOptions
>

export const ANTHROPIC_MODELS = [
CLAUDE_OPUS_4_6.id,
CLAUDE_OPUS_4_5.id,
Expand All @@ -731,6 +770,8 @@ export const ANTHROPIC_MODELS = [

CLAUDE_OPUS_4_8.id,
CLAUDE_OPUS_4_8_FAST.id,

CLAUDE_FABLE_5.id,
] as const

/**
Expand Down Expand Up @@ -891,6 +932,14 @@ export type AnthropicChatModelProviderOptionsByName = {
AnthropicThinkingOptions &
AnthropicToolChoiceOptions &
AnthropicSamplingOptions
[CLAUDE_FABLE_5.id]: AnthropicContainerOptions &
AnthropicContextManagementOptions &
AnthropicMCPOptions &
AnthropicServiceTierOptions &
AnthropicStopSequencesOptions &
AnthropicThinkingOptions &
AnthropicToolChoiceOptions &
AnthropicSamplingOptions
}

export type AnthropicChatModelToolCapabilitiesByName = {
Expand Down Expand Up @@ -937,4 +986,5 @@ export type AnthropicModelInputModalitiesByName = {
[CLAUDE_OPUS_4_7_FAST.id]: typeof CLAUDE_OPUS_4_7_FAST.supports.input
[CLAUDE_OPUS_4_8.id]: typeof CLAUDE_OPUS_4_8.supports.input
[CLAUDE_OPUS_4_8_FAST.id]: typeof CLAUDE_OPUS_4_8_FAST.supports.input
[CLAUDE_FABLE_5.id]: typeof CLAUDE_FABLE_5.supports.input
}
Loading