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: Use request body in curl log for Gemini streaming mode (#9736)

fengjiajie5a18eebdb6b7
diff --git a/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py b/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py
index 860dec9eb2d..2c77db8fb41 100644
--- a/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py
+++ b/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py
@@ -1029,7 +1029,7 @@ class VertexLLM(VertexBase):
input=messages,
api_key="",
additional_args={
- "complete_input_dict": data,
+ "complete_input_dict": request_body,
"api_base": api_base,
"headers": headers,
},