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]

Merge origin/litellm_internal_staging into litellm_lit4395_cursor_agent

mateo-berri9eeff0626388
diff --cc litellm/completion_extras/litellm_responses_transformation/transformation.py
index 79a4620dc80,16c90d5a20a..ada67d1cfe5
--- a/litellm/completion_extras/litellm_responses_transformation/transformation.py
+++ b/litellm/completion_extras/litellm_responses_transformation/transformation.py
@@@ -1457,11 -1368,9 +1457,11 @@@ class OpenAiResponsesToChatCompletionSt
Returns:
ModelResponseStream: OpenAI-formatted streaming chunk
"""
- verbose_logger.debug(f"Chat provider: transform_streaming_response called with chunk: {chunk}")
+ verbose_logger.debug("Chat provider: transform_streaming_response called with chunk: %s", chunk)
return self._with_stream_scoped_id(
- OpenAiResponsesToChatCompletionStreamIterator.translate_responses_chunk_to_openai_stream(chunk)
+ OpenAiResponsesToChatCompletionStreamIterator.translate_responses_chunk_to_openai_stream(
+ chunk, tool_call_index_map=self._tool_call_index_map
+ )
)
def _with_stream_scoped_id(self, chunk: "ModelResponseStream") -> "ModelResponseStream":