Skip to content

Commit 9dfb72d

Browse files
chore: sync model metadata from OpenRouter
1 parent eadabbc commit 9dfb72d

5 files changed

Lines changed: 8575 additions & 1347 deletions

File tree

.changeset/sync-models.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/ai-anthropic': patch
3+
---
4+
5+
Update model metadata from OpenRouter API

packages/ai-anthropic/src/model-meta.ts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,45 @@ const CLAUDE_OPUS_4_8_FAST = {
710710
AnthropicSamplingOptions
711711
>
712712

713+
const CLAUDE_FABLE_5 = {
714+
name: 'claude-fable-5',
715+
id: 'claude-fable-5',
716+
context_window: 1_000_000,
717+
max_output_tokens: 128_000,
718+
supports: {
719+
input: ['text', 'image', 'document'],
720+
extended_thinking: true,
721+
priority_tier: true,
722+
tools: [
723+
'web_search',
724+
'web_fetch',
725+
'code_execution',
726+
'computer_use',
727+
'bash',
728+
'text_editor',
729+
'memory',
730+
],
731+
},
732+
pricing: {
733+
input: {
734+
normal: 10,
735+
cached: 1,
736+
},
737+
output: {
738+
normal: 50,
739+
},
740+
},
741+
} as const satisfies ModelMeta<
742+
AnthropicContainerOptions &
743+
AnthropicContextManagementOptions &
744+
AnthropicMCPOptions &
745+
AnthropicServiceTierOptions &
746+
AnthropicStopSequencesOptions &
747+
AnthropicThinkingOptions &
748+
AnthropicToolChoiceOptions &
749+
AnthropicSamplingOptions
750+
>
751+
713752
export const ANTHROPIC_MODELS = [
714753
CLAUDE_OPUS_4_6.id,
715754
CLAUDE_OPUS_4_5.id,
@@ -731,6 +770,8 @@ export const ANTHROPIC_MODELS = [
731770

732771
CLAUDE_OPUS_4_8.id,
733772
CLAUDE_OPUS_4_8_FAST.id,
773+
774+
CLAUDE_FABLE_5.id,
734775
] as const
735776

736777
/**
@@ -891,6 +932,14 @@ export type AnthropicChatModelProviderOptionsByName = {
891932
AnthropicThinkingOptions &
892933
AnthropicToolChoiceOptions &
893934
AnthropicSamplingOptions
935+
[CLAUDE_FABLE_5.id]: AnthropicContainerOptions &
936+
AnthropicContextManagementOptions &
937+
AnthropicMCPOptions &
938+
AnthropicServiceTierOptions &
939+
AnthropicStopSequencesOptions &
940+
AnthropicThinkingOptions &
941+
AnthropicToolChoiceOptions &
942+
AnthropicSamplingOptions
894943
}
895944

896945
export type AnthropicChatModelToolCapabilitiesByName = {
@@ -937,4 +986,5 @@ export type AnthropicModelInputModalitiesByName = {
937986
[CLAUDE_OPUS_4_7_FAST.id]: typeof CLAUDE_OPUS_4_7_FAST.supports.input
938987
[CLAUDE_OPUS_4_8.id]: typeof CLAUDE_OPUS_4_8.supports.input
939988
[CLAUDE_OPUS_4_8_FAST.id]: typeof CLAUDE_OPUS_4_8_FAST.supports.input
989+
[CLAUDE_FABLE_5.id]: typeof CLAUDE_FABLE_5.supports.input
940990
}

0 commit comments

Comments
 (0)