Skip to content

fix(cost-map): remove azure_ai/claude-fable-5-5, which Azure does not list - #46345

Closed
kerry-berri wants to merge 1 commit into
mainfrom
litellm_remove_azure_ai_claude_fable_5_5_stampbot
Closed

kerry-berri wants to merge 1 commit into
mainfrom
litellm_remove_azure_ai_claude_fable_5_5_stampbot

Conversation

@kerry-berri

Copy link
Copy Markdown
Contributor

Replaces #46332 with the same commit, opened as litellm-stampbot so a human can approve it

TLDR

Problem this solves:

How it solves it:

  • Deletes the row from both cost-map JSON files

User Flow

Before: a proxy admin browsing the model list sees a Claude Fable 5.5 price for Azure that no real model backs

  1. They add azure_ai/claude-fable-5-5 to config.yaml
  2. GET https://litellm-domain/model/info shows input_cost_per_token 1e-05 and max_input_tokens 1000000
  3. POST https://litellm-domain/v1/chat/completions returns 404 DeploymentNotFound from Azure

After: the cost map no longer advertises a model Azure does not have

  1. They add azure_ai/claude-fable-5-5 to config.yaml
  2. GET https://litellm-domain/model/info shows input_cost_per_token null, like any unknown model
  3. POST https://litellm-domain/v1/chat/completions still returns 404 DeploymentNotFound from Azure

Pre-Submission checklist

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/unit/<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
  • Every automated review on my PR's latest commit has finished, and I have addressed or replied to each of its findings before requesting a maintainer review

Screenshots / Proof of Fix

The Azure Models API was queried with the Foundry service principal on 2026-10-14. In eastus2 it returns 430 models and the only Fable rows are claude-fable-5 and claude-fable-5-1, both Preview. eastus, westus, westus3, swedencentral and northcentralus have no claude-fable-5-5 either

Shared config for both proxies, started with LITELLM_LOCAL_MODEL_COST_MAP=True so each reads its own checkout's JSON

model_list:
  - model_name: claude-fable-5-5
    litellm_params:
      model: azure_ai/claude-fable-5-5
      api_key: os.environ/AZURE_AI_API_KEY
      api_base: os.environ/AZURE_AI_API_BASE

Before (c581c85)

  1. curl -s localhost:4002/model/info -H "Authorization: Bearer $KEY" | jq -c '.data[0].model_info | {key, litellm_provider, input_cost_per_token, output_cost_per_token, max_input_tokens}'
{"key":"azure_ai/claude-fable-5-5","litellm_provider":"azure_ai","input_cost_per_token":1e-05,"output_cost_per_token":5e-05,"max_input_tokens":1000000}
  1. curl -s localhost:4002/v1/chat/completions -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" -d '{"model":"claude-fable-5-5","messages":[{"role":"user","content":"hi"}],"max_tokens":16}'
{"code":"404","message":"litellm.NotFoundError: NotFoundError: Azure_aiException - {\"error\":{\"code\":\"DeploymentNotFound\",\"message\":\"The API deployment claude-fable-5-5 does not exist. ..."}

After (2860a1c)

  1. Same /model/info call on port 4001
{"key":"azure_ai/claude-fable-5-5","litellm_provider":"azure_ai","input_cost_per_token":null,"output_cost_per_token":null,"max_input_tokens":200000}
  1. Same /v1/chat/completions call on port 4001
{"code":"404","message":"litellm.NotFoundError: NotFoundError: Azure_aiException - {\"error\":{\"code\":\"DeploymentNotFound\",\"message\":\"The API deployment claude-fable-5-5 does not exist. ..."}

Type

🐛 Bug Fix

Caveats (if any)

Medium

  • The price sync could add this row again on its next Azure run
    • It created the row from one Models API listing with every price copied from azure_ai/claude-fable-5-1

Low

  • max_input_tokens 200000 after the change comes from the Claude fallback generalization rule, not this row

Link to Devin session: https://app.devin.ai/sessions/3d3abda9a4fb4c4c9f8bee5a1b249021
Open in Devin Desktop: https://app.devin.ai/desktop/session/3d3abda9a4fb4c4c9f8bee5a1b249021?variant=devin
Requested by: @kerrylu-berri

… list

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@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.

@klu-berri
klu-berri enabled auto-merge (squash) October 14, 2026 02:22
@codspeed

codspeed Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

⚠️ 1 benchmark spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

✅ 31 untouched benchmarks


Comparing litellm_remove_azure_ai_claude_fable_5_5_stampbot (2860a1c) with main (083d48f)

Open in CodSpeed

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Closing as superseded by the rolling registry PR #46428, which carries this same commit after rechecking the Azure Models API

auto-merge was automatically disabled October 14, 2026 13:14

Pull request was closed

@klu-berri
klu-berri deleted the litellm_remove_azure_ai_claude_fable_5_5_stampbot branch October 15, 2026 04:35
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.

3 participants