feat: add claude-sonnet-4-6 model metadata to Anthropic adapter#378
feat: add claude-sonnet-4-6 model metadata to Anthropic adapter#378imsherrill wants to merge 1 commit intoTanStack:mainfrom
Conversation
Add CLAUDE_SONNET_4_6 with 1M native context window, 64k max output, and adaptive thinking support. Register in all model type maps and add to ts-react-chat example model selector.
🦋 Changeset detectedLatest commit: 58c6336 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis PR introduces support for the claude-sonnet-4-6 Anthropic model across the TanStack AI package. Changes include registering model metadata with context window and feature specifications, integrating the model into example applications, and adding comprehensive test coverage validating the model's configuration and input modalities. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
🎯 Changes
Add
claude-sonnet-4-6to the Anthropic adapter's model metadata. This is a metadata-only addition — no API contract changes.CLAUDE_SONNET_4_6constant with correct specs (1M native context window, 64k max output, adaptive thinking support)ANTHROPIC_MODELS,AnthropicChatModelProviderOptionsByName, andAnthropicModelInputModalitiesByNamets-react-chatexample app model selector✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit
Release Notes