Repository navigation
Add Claude Haiku 5.5 and Gemini Nano Banana 2.1 to the model registry - #175
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P5F3RE1C4HEEkC9QoN81d1
dixitaniket
approved these changes
Oct 8, 2026
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Haiku requests above 100k prompt tokens are deterministically under-billed by 5×.
1 open finding
What changed in this PR
Registers Claude Haiku 5.5 and Gemini Nano Banana 2.1 for gateway routing and billing.
Changes:
- Adds model configurations, pricing, capabilities, and aliases.
- Adds registry and Haiku billing tests.
- Updates supported-model documentation.
| File | Description |
|---|---|
tee_gateway/model_registry.py |
Registers both models and aliases. |
tests/test_pricing.py |
Tests resolution, pricing, and Haiku cost. |
README.md |
Lists the new supported models. |
CLAUDE.md |
Updates provider model documentation. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
Comment on lines
+596
to
+597
| input_price_usd=Decimal("0.0000001"), | ||
| output_price_usd=Decimal("0.0000005"), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Registers two models released this week (found by the scheduled new-model check):
claude-haiku-5-5, released 2026-10-07) — successor to Haiku 4.5.gemini-nano-banana-2.1, released 2026-10-06) — successor to Nano Banana 2 (gemini-3.1-flash-image). Note its API id has no-imagesuffix.Companion chat-api catalog PR: https://github.com/OpenGradient/chat-api/pull/401 (land this one first).
Pricing (per provider pages)
Needs a human decision: the registry has one rate per model, so Haiku 5.5 carries the ≤100k tier. Prompts over 100k tokens (up to the 1M window) would be under-billed 5x. Options: accept, or add length-tiered pricing before offering it widely.
Parameter restrictions
temperature/top_p/top_kwith a 400 ("Good to know" on https://platform.claude.com/docs/en/models/haiku-5-5/overview) →supports_temperature=False.Tests
uv run python -m pytest tests/test_pricing.py(163 passed),make lintclean.uv.lockuntouched.Supersedes (in the catalog): Haiku 4.5 and Nano Banana 2 are hidden there; both stay registered here so persisted chats keep working.
Also noted: GPT-6.1 Sol is already covered by open PR #173 / chat-api #364, so not duplicated here.
🤖 Generated with Claude Code
https://claude.ai/code/session_01P5F3RE1C4HEEkC9QoN81d1