Repository navigation
[Feat] Add Claude Haiku 5.5 model to the Anthropic provider - #2212
Conversation
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one): 1
Please check the settings in the CodeRabbit UI or the
|
|
No new code issues found. See session Reviewed 91cf631 |
Review statusThis PR was opened by an automated account. A human maintainer must verify the change intent, provenance, and validation before merging. Current step: The required review sequence passed. Remaining merge requirements apply. Review-state labels are managed by this workflow; do not edit them manually. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
25a212f to
91cf631
Compare
Related GitHub Issue
Closes: #2208
Description
This PR adds Claude Haiku 5.5 to the direct Anthropic provider. Users can now select
claude-haiku-5-5in the model dropdown. Bedrock already supports Haiku 5.5 (#2100). This PR closes the remaining gap.The model entry follows Anthropic's official documentation:
claude-haiku-5-5on the Claude API and on Google Cloud. Bedrock usesanthropic.claude-haiku-5-5.medium. The entry setssupportsReasoningBudget,supportsReasoningBinary, andsupportsTemperature: false. This matches the Sonnet 5 and Opus 5 convention. The provider then omits sampling parameters and sendsthinking: { type: "adaptive" }when reasoning is on.The PR also updates the places that enumerate Anthropic models:
packages/types/src/providers/anthropic.ts: newclaude-haiku-5-5entry.src/api/providers/anthropic.ts: new streaming-path case.packages/types/src/providers/vertex.ts: newclaude-haiku-5-5entry.packages/types/src/providers/openrouter.ts:anthropic/claude-haiku-5.5joins the prompt-caching and reasoning-budget sets. The dotted slug matches the live OpenRouter catalog.packages/types/src/providers/vercel-ai-gateway.ts:anthropic/claude-haiku-5.5joins the vision-and-tools set, next to Claude Haiku 4.5.src/api/providers/fetchers/*: parse overrides for OpenRouter, Requesty, and Vercel AI Gateway. Each gateway slug was verified against its live public catalog. Requesty usesanthropic/claude-haiku-5-5; OpenRouter and Vercel useanthropic/claude-haiku-5.5.vscode-llm.tsis unchanged. VS Code exposes those model IDs. The Opus 5.5 addition also left that file unchanged.Sources: Models overview, Claude Haiku 5.5 model page, Pricing.
Test Procedure
Run
pnpm testfrom the repository root. All tests pass. The PR adds focused tests:src/api/providers/__tests__/anthropic.spec.ts: model info, prompt-caching header, adaptive thinking, omitted temperature.src/api/providers/__tests__/anthropic-vertex.spec.ts: model info and adaptive thinking on Vertex.src/api/providers/fetchers/__tests__/openrouter.spec.ts,requesty.spec.ts, andvercel-ai-gateway.spec.ts: fetcher overrides for the new gateway slugs.src/shared/__tests__/api.spec.ts: hybrid output-token handling.pnpm --dir src run check-typespasses. ESLint passes on all touched files. The counts ineslint-suppressions.jsondid not increase.Reviewers can also verify by hand: select the Anthropic provider in settings. The model dropdown lists Claude Haiku 5.5.
Pre-Submission Checklist
Visual Snapshots
Not applicable. This change adds model catalog metadata. The model dropdown renders one extra entry. No layout, theme, or state rendering change exists.
Videos (interaction / animation only)
Not applicable.
Documentation Updates
The Anthropic provider page defers the model list to Anthropic's documentation. The Bedrock provider page already documents Claude Haiku 5.5. Zoo-Code-Docs does not enumerate the Anthropic model IDs, so no companion docs change is needed.
Additional Notes
Get in Touch
0x7777777_