Repository navigation
fix(vertex-ai): correct claude-haiku-5-5 thinking and forced tool flags - #45116
Conversation
|
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
596d851 to
c46f79a
Compare
|
bugbot run |
c46f79a to
c234997
Compare
Price-Sync: litellm-providers
c234997 to
07f8197
Compare
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 07f8197. Configure here.
Takes the claude-haiku-5-5 and claude-haiku-5.5 cost map rows (Anthropic, Bedrock, Bedrock Mantle, Azure AI, Vertex AI, OpenRouter, Perplexity) from upstream v1.106.0-dev.2, along with the over-100k prompt tier fields and tests they need. The Vertex flag fix and the Azure integer prompt cache minimum come along with the rows. Upstream sources: 5cd1126 (BerriAI#45108), 46d440a (BerriAI#45151, haiku-related hunks only), d174c43 (BerriAI#45114), f0031e9 (BerriAI#45116). The rebased model info helper gets explicit kwargs for the four over-100k batch rates. The haiku config test calls the adaptive thinking helper on AnthropicModelInfo instead of the public alias that upstream added in a later refactor.
Takes the claude-haiku-5-5 and claude-haiku-5.5 cost map rows (Anthropic, Bedrock, Bedrock Mantle, Azure AI, Vertex AI, OpenRouter, Perplexity) from upstream v1.106.0-dev.2, along with the over-100k prompt tier fields and tests they need. The Vertex flag fix and the Azure integer prompt cache minimum come along with the rows. Upstream sources: 5cd1126 (BerriAI#45108), 46d440a (BerriAI#45151, haiku-related hunks only), d174c43 (BerriAI#45114), f0031e9 (BerriAI#45116). The rebased model info helper gets explicit kwargs for the four over-100k batch rates. The haiku config test calls the adaptive thinking helper on AnthropicModelInfo instead of the public alias that upstream added in a later refactor.
Takes the claude-haiku-5-5 and claude-haiku-5.5 cost map rows (Anthropic, Bedrock, Bedrock Mantle, Azure AI, Vertex AI, OpenRouter, Perplexity) from upstream v1.106.0-dev.2, along with the over-100k prompt tier fields and tests they need. The Vertex flag fix and the Azure integer prompt cache minimum come along with the rows. Upstream sources: 5cd1126 (BerriAI#45108), 46d440a (BerriAI#45151, haiku-related hunks only), d174c43 (BerriAI#45114), f0031e9 (BerriAI#45116). The rebased model info helper gets explicit kwargs for the four over-100k batch rates. The haiku config test calls the adaptive thinking helper on AnthropicModelInfo instead of the public alias that upstream added in a later refactor.
Summary
#45108 merged
vertex_ai/claude-haiku-5-5andvertex_ai/claude-haiku-5-5@defaultinto main while this sync was open, so this PR now only corrects two capability flags and thesourceon those two existing rows. The list API returnsclaude-haiku-5-5at versions20261005anddefault, and both map to these keys because Anthropic states "claude-haiku-5-5 is a fixed model ID with no date suffix and no separate alias" (https://platform.claude.com/docs/en/models/haiku-5-5/migration-guide)Rows
vertex_ai/claude-haiku-5-5andvertex_ai/claude-haiku-5-5@default, kind page:thinking_always_ontrue to false: the Thinking row on https://platform.claude.com/docs/en/about-claude/models/overview lists Opus 5.5 as "Adaptive (always on)" and Haiku 5.5 as "Adaptive"supports_forced_tool_usefalse to true: "Claude Haiku 5.5 accepts a forced tool_choice (any or a named tool)" (https://platform.claude.com/docs/en/models/haiku-5-5/migration-guide)sourcechanged from https://cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing to https://platform.claude.com/docs/en/about-claude/pricing, because the Vertex pricing page still has no Haiku 5.5 entry and the prices on the rows ($0.10 input, $0.50 output, $0.125 5m write, $0.20 1h write, $0.01 cache hit per MTok, batch at 50%) are Anthropic's first party pricesThe rest of each row is unchanged from main. Per ruling vertex-ai-claude-haiku-5-5-drop-above-100k ("drop them for now"), neither row carries
*_above_100k_tokensfields, including the_batchesones. Prompts over 100K tokens are undercharged (billed at the up to 100K rates instead of $0.50 / $2.50 per MTok and the matching cache and batch rates) until the 100K tier is supported for these rowsDelisted by the provider
Kept with no change per ruling vertex-ai-delisted-no-date-keep: deep-research-pro-preview-12-2025, gemini-2.5-flash-lite-preview-09-2025, gemini-2.5-flash-preview-09-2025, gemini-2.5-pro-preview-tts, gemini-3-pro-image-preview, gemini-3.1-flash-lite-preview, gemini-3.1-pro-preview-customtools, gemini-3.8-flash-cyber, gemini-embedding-2-preview, gemini-flash-experimental, gemini-live-2.5-flash-preview-native-audio-09-2025, gemini-robotics-er-1.5-preview, medlm-large, medlm-medium, text-embedding-preview-0409, text-unicorn, vertex_ai/chirp, vertex_ai/claude-3-sonnet, vertex_ai/codestral-2, vertex_ai/codestral-2501, vertex_ai/mistral-large-2411, vertex_ai/mistral-medium-3, vertex_ai/mistral-ocr-2505, vertex_ai/mistral-small-2503, vertex_ai/veo-3.1-fast-generate-preview, vertex_ai/veo-3.1-generate-preview
Already carry a deprecation_date: text-embedding-004, vertex_ai/claude-3-5-haiku, vertex_ai/claude-3-5-sonnet, vertex_ai/claude-3-haiku, vertex_ai/claude-3-opus, vertex_ai/claude-sonnet-4-5, vertex_ai/gemini-2.0-flash, vertex_ai/gemini-2.0-flash-lite, vertex_ai/gemini-2.5-flash-native-audio, vertex_ai/jamba-1.5, vertex_ai/jamba-1.5-large, vertex_ai/jamba-1.5-mini
Coverage gap, not delistings (speech, TTS, transcribe, MaaS and vector store ids the publisher model list does not return): vertex_ai/chirp_2, vertex_ai/chirp_3, vertex_ai/gemini-2.5-flash-preview-tts, vertex_ai/gemini-3.5-transcribe, vertex_ai/gemini-3.5-transcribe-live, vertex_ai/gemini-3.8-flash-tts, vertex_ai/gemini-3.8-flash-lite-tts, vertex_ai/gemini-omni-1.1-flash, vertex_ai/gemma-4-26b-a4b-it, vertex_ai/search_api
Pages changed
https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/google-models states no prices; the change is the navigation adding Haiku 5.5, so no row change from it
Note
Low Risk
Metadata-only updates to the model cost map; they change how thinking and tool_choice are validated for two Vertex Haiku 5.5 keys but do not touch auth, billing logic, or core request paths beyond those capability checks.
Overview
Corrects Vertex AI Claude Haiku 5.5 capability metadata for
vertex_ai/claude-haiku-5-5andvertex_ai/claude-haiku-5-5@defaultinmodel_prices_and_context_window.json(and the backup copy).thinking_always_onis set fromtruetofalseso LiteLLM treats Haiku 5.5 as adaptive thinking (not always-on like Opus 5.5).supports_forced_tool_useis set fromfalsetotrueso forcedtool_choiceis allowed instead of being rejected or downgraded. ThesourceURL is updated from Google Gemini Enterprise pricing to Anthropic’s pricing docs, matching the existing per-token costs on those rows.Reviewed by Cursor Bugbot for commit 07f8197. Bugbot is set up for automated code reviews on this repo. Configure here.