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
- Shared base and layering rules:
../inference/AGENTS.md - This crate owns OCR call orchestration. Payloads belong in
litellm-llms-types, transformations and the request handler inllms/src/base_llm/ocrandllms/src/<provider>/ocr - The route returns its completed response directly
- Route closures supply OCR-specific host capabilities, such as the caller's Azure AD token provider (
src/route.rs) - Provider code reaches the caller's hooks mid-call only through
litellm_llms::base_llm::ocr::handler::CallHooks, which this crate implements over its host until it folds intolitellm_host::interceptors::Interceptors - OCR failures use
base_llm/ocr/error.rs, the recorded exception tolitellm_inference::Erroruntil OCR folds intolitellm_llms::Error