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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
chore: remove unused imports and variables
Xianzong Xie901252fb784b
diff --git a/litellm/proxy/response_api_endpoints/endpoints.py b/litellm/proxy/response_api_endpoints/endpoints.pyindex 6517b5ddc70..8ca8c5e9d65 100644--- a/litellm/proxy/response_api_endpoints/endpoints.py+++ b/litellm/proxy/response_api_endpoints/endpoints.py@@ -1,6 +1,5 @@import asyncioimport json-from typing import Any, Dictfrom fastapi import APIRouter, Depends, HTTPException, Request, Response@@ -80,7 +79,7 @@ async def _background_streaming_task(# Process streaming response following OpenAI events format# https://platform.openai.com/docs/api-reference/responses-streamingoutput_items = {} # Track output items by ID- accumulated_text = {} # Track accumulated text deltas by (output_index, content_index)+ accumulated_text = {} # Track accumulated text deltas by (item_id, content_index)usage_data = Nonereasoning_data = Nonetool_choice_data = None@@ -145,7 +144,6 @@ async def _background_streaming_task(# Text delta - accumulate text content# https://platform.openai.com/docs/api-reference/responses-streaming/response-text-deltaitem_id = event.get("item_id")- output_index = event.get("output_index", 0)content_index = event.get("content_index", 0)delta = event.get("delta", "")