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(providers): correct perplexity base_url to include /v1

Chesars90a77c6466f8
diff --git a/litellm/llms/openai_like/providers.json b/litellm/llms/openai_like/providers.json
index 75418f7b55f..d9f3749fd18 100644
--- a/litellm/llms/openai_like/providers.json
+++ b/litellm/llms/openai_like/providers.json
@@ -81,7 +81,7 @@
"api_key_env": "GMI_API_KEY"
},
"perplexity": {
- "base_url": "https://api.perplexity.ai",
+ "base_url": "https://api.perplexity.ai/v1",
"api_key_env": "PERPLEXITYAI_API_KEY",
"supported_endpoints": ["/v1/chat/completions", "/v1/responses"]
},