fix(stream_chunk_builder_utils.py): don't set index on modelresponse (#10063)

* fix(stream_chunk_builder_utils.py): don't set index on modelresponse

* test: update tests
This commit is contained in:
Krish Dholakia 2025-04-16 10:11:47 -07:00 committed by GitHub
parent 7b7b43e1a7
commit c603680d2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 4 deletions

View file

@ -161,7 +161,6 @@ class ChunkProcessor:
name=tool_call_data["name"],
),
type=tool_call_data["type"] or "function",
index=index,
)
)

View file

@ -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,
),
]