Repository navigation
Conversation
emerzon
marked this pull request as ready for review
November 3, 2026 13:29
emerzon
requested review from
joshua-berri,
kerry-berri,
mateo-berri and
ryan-crabbe-berri
as code owners
November 3, 2026 13:29
3 tasks done
Contributor
|
Thanks Emerson, this row is now in #49361 with credit. Foundry lists max effort as unsupported, so that flag is false there |
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.
Claude Mythos 5.1 calls through Azure AI can report token usage while their cost lookup fails and spend is recorded as zero.
This adds the missing Azure AI catalog entry, including prompt-cache prices, and checks it through the existing catalog regression tests
Details
TLDR
Problem this solves
How it solves it
User Flow
Before, a developer cannot calculate the Azure model's cost
azure_ai/claude-mythos-5-1with no custom priceslitellm.cost_per_tokenwithcustom_llm_provider="azure_ai"ModelNotMappedError, despite an existing Anthropic catalog entryAfter, the same usage resolves to the Azure catalog prices
azure_ai/claude-mythos-5-1with no custom priceslitellm.cost_per_tokenwithcustom_llm_provider="azure_ai"Relevant issues
Fixes #49865
Catalog data
The entry includes input, output, five-minute cache-write, one-hour cache-write and cache-read prices, plus the model's context limits and Claude capabilities. The bundled backup contains the same entry
Anthropic's model reference publishes the rates and context limits and lists Microsoft Foundry availability. Microsoft's billing documentation confirms that Foundry uses Anthropic's published per-model token rates. Sources checked November 3, 2026
Provider-matching rules and request execution are unchanged. This addresses missing catalog-default prices, separate from custom deployment overrides in #49625
Screenshots / Proof of Fix
The reproduction uses the bundled catalog and requires no provider credentials
Before (
baddc67041e0888b8bcdc32d43e86c946c867c76)Adding the Mythos test parameter before changing either catalog produces three failing regressions and one passing routing case
After (
ac0b86bf3e2f86f3063258d54ddc4c30e2c42f01)The same usage now totals USD 0.03216. The Azure entry resolves through both a provider-prefixed model name and the bare name with an explicit provider
Validation
175 tests pass. The four Mythos cases also pass in the isolated locked Python 3.13 environment
The repository check runner passes test-tree Ruff, the test-quality gate, lazy OpenAPI snapshot regeneration and dashboard API-type consistency. Dependencies were provisioned separately in an isolated environment, then checks ran with
make -o bootstrap check-inner LINT_DEP_INSTALL= LINT_E2E_DEP_INSTALL= BASE_REF=baddc67041e0888b8bcdc32d43e86c946c867c76.git diff --checkalso passesPre-Submission checklist
Type
Bug Fix
Caveats
Medium
Final Attestation
The regression cases detect the original missing entry and pass with the addition. This PR remains a draft pending required GitHub checks and review