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(helicone): correct provider URL for Vertex AI Gemini models
Chesars7d23106fcfaf
diff --git a/litellm/integrations/helicone.py b/litellm/integrations/helicone.pyindex c77a1b2564a..51e6699c5f4 100644--- a/litellm/integrations/helicone.py+++ b/litellm/integrations/helicone.py@@ -167,12 +167,12 @@ class HeliconeLogger:if "claude" in model and not is_vertex_ai:url = f"{self.api_base}/anthropic/v1/log"provider_url = "https://api.anthropic.com/v1/messages"- elif "gemini" in model:- url = f"{self.api_base}/custom/v1/log"- provider_url = "https://generativelanguage.googleapis.com/v1beta"elif is_vertex_ai:url = f"{self.api_base}/custom/v1/log"provider_url = "https://aiplatform.googleapis.com/v1"+ elif "gemini" in model:+ url = f"{self.api_base}/custom/v1/log"+ provider_url = "https://generativelanguage.googleapis.com/v1beta"headers = {"Authorization": f"Bearer {self.key}","Content-Type": "application/json",