Skip to content
Source
Sign inSign up
TanStack/ai

feat(ai-anthropic): add Claude Fable 5.2, and the current Claude models on Vertex #2287 (GitHub #2286)

Mergedjperasmus(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/2286/headmerged by AlemTuzlak View on GitHub

Showing 9 changed files with 11 additions and 3 deletions (loading 6).

x
0 of 9 viewed, 9 left
7 additions and 0 deletions.changeset/anthropic-vertex-5-5-models.mdAdded
View file
@@ -0,0 +1,7 @@
+---
+'@tanstack/ai-anthropic': patch
+---
+​
+Add `claude-fable-5-2` to `anthropicText`: $8 / $40 per million tokens, a 1M-token context window, 128K output tokens, adaptive thinking, and computer use through `computer_toolset` only.
+​
+`anthropicVertexText` accepts `claude-fable-5-2`, `claude-opus-5-5`, `claude-sonnet-5-5`, `claude-haiku-5-5` and `claude-fable-5-1`. Google's Vertex catalog lists these models, so `ANTHROPIC_VERTEX_CHAT_MODELS` now includes them.
1 addition and 1 deletiondocs/adapters/anthropic-advanced.mdModified
View file
@@ -132,7 +132,7 @@
});
```
​
-- `anthropicVertexText` accepts only the Claude models in the Vertex catalog (`ANTHROPIC_VERTEX_CHAT_MODELS`). It does not accept ids that only Anthropic has, such as `claude-fable-5-1`.
+- `anthropicVertexText` accepts only the Claude models in Google's Vertex catalog (`ANTHROPIC_VERTEX_CHAT_MODELS`), such as `claude-opus-5-5` and `claude-haiku-5-5`.
- `project` and `location` use the same names as `@tanstack/ai-vertex`, so one auth object works for Gemini and Claude.
- If you omit `project`, Application Default Credentials can still fill it.
- `location` is required. Pass it on the factory, or set `GOOGLE_CLOUD_LOCATION`, `GOOGLE_VERTEX_LOCATION`, or `CLOUD_ML_REGION`.
3 additions and 2 deletionsdocs/adapters/anthropic.mdModified
View file
@@ -238,7 +238,7 @@
​
| Model | Levels | `budgetTokens` |
| --- | --- | --- |
-| `claude-opus-5-5`, `claude-sonnet-5-5`, `claude-fable-5-1`, `claude-fable-5`, `claude-opus-5`, `claude-opus-4-8`, `claude-opus-4-7` | `low` to `max` | no |
+| `claude-fable-5-2`, `claude-opus-5-5`, `claude-sonnet-5-5`, `claude-fable-5-1`, `claude-fable-5`, `claude-opus-5`, `claude-opus-4-8`, `claude-opus-4-7` | `low` to `max` | no |
| `claude-haiku-5-5`, `claude-sonnet-5` | `off`, `low` to `max` | no |