The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(ocr): use defensive getattr in load_rust_ocr
Arjun Pakhan3f5186f9afcc
diff --git a/litellm/ocr/rust_bridge.py b/litellm/ocr/rust_bridge.pyindex 1e3312c1473..253b35cb689 100644--- a/litellm/ocr/rust_bridge.py+++ b/litellm/ocr/rust_bridge.py@@ -97,7 +97,7 @@ def load_rust_ocr() -> RustOcr | None:import litellm_python_bridgeexcept ImportError:return None- return cast(RustOcr, litellm_python_bridge.ocr)+ return cast(RustOcr, getattr(litellm_python_bridge, "ocr", None))def load_rust_aocr() -> RustAocr | None: