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 transform - vertex ai partner
Ishaan Jaffa31842ca54a6
diff --git a/litellm/llms/vertex_ai/vertex_ai_partner_models/llama3/transformation.py b/litellm/llms/vertex_ai/vertex_ai_partner_models/llama3/transformation.pyindex 7e965313a0b..748a5f5fb40 100644--- a/litellm/llms/vertex_ai/vertex_ai_partner_models/llama3/transformation.py+++ b/litellm/llms/vertex_ai/vertex_ai_partner_models/llama3/transformation.py@@ -113,10 +113,10 @@ class VertexAILlama3Config(OpenAIGPTConfig):status_code=raw_response.status_code,headers=response_headers,)- model_response.model = completion_response["model"]- model_response.id = completion_response["id"]- model_response.created = completion_response["created"]- setattr(model_response, "usage", Usage(**completion_response["usage"]))+ model_response.model = completion_response.get("model", model)+ model_response.id = completion_response.get("id", "")+ model_response.created = completion_response.get("created", 0)+ setattr(model_response, "usage", Usage(**completion_response.get("usage", {})))model_response.choices = self._transform_choices( # type: ignorechoices=completion_response["choices"],