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(ai-gateway): build the gateway binary in the release image
mateo-berri6fdd3128d970
diff --git a/litellm-rust/crates/ai-gateway/Dockerfile b/litellm-rust/crates/ai-gateway/Dockerfileindex adf6fca0741..2bc3c05ad7e 100644--- a/litellm-rust/crates/ai-gateway/Dockerfile+++ b/litellm-rust/crates/ai-gateway/Dockerfile@@ -36,12 +36,12 @@ FROM chef AS builder# whenever only gateway source changes.COPY --from=planner /build/litellm-rust/recipe.json recipe.jsonRUN cargo chef cook --locked --release \- -p litellm-ai-gateway --features python-config \+ -p litellm-ai-gateway --features server,python-config \--recipe-path recipe.json# Now copy the real sources and build the gateway binary. Deps are already cooked# above, so this step only recompiles the gateway crate.COPY litellm-rust/ .-RUN cargo build --locked --release -p litellm-ai-gateway --features python-config+RUN cargo build --locked --release -p litellm-ai-gateway --bin litellm-ai-gateway --features server,python-config# ---- Runtime ----------------------------------------------------------------# python:3.11-slim-bookworm ships libpython3.11, matching the builder's PyO3