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 linting errors

Krrish Dholakiaa71329fbe167
diff --git a/litellm/responses/litellm_completion_transformation/streaming_iterator.py b/litellm/responses/litellm_completion_transformation/streaming_iterator.py
index d3a8cea3497..a4fb2d96032 100644
--- a/litellm/responses/litellm_completion_transformation/streaming_iterator.py
+++ b/litellm/responses/litellm_completion_transformation/streaming_iterator.py
@@ -119,8 +119,6 @@ class LiteLLMCompletionStreamingIterator(ResponsesAPIStreamingIterator):
response_created_event_data["truncation"] = self.responses_api_request[
"truncation"
]
- if "usage" in self.responses_api_request:
- response_created_event_data["usage"] = self.responses_api_request["usage"]
if "user" in self.responses_api_request:
response_created_event_data["user"] = self.responses_api_request["user"]
if "metadata" in self.responses_api_request: