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]

Update streaming.py. Provide Type Annotation for empty dict

harish-berriec0cd5c17d81
diff --git a/litellm/files/streaming.py b/litellm/files/streaming.py
index a92b92abb27..36fe30fa829 100644
--- a/litellm/files/streaming.py
+++ b/litellm/files/streaming.py
@@ -118,7 +118,7 @@ class FileContentStreamingResponse:
return response
def _sync_hidden_params(self) -> None:
- litellm_params = {}
+ litellm_params: dict[str, Any] = {}
if self.logging_obj is not None:
litellm_params = (
self.logging_obj.model_call_details.get("litellm_params", {}) or {}