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
Merge remote-tracking branch 'origin/litellm_internal_staging' into litellm_fix_26167_bridged_session_lookup
mateo-berrid6d25ed310ec
diff --cc litellm/responses/litellm_completion_transformation/streaming_iterator.pyindex a8092edc625,67be8dedd55..92bbca9ee5b--- a/litellm/responses/litellm_completion_transformation/streaming_iterator.py+++ b/litellm/responses/litellm_completion_transformation/streaming_iterator.py@@@ -1149,8 -1114,14 +1182,10 @@@ class LiteLLMCompletionStreamingIteratoif self._cached_response_id:responses_api_response.id = self._cached_response_id+ responses_api_response.output = list(self._output_with_streamed_item_ids(responses_api_response))+# Encode the response ID to match non-streaming behavior- encoded_response: Final = ResponsesAPIRequestUtils._update_responses_api_response_id_with_model_id(- responses_api_response=responses_api_response,- custom_llm_provider=self.custom_llm_provider,- litellm_metadata=self.litellm_metadata,- )+ encoded_response: Final = self._with_encoded_response_id(responses_api_response)return ResponseCompletedEvent(type=ResponsesAPIStreamEvents.RESPONSE_COMPLETED,