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(main.py): fix OR import

Krrish Dholakia76c3957140e9
diff --git a/litellm/main.py b/litellm/main.py
index 614312ca026..6cc1057bb45 100644
--- a/litellm/main.py
+++ b/litellm/main.py
@@ -2249,7 +2249,7 @@ def completion( # type: ignore # noqa: PLR0915
api_base = (
api_base
or litellm.api_base
- or get_secret("OPENROUTER_API_BASE")
+ or get_secret_str("OPENROUTER_API_BASE")
or "https://openrouter.ai/api/v1"
)