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]

test_completion_gemini_stream

Ishaan Jaff984f91f4f5cd
diff --git a/tests/local_testing/test_streaming.py b/tests/local_testing/test_streaming.py
index 184ede2222f..0f25ef4b6e3 100644
--- a/tests/local_testing/test_streaming.py
+++ b/tests/local_testing/test_streaming.py
@@ -701,7 +701,7 @@ async def test_completion_gemini_stream(sync_mode):
},
}
]
- messages = [{"role": "user", "content": "What is the weather like in Boston?"}]
+ messages = [{"role": "user", "content": "What is the weather like in Boston, MA?. You must provide me with a tool call in your response."}]
print("testing gemini streaming")
complete_response = ""
# Add any assertions here to check the response
@@ -817,7 +817,7 @@ async def test_completion_gemini_stream_accumulated_json(sync_mode):
},
}
]
- messages = [{"role": "user", "content": "What is the weather like in Boston?"}]
+ messages = [{"role": "user", "content": "What is the weather like in Boston, MA?. You must provide me with a tool call in your response."}]
print("testing gemini streaming")
complete_response = ""
# Add any assertions here to check the response