Repository navigation
Add Anthropic Claude Haiku 5.5 API support - #1116
PeterDaveHello merged 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (7)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe model catalog adds Claude Haiku 5.5 and makes it a default API mode. Haiku 4.5 remains selectable. Temperature overrides are excluded for recognized Haiku 5.5 model IDs, with tests covering model registration and temperature handling. ChangesClaude Haiku 5.5 support
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to The supplied change context identifies no concrete issue that should block merging; the reported checks passed, though manual browser smoke testing was not performed. 🚥 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 |
93b2730 to
576cfb0
Compare
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
PR Summary by QodoAdd Claude Haiku 5.5 to the Anthropic API models
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
Code Review by Qodo
1.
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Adds Anthropic Claude Haiku 5.5 (claude-haiku-5-5) as a direct Anthropic API model and makes it the default Haiku option, while leaving Haiku 4.5 selectable.
- Model registration —
claudeHaiku55Apiadded toclaudeApiModelKeys, given aModelsentry (claude-haiku-5-5, descAnthropic (Claude Haiku 5.5)), and substituted forclaudeHaiku45ApiindefaultApiModeIds. This mirrors theclaudeOpus55Api/claudeSonnet55Apiregistration exactly, andisUsingClaudeApiModelroutes the key togenerateAnswersWithClaudeApivia group membership. - Temperature opt-out —
claude-haiku-5-5added toMODELS_WITHOUT_CUSTOM_TEMPERATURE, which also drivescanApplyTemperatureOverrideinAdvancedPart.jsx(that path resolves the model value, so the entry matches). - Localization — English label added to
src/_locales/en/main.json; other locales fall back to English viafallbackLng: 'en', per the repo's no-duplicate-model-labels policy. - Tests — the Claude API request test gains
['claudeHaiku55Api', 'claude-haiku-5-5'](asserts temperature and thinking are both omitted), and the temperature normalization test gainsclaude-haiku-5-5plus provider-qualifiedanthropic/claude-haiku-5.5.
I verified the new key is registered everywhere its 5.5 siblings are, that leaving thinking unset matches how claude-opus-5-5 is handled (getThinkingConfig only special-cases the Sonnet 5.x entries), and that src/_locales/en/main.json still parses.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes (delta against prior pullfrog review)
The only change since the prior review is a history squash: 93b2730 + 048784b were collapsed into a single commit 576cfb0. All five changed-file blob hashes are identical to the previously reviewed tree, so there is no new code to evaluate — the findings from the prior review at 93b2730 still hold.
- No content delta —
src/_locales/en/main.json,src/config/index.mjs,src/services/apis/temperature-params.mjs,tests/unit/services/apis/claude-api.test.mjs, andtests/unit/services/apis/temperature-params.test.mjsare unchanged.
The Haiku 5.5 model key is registered at every point its claudeOpus55Api / claudeSonnet55Api siblings are, routes via isUsingClaudeApiModel, and the temperature opt-out drives both the request body and the AdvancedPart UI toggle. Approved.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
Expose the current Haiku model to users who want a faster, lower cost choice through the existing Claude API integration.
576cfb0 to
e2d2d12
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes (delta against prior pullfrog review)
The only change since the prior review at 576cfb0 is a test-only commit — no runtime source was touched. The Haiku 5.5 registration itself was already reviewed and approved; this delta hardens its regression coverage.
- Config predicate coverage —
tests/unit/config/config-predicates.test.mjsgainsclaudeHaiku55Apiin the representative Claude list and a new test asserting the default set includes 5.5, excludes 4.5, and thatclaudeHaiku45Apiremains inclaudeApiModelKeys(selectable). - Temperature ID-format coverage —
tests/unit/services/apis/temperature-params.test.mjsadds the snapshot (claude-haiku-5-5-20261007) and:free(anthropic/claude-haiku-5.5:free) forms to the omit list, plus negative assertions (claude-haiku-5-50,my-claude-haiku-5-5) confirming the family matcher does not over-match. - Desc mapping coverage —
tests/unit/utils/model-name-convert.test.mjsassertsclaudeHaiku55Api→Anthropic (Claude Haiku 5.5).
I ran the four affected suites (node --import ./tests/setup/browser-shim.mjs --test): 150/150 pass. Each new test fails if the underlying registration is reverted — none are tautological.
deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
|
Code review by qodo was updated up to the latest commit e2d2d12 |
There was a problem hiding this comment.
🟡 Changes recommended
Required manual browser smoke validation remains incomplete.
0 open findings
What changed in this PR
Adds Claude Haiku 5.5 support to the Anthropic API model catalog.
Changes:
- Registers Haiku 5.5 and makes it the default Haiku option.
- Omits unsupported temperature overrides while preserving adaptive thinking defaults.
- Adds localization and regression coverage.
| File | Description |
|---|---|
src/config/index.mjs |
Registers and defaults Haiku 5.5. |
src/services/apis/temperature-params.mjs |
Disables custom temperature for Haiku 5.5. |
src/_locales/en/main.json |
Adds the English display label. |
tests/unit/config/config-predicates.test.mjs |
Covers registration and defaults. |
tests/unit/services/apis/claude-api.test.mjs |
Verifies Anthropic request parameters. |
tests/unit/services/apis/temperature-params.test.mjs |
Covers model-family matching. |
tests/unit/utils/model-name-convert.test.mjs |
Verifies the display description. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
@PeterDaveHello you gonna merge it? |
|
Thank you for the contribution, PR merged! |

Expose Claude Haiku 5.5 through the Anthropic API with model ID
claude-haiku-5-5.Changes
Register Claude Haiku 5.5 as a selectable Anthropic API model and make it the default Haiku option. Claude Haiku 4.5 remains selectable.
Omit custom temperature overrides for Haiku 5.5. Leave thinking unset so the API uses its default adaptive thinking behavior.
Add regression coverage for model group registration, default selection, display labels, request parameters, provider qualified IDs, and model family matching.
Localization
Add the English locale entry. Other locales continue to use the existing English fallback for untranslated model labels.
Validation
npm run prettypassed.npm testpassed with 1,102 tests.npm run lintpassed.npm run buildpassed.Manual browser smoke testing was not run.
References
https://www.anthropic.com/claude-haiku-5-5
https://platform.claude.com/docs/en/models/haiku-5-5/overview
Summary by CodeRabbit