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
fix(stream_chunk_builder_utils.py): don't set index on modelresponse (#10063)
Krish Dholakiac603680d2a97
diff --git a/litellm/litellm_core_utils/streaming_chunk_builder_utils.py b/litellm/litellm_core_utils/streaming_chunk_builder_utils.pyindex 024324a6974..198b71cad35 100644--- a/litellm/litellm_core_utils/streaming_chunk_builder_utils.py+++ b/litellm/litellm_core_utils/streaming_chunk_builder_utils.py@@ -161,7 +161,6 @@ class ChunkProcessor:name=tool_call_data["name"],),type=tool_call_data["type"] or "function",- index=index,))diff --git a/tests/litellm/litellm_core_utils/test_streaming_chunk_builder_utils.py b/tests/litellm/litellm_core_utils/test_streaming_chunk_builder_utils.pyindex 97300fadd83..2c4d4364b84 100644--- a/tests/litellm/litellm_core_utils/test_streaming_chunk_builder_utils.py+++ b/tests/litellm/litellm_core_utils/test_streaming_chunk_builder_utils.py@@ -135,7 +135,6 @@ def test_get_combined_tool_content():name="get_current_weather",),type="function",- index=0,),ChatCompletionMessageToolCall(id="call_rrns",@@ -144,7 +143,6 @@ def test_get_combined_tool_content():name="get_current_weather",),type="function",- index=1,),ChatCompletionMessageToolCall(id="call_0k29",@@ -153,6 +151,5 @@ def test_get_combined_tool_content():name="get_current_weather",),type="function",- index=2,),]