litellm/litellm-rust/crates/core/tests
Yujong Lee 0d76359dc9 fix(rust): resolve OCR provider env fallbacks through the secret manager
Python reads every provider credential fallback (MISTRAL_API_KEY,
AZURE_AI_API_KEY, AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT, Azure AD and
Vertex env, ...) through get_secret_str, which consults the configured
key_management_system before os.environ. Native OCR read std::env
directly, so a key held only in the vault went missing and a stale env
copy silently won. OcrClient now carries an injected secret Lookup that
the connection exposes to providers and auth crates; the bridge backs it
with settings.secret -> get_secret_str, pure Rust keeps the process env.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-18 20:57:24 -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 OCR provider env fallbacks through the secret manager 2026-09-18 20:57:24 -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 refactor(rust): move OCR provider code into litellm-llms and delete core/src/llms 2026-09-17 22:29:08 -07:00