Skip to content

Update retired Claude model ids in code-mode-snippets and ai-solid - #1165

Merged
AlemTuzlak merged 2 commits into
TanStack:mainfrom
kasparovabi:chore/opus5-compat
Aug 20, 2026
Merged

Update retired Claude model ids in code-mode-snippets and ai-solid#1165
AlemTuzlak merged 2 commits into
TanStack:mainfrom
kasparovabi:chore/opus5-compat

Conversation

@kasparovabi

@kasparovabikasparovabi commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

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 --model or ANTHROPIC_MODEL gets the retired id.

FileLineWasNow
packages/ai-code-mode-snippets/test-cli/adapters.ts34claude-sonnet-4-20250514claude-sonnet-4-6
packages/ai-code-mode-snippets/test-cli/cli.ts593claude-sonnet-4-20250514claude-sonnet-4-6
packages/ai-code-mode-snippets/test-cli/cli.ts709claude-sonnet-4-20250514claude-sonnet-4-6
packages/ai-code-mode-snippets/README.md45claude-3-haikuclaude-haiku-4-5
packages/ai-code-mode-snippets/README.md55claude-sonnet-4-20250514claude-sonnet-4-6
packages/ai-solid/README.md410claude-sonnet-4-20250514claude-sonnet-4-6

Retirement dates are on the Anthropic deprecations page: claude-sonnet-4-20250514 on 15 June 2026, and the Claude 3 Haiku snapshot that claude-3-haiku names on 20 April 2026.

The replacements are the ones this repo already picked elsewhere. claude-sonnet-4-6 and claude-haiku-4-5 both have entries in packages/ai-anthropic/src/model-meta.ts, and docs/adapters/anthropic.md uses claude-sonnet-4-6 throughout. Neither of the two old ids is in model-meta.ts at all.

Three places kept the old ids on purpose.

packages/ai-bedrock/src/model-catalog.generated.ts carries us.anthropic.claude-3-7-sonnet-20250219-v1:0 and two other older snapshots. The file header says it is generated by scripts/fetch-bedrock-models.ts and there is a sync-models.yml workflow 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.md line 115 passes a Bedrock id to bedrockText. Same reasoning, and it should stay consistent with whatever the generated catalog holds.

packages/ai-bedrock/tests/adapter.test.ts line 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

    • Updated usage examples for backend integrations and AI-generated snippet selection to reference Claude Sonnet 4.6.
    • Refreshed Anthropic model settings throughout the documented examples for consistency.
  • Chores

    • Updated default models used by command-line examples and testing workflows to Claude Sonnet 4.6.
    • Standardized model declarations without changing command behavior.

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.
@coderabbitai

coderabbitaiBot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5954ca4a-9e7a-46a2-8a88-3bd8d2b63150

📥 Commits

Reviewing files that changed from the base of the PR and between 68d9018 and f8e7156.

📒 Files selected for processing (1)
  • packages/ai-code-mode-snippets/test-cli/adapters.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/ai-code-mode-snippets/test-cli/adapters.ts

Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The 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.

Changes

Anthropic model updates

