Skip to content

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]

fix(rust-wheel): reduce native extension size

Yujong Lee0d09e9d8929f
diff --git a/litellm-rust/Cargo.toml b/litellm-rust/Cargo.toml
index 570d0dd3568..8725b25cfc7 100644
--- a/litellm-rust/Cargo.toml
+++ b/litellm-rust/Cargo.toml
@@ -73,7 +73,7 @@ fancy-regex = "0.19.2"
veil = "0.3.0"
[profile.release]
-opt-level = 3
+opt-level = 2
lto = "thin"
codegen-units = 1
panic = "unwind"