litellm/litellm-rust/crates/core/tests
Yujong Lee 0a00021722 fix(rust): resolve Mistral OCR credentials in Python's env order
Python resolves the Mistral key as api_key, MISTRAL_AZURE_API_KEY, then
MISTRAL_API_KEY, and the base as api_base, MISTRAL_AZURE_API_BASE, then
the public endpoint, never reading MISTRAL_API_BASE. Native OCR read
MISTRAL_API_KEY and MISTRAL_API_BASE instead, so with the Azure pair set
it sent the call to a different endpoint with a different key. Empty env
values now fall through like Python's `or` chain.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-19 07:33:02 -07:00
..
ocr refactor(rust): split custom_httpx into litellm-http and the OCR handler 2026-09-18 20:46:36 -07:00
azure_ai_ocr.rs refactor(rust): move OCR provider code into litellm-llms and delete core/src/llms 2026-09-17 22:29:08 -07:00
azure_document_intelligence_ocr.rs fix(rust): read OCR env-backed constants instead of hardcoding their defaults 2026-09-18 20:51:55 -07:00
cohere_ocr.rs refactor(rust): move OCR provider code into litellm-llms and delete core/src/llms 2026-09-17 22:29:08 -07:00
deepseek_ocr.rs refactor(rust): move OCR provider code into litellm-llms and delete core/src/llms 2026-09-17 22:29:08 -07:00
ocr.rs fix(rust): resolve Mistral OCR credentials in Python's env order 2026-09-19 07:33:02 -07:00
reducto_ocr.rs refactor(rust): rename litellm-callbacks to litellm-host and HostOpError to InvokeError 2026-09-18 15:45:08 -07:00
vertex_ai_deepseek_ocr.rs refactor(rust): move OCR provider code into litellm-llms and delete core/src/llms 2026-09-17 22:29:08 -07:00
vertex_ai_ocr.rs fix(rust): honor vertex_project, vertex_location and enable_azure_ad_token_refresh globals 2026-09-18 21:01:37 -07:00