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: fix import

Krrish Dholakiacff8c3971c0a
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 4d1b6a3d9e7..97650adb29a 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
@@ -1853,7 +1853,7 @@ class ModelResponseIterator:
self.response_iterator = self.streaming_response
return self
- def handle_valid_json_chunk(self, chunk: str) -> Optional[ModelResponseStream]:
+ def handle_valid_json_chunk(self, chunk: str) -> Optional["ModelResponseStream"]:
chunk = chunk.strip()
try:
json_chunk = json.loads(chunk)