Uh oh!
There was an error while loading. Please reload this page.
Update retired Claude model ids in code-mode-snippets and ai-solid - #1165
Conversation
The Anthropic API stopped serving claude-sonnet-4-20250514 on 15 June 2026 and the Claude 3 Haiku snapshot on 20 April 2026. Neither id appears in packages/ai-anthropic/src/model-meta.ts. Moved to claude-sonnet-4-6 and claude-haiku-4-5, which the rest of the docs already use.
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe changes update Anthropic model identifiers in code-mode snippet examples, CLI defaults, and the AI Solid TanStack Start backend example. The adapter declaration formatting also changes without changing its value or behavior. ChangesAnthropic model updates
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk:⚪ Minimal · up to This PR updates the test CLI defaults and examples to use currently supported Claude model IDs instead of retired ones. No actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Thanks for the PR, @kasparovabi! 🙌 @jherr will take a look. Automated pre-review checks
Automated triage — a human review follows. |
View your CI Pipeline Execution ↗ for commit 68d9018
☁️ Nx Cloud last updated this comment at |
@tanstack/ai@tanstack/ai-acp@tanstack/ai-angular@tanstack/ai-anthropic@tanstack/ai-bedrock@tanstack/ai-byteplus@tanstack/ai-claude-code@tanstack/ai-client@tanstack/ai-code-mode@tanstack/ai-code-mode-snippets@tanstack/ai-codex@tanstack/ai-cohere@tanstack/ai-devtools-core@tanstack/ai-durable-stream@tanstack/ai-elevenlabs@tanstack/ai-event-client@tanstack/ai-fal@tanstack/ai-gemini@tanstack/ai-grok@tanstack/ai-grok-build@tanstack/ai-groq@tanstack/ai-isolate-cloudflare@tanstack/ai-isolate-daytona@tanstack/ai-isolate-node@tanstack/ai-isolate-quickjs@tanstack/ai-isolate-quickjs-bun@tanstack/ai-mcp@tanstack/ai-memory@tanstack/ai-mistral@tanstack/ai-ollama@tanstack/ai-openai@tanstack/ai-opencode@tanstack/ai-openrouter@tanstack/ai-perplexity@tanstack/ai-persistence@tanstack/ai-preact@tanstack/ai-react@tanstack/ai-react-ui@tanstack/ai-sandbox@tanstack/ai-sandbox-cloudflare@tanstack/ai-sandbox-daytona@tanstack/ai-sandbox-docker@tanstack/ai-sandbox-local-process@tanstack/ai-sandbox-sprites@tanstack/ai-sandbox-vercel@tanstack/ai-solid@tanstack/ai-solid-ui@tanstack/ai-svelte@tanstack/ai-utils@tanstack/ai-vercel-gateway@tanstack/ai-vue@tanstack/ai-vue-ui@tanstack/openai-base@tanstack/preact-ai-devtools@tanstack/react-ai-devtools@tanstack/solid-ai-devtoolscommit: |
Uh oh!
There was an error while loading. Please reload this page.
Five call sites and doc examples still name Claude model ids that the Anthropic API has stopped serving. Two of them are runtime defaults, so a user who runs the test CLI without
--modelorANTHROPIC_MODELgets the retired id.packages/ai-code-mode-snippets/test-cli/adapters.tsclaude-sonnet-4-20250514claude-sonnet-4-6packages/ai-code-mode-snippets/test-cli/cli.tsclaude-sonnet-4-20250514claude-sonnet-4-6packages/ai-code-mode-snippets/test-cli/cli.tsclaude-sonnet-4-20250514claude-sonnet-4-6packages/ai-code-mode-snippets/README.mdclaude-3-haikuclaude-haiku-4-5packages/ai-code-mode-snippets/README.mdclaude-sonnet-4-20250514claude-sonnet-4-6packages/ai-solid/README.mdclaude-sonnet-4-20250514claude-sonnet-4-6Retirement dates are on the Anthropic deprecations page:
claude-sonnet-4-20250514on 15 June 2026, and the Claude 3 Haiku snapshot thatclaude-3-haikunames on 20 April 2026.The replacements are the ones this repo already picked elsewhere.
claude-sonnet-4-6andclaude-haiku-4-5both have entries inpackages/ai-anthropic/src/model-meta.ts, anddocs/adapters/anthropic.mdusesclaude-sonnet-4-6throughout. Neither of the two old ids is inmodel-meta.tsat all.Three places kept the old ids on purpose.
packages/ai-bedrock/src/model-catalog.generated.tscarriesus.anthropic.claude-3-7-sonnet-20250219-v1:0and two other older snapshots. The file header says it is generated byscripts/fetch-bedrock-models.tsand there is async-models.ymlworkflow that refreshes it, so hand-editing would be undone. Bedrock also runs its own model lifecycle, separate from the first-party API dates above, and I have not checked what Bedrock still serves.packages/ai/skills/ai-core/adapter-configuration/SKILL.mdline 115 passes a Bedrock id tobedrockText. Same reasoning, and it should stay consistent with whatever the generated catalog holds.packages/ai-bedrock/tests/adapter.test.tsline 114 uses an old id as a fixture. The test asserts on adapter wiring, not on the model existing.I read this diff line by line before opening it, and I am happy to adjust or drop any part of it. What brought me here was a checker I maintain that flags retired Claude model ids, so I am saying that up front rather than leaving you to wonder. I have not run the test CLI against the API to reproduce a failure, the claim rests on the published retirement dates and on the ids being absent from your own
model-meta.ts. If you would rather handle this your own way, or would rather not get this kind of contribution at all, tell me and I will not send another.Summary by CodeRabbit
Documentation
Chores