Skip to content

Commit c92fe77

Browse files
authored
avoid concat tool call delta id (#990)
1 parent e251fa6 commit c92fe77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agents/models/chatcmpl_stream_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ async def handle_stream(
276276
state.function_calls[tc_delta.index].name += (
277277
tc_function.name if tc_function else ""
278278
) or ""
279-
state.function_calls[tc_delta.index].call_id += tc_delta.id or ""
279+
state.function_calls[tc_delta.index].call_id = tc_delta.id or ""
280280

281281
if state.reasoning_content_index_and_output:
282282
yield ResponseReasoningSummaryPartDoneEvent(

0 commit comments

Comments
 (0)