Skip to content

[Feat] Add Claude Haiku 5.5 model to the Anthropic provider - #2212

Merged
edelauna merged 2 commits into
mainfrom
feat/add-claude-haiku-5-5-18858bbw9jasd
Oct 28, 2026
Merged

edelauna merged 2 commits into
mainfrom
feat/add-claude-haiku-5-5-18858bbw9jasd

Conversation

@zoomote2

@zoomote2 zoomote2 Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

​Created by Roomote. Follow up by mentioning @roomote, in the web UI, or in Discord.

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-5 in the model dropdown. Bedrock already supports Haiku 5.5 (#2100). This PR closes the remaining gap.

The model entry follows Anthropic's official documentation:

  • Model ID: claude-haiku-5-5 on the Claude API and on Google Cloud. Bedrock uses anthropic.claude-haiku-5-5.
  • Context window: 1M tokens, native. No beta header is required.
  • Max output: 128K tokens.
  • Adaptive thinking. Default effort is medium. The entry sets supportsReasoningBudget, supportsReasoningBinary, and supportsTemperature: false. This matches the Sonnet 5 and Opus 5 convention. The provider then omits sampling parameters and sends thinking: { type: "adaptive" } when reasoning is on.
  • Prompt caching: supported. The entry joins the streaming-path caching branch.
  • Standard-tier pricing for prompts of 100,000 tokens or fewer: $0.10 input, $0.50 output, $0.125 cache write, $0.01 cache read per million tokens. Anthropic bills prompts over 100,000 tokens at higher rates. The Anthropic cost path has no prompt-length tier mechanism, so the entry prices the standard tier and documents the tier in comments. This mirrors the existing Bedrock entry.

The PR also updates the places that enumerate Anthropic models:

  • packages/types/src/providers/anthropic.ts: new claude-haiku-5-5 entry.
  • src/api/providers/anthropic.ts: new streaming-path case.
  • packages/types/src/providers/vertex.ts: new claude-haiku-5-5 entry.
  • packages/types/src/providers/openrouter.ts: anthropic/claude-haiku-5.5 joins 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.5 joins 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 uses anthropic/claude-haiku-5-5; OpenRouter and Vercel use anthropic/claude-haiku-5.5.
  • vscode-llm.ts is 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 test from 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, and vercel-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-types passes. ESLint passes on all touched files. The counts in eslint-suppressions.json did 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

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I reviewed my own code with care.
  • Writing Style: The PR title and description use Simplified Technical English (ASD-STE100): short sentences, plain words, active voice, one idea per sentence, no contractions.
  • Testing: New and/or updated tests have been added to cover my changes (if applicable).
  • Visual Snapshot (UI changes only): Not applicable. The change adds model metadata only. No layout, theme, or state rendering change exists.
  • Documentation Impact: I checked if my changes need documentation updates (see "Documentation Updates" section below).
  • Contribution Guidelines: I read and agree to the Contributor Guidelines.

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

  • No documentation updates are required.

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

  • Pricing covers the standard tier only (prompts of 100,000 tokens or fewer). Comments document the higher rates for longer prompts. Adding prompt-length tier billing on the Anthropic cost path is a larger change and stays out of scope here.
  • Pre-commit hooks ran ESLint and Prettier on the staged files. Type checks pass for all 13 packages.

Get in Touch

0x7777777_

@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one): 1
  • coderabbit-review-active

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@zoomote2

zoomote2 Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor Author

No new code issues found. See session

Reviewed 91cf631

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Review status

This 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. community-approved is managed the same way — do not add or remove it manually. It signals a fresh community code approval for the current head as an advisory priority only; maintainer review is still required.

@codecov

codecov Bot commented Oct 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@edelauna
edelauna marked this pull request as ready for review October 28, 2026 01:19
@edelauna
edelauna force-pushed the feat/add-claude-haiku-5-5-18858bbw9jasd branch from 25a212f to 91cf631 Compare October 28, 2026 01:19
@edelauna
edelauna enabled auto-merge October 28, 2026 01:20
@edelauna
edelauna added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit 8fb8046 Oct 28, 2026
21 checks passed
@edelauna
edelauna deleted the feat/add-claude-haiku-5-5-18858bbw9jasd branch October 28, 2026 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Claude Haiku 5.5 to the Anthropic provider

2 participants