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(techdebt): drop restating comments from the 2026-08-30 window
Devin AI69fc4496664f
diff --git a/litellm/google_genai/adapters/transformation.py b/litellm/google_genai/adapters/transformation.pyindex b73a1443330..8ea19deef4c 100644--- a/litellm/google_genai/adapters/transformation.py+++ b/litellm/google_genai/adapters/transformation.py@@ -108,7 +108,6 @@ class GoogleGenAIStreamWrapper(AdapterCompletionStreamWrapper):def __init__(self, completion_stream: object):self.sent_first_chunk = False- # State tracking for accumulating partial tool callsself.accumulated_tool_calls = dict[int, _ToolCallAccumulator]()self._returned_response = Falsesuper().__init__(completion_stream)diff --git a/litellm/llms/runwayml/videos/transformation.py b/litellm/llms/runwayml/videos/transformation.pyindex c7289eb47f5..c7696a1cb29 100644--- a/litellm/llms/runwayml/videos/transformation.py+++ b/litellm/llms/runwayml/videos/transformation.py@@ -160,14 +160,12 @@ class RunwayMLVideoConfig(BaseVideoConfig):**self._prompt_image_param(video_create_optional_params),**self._ratio_param(video_create_optional_params),**self._duration_param(video_create_optional_params),- # Pass through other parameters that aren't OpenAI-specific**{key: value for key, value in video_create_optional_params.items() if key not in supported_openai_params},}@staticmethoddef _prompt_image_param(video_create_optional_params: VideoCreateOptionalRequestParams) -> Mapping[str, object]:# Handle input_reference parameter - map to promptImage- # RunwayML supports URLs and data URIs directlyif "input_reference" in video_create_optional_params:return {"promptImage": video_create_optional_params["input_reference"]}return {}diff --git a/litellm/proxy/response_polling/background_streaming.py b/litellm/proxy/response_polling/background_streaming.pyindex f755c6d478b..b03122966c0 100644--- a/litellm/proxy/response_polling/background_streaming.py+++ b/litellm/proxy/response_polling/background_streaming.py@@ -144,10 +144,8 @@ async def background_streaming_task(# Process streaming response following OpenAI events format# https://platform.openai.com/docs/api-reference/responses-streaming- output_items: Final = dict[str, _OutputItem]() # Track output items by ID- accumulated_text: Final = dict[- tuple[str, int], str- ]() # Track accumulated text deltas by (item_id, content_index)+ output_items: Final = dict[str, _OutputItem]()+ accumulated_text: Final = dict[tuple[str, int], str]()# ResponsesAPIResponse fields to extract from response.completedusage_data = None@@ -262,7 +260,6 @@ async def background_streaming_task(if "content" in delta_item:content_list = delta_item["content"]if content_index < len(content_list):- # Update existing content part with accumulated textcontent_entry = content_list[content_index]if isinstance(content_entry, dict):content_entry["text"] = accumulated_text[key]