Skip to content

fix(azure): correct azure_ai/claude-haiku-5-5 forced tool use and thinking flags - #45114

Merged
kerry-berri merged 1 commit into
mainfrom
litellm-providers/price-sync-azure
Oct 7, 2026
Merged

kerry-berri merged 1 commit into
mainfrom
litellm-providers/price-sync-azure

Conversation

@berriai-litellm-provider-info-sync

@berriai-litellm-provider-info-sync berriai-litellm-provider-info-sync Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

How it solves it:

  • Sets supports_forced_tool_use to true and thinking_always_on to false on azure_ai/claude-haiku-5-5, and points source at the Anthropic migration guide that states both
  • Same edit in model_prices_and_context_window.json and litellm/model_prices_and_context_window_backup.json

Row evidence

azure_ai/claude-haiku-5-5, kind page, both quotes fetched raw with curl:

Every other field on the row already matches the sourced values (prices, cache prices, 1M/128K limits, deprecation_date 2027-09-29 from the Azure list API, the rest of the flags), so nothing else changes. The over 100k prompt price tier is left out under ruling azure-claude-haiku-5-5-drop-above-100k, so the row keeps base prices only

Changed pricing pages

The black-forest-labs, fireworks, kimi and llama Azure pricing pages changed, but every price they state matches the catalog, so no row changes. azure_ai/flux.2-pro stays as is under ruling azure-flux-2-pro-megapixel-leave-unchanged

Delisted by the provider

No exact retirement date was found on the Azure retirement schedule or retired models page for: azure/computer-use-preview, azure/container, azure/gpt-3.5-turbo, azure/gpt-3.5-turbo-instruct-0914, azure/gpt-35-turbo, azure/gpt-35-turbo-instruct, azure/gpt-35-turbo-instruct-0914, azure/gpt-4-0125-preview, azure/gpt-4-1106-preview, azure/gpt-4-turbo, azure/gpt-4-turbo-vision-preview, azure/gpt-5.2-pro, azure/gpt-5.5-pro, azure/gpt-5.6, azure/o1-mini, azure/sora-2-pro, azure/sora-2-pro-high-res. azure/mistral-large-2402 and azure/mistral-large-latest stay undated under ruling azure-mistral-large-conflicting-retirement-stay-undated. The other delisted ids already carry a deprecation_date

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*, make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review (Greptile reviews automatically once the PR is opened; only comment @greptileai to re-request a review after pushing changes)

Screenshots / Proof of Fix

Data only change to two capability flags. No completion call was made; the values rest on the quoted Anthropic pages


Note

Low Risk
Catalog-only flag and documentation URL updates with no runtime logic changes.

Overview
Corrects capability metadata for azure_ai/claude-haiku-5-5 in model_prices_and_context_window.json and its backup so LiteLLM matches Anthropic’s Haiku 5.5 behavior.

supports_forced_tool_use is set from false to true, and thinking_always_on from true to false. The row’s source now points at the Haiku 5.5 migration guide instead of the Azure management API list URL. No pricing, context limits, or other flags on the row change.

Reviewed by Cursor Bugbot for commit 9d7a3f6. Bugbot is set up for automated code reviews on this repo. Configure here.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@greptile-apps

greptile-apps Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

[Medium risk] Adds pricing and capability data for a new model variant.

Add the required cost test before merging; no runtime defect was established

Findings

  1. P2 New prices lack required tests ▶

Summary

Adds azure_ai/claude-haiku-5-5 to both price maps with limits, capabilities, cache prices, retirement date, and higher prices above 100k prompt tokens. The schema adds the five new price fields

  • The existing Azure cost path reads the new tier keys
  • Add the required focused cost test before merging
  • berriai-litellm-provider-info-sync[bot] explicitly chose not to make a completion call because this is a data-only change supported by catalog and page evidence. The lack of a live call is not reported separately

Reviews (1) · Last reviewed commit: "feat(azure): add azure_ai/claude-haiku-5..." · Reviewed by Greptile

Comment thread model_prices_and_context_window.json Outdated
"cache_read_input_token_cost_above_100k_tokens": 5e-08,
"deprecation_date": "2027-09-29",
"input_cost_per_token": 1e-07,
"input_cost_per_token_above_100k_tokens": 5e-07,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 New prices lack required tests

This row adds a 100k boundary and separate cache prices without focused tests. AGENTS.md requires meaningful tests for new features. Before merging, add an Azure cost test covering the boundary and cache tiers, using catalog-derived rates rather than fixed vendor prices

Context Used: AGENTS.md (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Data only cost map row, read by the existing abovek_tokens path in _get_token_base_cost; CLAUDE.md says tests must never pin vendor prices we do not own

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right: this is a catalog-only addition, and a test asserting vendor rates would violate the repository rule. I’m withdrawing the request.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread model_prices_and_context_window.json Resolved
@kerry-berri

Copy link
Copy Markdown
Contributor

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

1 issue from previous review remains unresolved.

Fix All in Cursor

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 6e99841. Configure here.

@berriai-litellm-provider-info-sync berriai-litellm-provider-info-sync Bot changed the title feat(azure): add azure_ai/claude-haiku-5-5 fix(azure): use integer prompt_cache_min_tokens for azure_ai/claude-haiku-5-5 Oct 7, 2026
@berriai-litellm-provider-info-sync
berriai-litellm-provider-info-sync Bot force-pushed the litellm-providers/price-sync-azure branch from 6e99841 to c10c9ae Compare October 7, 2026 18:21
@codspeed

codspeed Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing litellm-providers/price-sync-azure (9d7a3f6) with main (44bc165)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (810a310) during the generation of this report, so 44bc165 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@codecov

codecov Bot commented Oct 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kerry-berri
kerry-berri enabled auto-merge (squash) October 7, 2026 19:01
@berriai-litellm-provider-info-sync berriai-litellm-provider-info-sync Bot changed the title fix(azure): use integer prompt_cache_min_tokens for azure_ai/claude-haiku-5-5 feat(azure): add azure_ai/claude-haiku-5-5 Oct 7, 2026
@berriai-litellm-provider-info-sync
berriai-litellm-provider-info-sync Bot force-pushed the litellm-providers/price-sync-azure branch from c10c9ae to 6e7e5fc Compare October 7, 2026 19:03
@berriai-litellm-provider-info-sync berriai-litellm-provider-info-sync Bot changed the title feat(azure): add azure_ai/claude-haiku-5-5 fix(azure): correct azure_ai/claude-haiku-5-5 forced tool use and thinking flags Oct 7, 2026
@berriai-litellm-provider-info-sync
berriai-litellm-provider-info-sync Bot force-pushed the litellm-providers/price-sync-azure branch from 6e7e5fc to 9d7a3f6 Compare October 7, 2026 19:05
@kerry-berri
kerry-berri merged commit d174c43 into main Oct 7, 2026
83 checks passed
@kerry-berri
kerry-berri deleted the litellm-providers/price-sync-azure branch October 7, 2026 19:13
stvnksslr added a commit to stvnksslr/litellm that referenced this pull request Oct 8, 2026
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.
stvnksslr added a commit to stvnksslr/litellm that referenced this pull request Oct 12, 2026
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.
stvnksslr added a commit to stvnksslr/litellm that referenced this pull request Oct 14, 2026
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.
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.

2 participants