Skip to content

Fix #3203: accumulate_delta drops tool_call fragments when one chunk has multip#3215

Draft
sherlock-488 wants to merge 1 commit intoopenai:mainfrom
sherlock-488:deep-pr-forge/3203-accumulate_delta-drops-tool_call-fragments-w
Draft

Fix #3203: accumulate_delta drops tool_call fragments when one chunk has multip#3215
sherlock-488 wants to merge 1 commit intoopenai:mainfrom
sherlock-488:deep-pr-forge/3203-accumulate_delta-drops-tool_call-fragments-w

Conversation

@sherlock-488
Copy link
Copy Markdown

@sherlock-488 sherlock-488 commented May 9, 2026

Fixes #3203

This updates accumulate_delta so tool call deltas with the same index are merged even when the accumulated value for that key is missing or None. That prevents fragmented tool calls from being stored as separate list entries.

Tests:

  • python -m pytest tests/lib/test_deltas.py -v
  • python -m pytest tests/lib/test_assistants.py -v
  • python -m pytest tests/test_streaming.py -v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

accumulate_delta drops tool_call fragments when one chunk has multiple entries at the same index

1 participant