Skip to content

feat: add azure_ai/mistral-ocr-2503 to model cost map - #32119

Closed
Tushar-024 wants to merge 1 commit into
BerriAI:litellm_oss_stagingfrom
Tushar-024:feat/add-azure-mistral-ocr-2503
Closed

Tushar-024 wants to merge 1 commit into
BerriAI:litellm_oss_stagingfrom
Tushar-024:feat/add-azure-mistral-ocr-2503

Conversation

@Tushar-024

Copy link
Copy Markdown

What / Why

Closes #32033.

Adds the Azure AI Foundry Mistral OCR deployment azure_ai/mistral-ocr-2503 (Mistral OCR 25.03) to the cost map. This is a real Foundry catalog model (ai.azure.com/catalog/models/mistral-ocr-2503) that was missing.

Note on naming (why not mistral-ocr-4-0)

The issue title asks for azure/mistral-ocr-4-0, but on Azure AI Foundry:

  • Mistral's OCR-4 ships as "Mistral Document AI" (per Microsoft's blog "Mistral Document AI (with OCR 4) … arrive in Microsoft Foundry") and already exists in the cost map as azure_ai/mistral-document-ai-2512.
  • Foundry serverless Mistral uses the azure_ai/ prefix, not azure/.
  • Azure does not expose a deployment literally named mistral-ocr-4-0.

So this PR adds the genuinely-missing real deployment (mistral-ocr-2503) rather than an alias that wouldn't resolve. Happy to adjust if maintainers prefer a different scope.

Changes

  • model_prices_and_context_window.json — add azure_ai/mistral-ocr-2503
  • litellm/model_prices_and_context_window_backup.json — same entry (kept identical)
  • tests/test_litellm/llms/azure_ai/test_azure_ai_mistral_ocr_metadata.py — metadata/pricing regression test

Pricing: $0.004/page (Azure Foundry Mistral pricing; matches the repo's existing OCR-4 rate).

Testing

pytest tests/test_litellm/llms/azure_ai/test_azure_ai_mistral_ocr_metadata.py
# 3 passed

@greptile-apps

greptile-apps Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Too many files changed for review. (154 files found, 100 file limit)

Bypass the limit by tagging @greptile-apps to review.

@CLAassistant

CLAassistant commented Jul 4, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@codecov

codecov Bot commented Jul 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread litellm/proxy/auth/auth_checks.py Resolved
@veria-ai

veria-ai Bot commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor

PR overview

All previously flagged issues have been addressed. No open security concerns remain on this pull request.

Security review

No open security issues remain on this pull request.

Fixed/addressed: 1 · PR risk: 0/10

@Tushar-024
Tushar-024 force-pushed the feat/add-azure-mistral-ocr-2503 branch from 835cb18 to df1fb4e Compare July 4, 2026 15:43
Adds the Azure AI Foundry Mistral OCR deployment azure_ai/mistral-ocr-2503
to both the main and backup cost maps, plus a metadata/pricing test.

Closes BerriAI#32033
@Tushar-024
Tushar-024 force-pushed the feat/add-azure-mistral-ocr-2503 branch from df1fb4e to 948b323 Compare July 4, 2026 15:48
@Tushar-024
Tushar-024 changed the base branch from main to litellm_oss_staging July 4, 2026 15:48
@devin-ai-integration

Copy link
Copy Markdown
Contributor

Superseded by rolling registry audit #37902, which reverified and absorbed the provider-documented metadata changes at field level

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