Layer / File(s)Summary
Update Anthropic model identifiers
packages/ai-code-mode-snippets/README.md, packages/ai-code-mode-snippets/test-cli/*, packages/ai-solid/README.md
Examples and CLI defaults now use claude-haiku-4-5 or claude-sonnet-4-6. The ANTHROPIC_MODEL declaration is reformatted without a value change.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk:⚪ Minimal · up to f8e71

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)
Check nameStatusExplanation
Title check✅ PassedThe title clearly summarizes the primary change: replacing retired Claude model IDs in the specified packages.
Description check✅ PassedThe description clearly explains the model updates, rationale, affected files, unchanged Bedrock entries, and testing status.
Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the PR, @kasparovabi! 🙌 @jherr will take a look.

Automated pre-review checks

  • ✅ CI passing
  • ✅ No merge conflicts
  • ✅ Changeset present
  • ✅ E2E test changes included

Automated triage — a human review follows.

@github-actionsgithub-actionsBot added the waiting-on: maintainer The ball is in the maintainers’ court label Aug 20, 2026
@nx-cloud

nx-cloudBot commented Aug 20, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 68d9018

CommandStatusDurationResult
nx run-many --targets=build --exclude=examples/...✅ Succeeded6sView ↗

☁️ Nx Cloud last updated this comment at 2026-08-20 14:18:40 UTC

@pkg-pr-new

Copy link
Copy Markdown

Open in StackBlitz

@tanstack/ai

npm i https://pkg.pr.new/@tanstack/ai@1165

@tanstack/ai-acp

npm i https://pkg.pr.new/@tanstack/ai-acp@1165

@tanstack/ai-angular

npm i https://pkg.pr.new/@tanstack/ai-angular@1165

@tanstack/ai-anthropic

npm i https://pkg.pr.new/@tanstack/ai-anthropic@1165

@tanstack/ai-bedrock

npm i https://pkg.pr.new/@tanstack/ai-bedrock@1165

@tanstack/ai-byteplus

npm i https://pkg.pr.new/@tanstack/ai-byteplus@1165

@tanstack/ai-claude-code

npm i https://pkg.pr.new/@tanstack/ai-claude-code@1165

@tanstack/ai-client

npm i https://pkg.pr.new/@tanstack/ai-client@1165

@tanstack/ai-code-mode

npm i https://pkg.pr.new/@tanstack/ai-code-mode@1165

@tanstack/ai-code-mode-snippets

npm i https://pkg.pr.new/@tanstack/ai-code-mode-snippets@1165

@tanstack/ai-codex

npm i https://pkg.pr.new/@tanstack/ai-codex@1165

@tanstack/ai-cohere

npm i https://pkg.pr.new/@tanstack/ai-cohere@1165

@tanstack/ai-devtools-core

npm i https://pkg.pr.new/@tanstack/ai-devtools-core@1165

@tanstack/ai-durable-stream

npm i https://pkg.pr.new/@tanstack/ai-durable-stream@1165

@tanstack/ai-elevenlabs

npm i https://pkg.pr.new/@tanstack/ai-elevenlabs@1165

@tanstack/ai-event-client

npm i https://pkg.pr.new/@tanstack/ai-event-client@1165

@tanstack/ai-fal

npm i https://pkg.pr.new/@tanstack/ai-fal@1165

@tanstack/ai-gemini

npm i https://pkg.pr.new/@tanstack/ai-gemini@1165

@tanstack/ai-grok

npm i https://pkg.pr.new/@tanstack/ai-grok@1165

@tanstack/ai-grok-build

npm i https://pkg.pr.new/@tanstack/ai-grok-build@1165

@tanstack/ai-groq

npm i https://pkg.pr.new/@tanstack/ai-groq@1165

@tanstack/ai-isolate-cloudflare

npm i https://pkg.pr.new/@tanstack/ai-isolate-cloudflare@1165

@tanstack/ai-isolate-daytona

npm i https://pkg.pr.new/@tanstack/ai-isolate-daytona@1165

@tanstack/ai-isolate-node

npm i https://pkg.pr.new/@tanstack/ai-isolate-node@1165

@tanstack/ai-isolate-quickjs

npm i https://pkg.pr.new/@tanstack/ai-isolate-quickjs@1165

@tanstack/ai-isolate-quickjs-bun

npm i https://pkg.pr.new/@tanstack/ai-isolate-quickjs-bun@1165

@tanstack/ai-mcp

npm i https://pkg.pr.new/@tanstack/ai-mcp@1165

@tanstack/ai-memory

npm i https://pkg.pr.new/@tanstack/ai-memory@1165

@tanstack/ai-mistral

npm i https://pkg.pr.new/@tanstack/ai-mistral@1165

@tanstack/ai-ollama

npm i https://pkg.pr.new/@tanstack/ai-ollama@1165

@tanstack/ai-openai

npm i https://pkg.pr.new/@tanstack/ai-openai@1165

@tanstack/ai-opencode

npm i https://pkg.pr.new/@tanstack/ai-opencode@1165

@tanstack/ai-openrouter

npm i https://pkg.pr.new/@tanstack/ai-openrouter@1165

@tanstack/ai-perplexity

npm i https://pkg.pr.new/@tanstack/ai-perplexity@1165

@tanstack/ai-persistence

npm i https://pkg.pr.new/@tanstack/ai-persistence@1165

@tanstack/ai-preact

npm i https://pkg.pr.new/@tanstack/ai-preact@1165

@tanstack/ai-react

npm i https://pkg.pr.new/@tanstack/ai-react@1165

@tanstack/ai-react-ui

npm i https://pkg.pr.new/@tanstack/ai-react-ui@1165

@tanstack/ai-sandbox

npm i https://pkg.pr.new/@tanstack/ai-sandbox@1165

@tanstack/ai-sandbox-cloudflare

npm i https://pkg.pr.new/@tanstack/ai-sandbox-cloudflare@1165

@tanstack/ai-sandbox-daytona

npm i https://pkg.pr.new/@tanstack/ai-sandbox-daytona@1165

@tanstack/ai-sandbox-docker

npm i https://pkg.pr.new/@tanstack/ai-sandbox-docker@1165

@tanstack/ai-sandbox-local-process

npm i https://pkg.pr.new/@tanstack/ai-sandbox-local-process@1165

@tanstack/ai-sandbox-sprites

npm i https://pkg.pr.new/@tanstack/ai-sandbox-sprites@1165

@tanstack/ai-sandbox-vercel

npm i https://pkg.pr.new/@tanstack/ai-sandbox-vercel@1165

@tanstack/ai-solid

npm i https://pkg.pr.new/@tanstack/ai-solid@1165

@tanstack/ai-solid-ui

npm i https://pkg.pr.new/@tanstack/ai-solid-ui@1165

@tanstack/ai-svelte

npm i https://pkg.pr.new/@tanstack/ai-svelte@1165

@tanstack/ai-utils

npm i https://pkg.pr.new/@tanstack/ai-utils@1165

@tanstack/ai-vercel-gateway

npm i https://pkg.pr.new/@tanstack/ai-vercel-gateway@1165

@tanstack/ai-vue

npm i https://pkg.pr.new/@tanstack/ai-vue@1165

@tanstack/ai-vue-ui

npm i https://pkg.pr.new/@tanstack/ai-vue-ui@1165

@tanstack/openai-base

npm i https://pkg.pr.new/@tanstack/openai-base@1165

@tanstack/preact-ai-devtools

npm i https://pkg.pr.new/@tanstack/preact-ai-devtools@1165

@tanstack/react-ai-devtools

npm i https://pkg.pr.new/@tanstack/react-ai-devtools@1165

@tanstack/solid-ai-devtools

npm i https://pkg.pr.new/@tanstack/solid-ai-devtools@1165

commit: f8e7156

@AlemTuzlak
AlemTuzlak merged commit d8b3350 into TanStack:mainAug 20, 2026
9 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-on: maintainerThe ball is in the maintainers’ court

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@kasparovabi@AlemTuzlak@jherr