Skip to content

Commit 64b64a5

Browse files
[openai] Remove incorrect tool call id from tool call delta (#2210)
Co-authored-by: Douwe Maan <[email protected]>
1 parent 849aa4c commit 64b64a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_ai_slim/pydantic_ai/models/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ async def _get_event_iterator(self) -> AsyncIterator[ModelResponseStreamEvent]:
10511051
vendor_part_id=chunk.item_id,
10521052
tool_name=None,
10531053
args=chunk.delta,
1054-
tool_call_id=chunk.item_id,
1054+
tool_call_id=None,
10551055
)
10561056
if maybe_event is not None: # pragma: no branch
10571057
yield maybe_event

0 commit comments

Comments
 (0)