Skip to content

fix: improve OpenAI stream handling for anomalous tool-call chunks#398

Merged
wsp1911 merged 1 commit intoGCWing:mainfrom
wsp1911:main
Apr 13, 2026
Merged

fix: improve OpenAI stream handling for anomalous tool-call chunks#398
wsp1911 merged 1 commit intoGCWing:mainfrom
wsp1911:main

Conversation

@wsp1911
Copy link
Copy Markdown
Collaborator

@wsp1911 wsp1911 commented Apr 13, 2026

  • filter id-only orphan tool-call chunks without dropping finish metadata
  • reattach pending tool-call ids to subsequent payload chunks that omit ids
  • detect snapshot-style tool argument chunks and replace buffered arguments
  • add unit tests for OpenAI normalization and tool-call argument replacement
  • add OpenAI stream integration fixtures for orphan, mixed-chunk, and snapshot cases

- filter id-only orphan tool-call chunks without dropping finish metadata
- reattach pending tool-call ids to subsequent payload chunks that omit ids
- detect snapshot-style tool argument chunks and replace buffered arguments
- add unit tests for OpenAI normalization and tool-call argument replacement
- add OpenAI stream integration fixtures for orphan, mixed-chunk, and snapshot cases
@wsp1911 wsp1911 merged commit cf55f3c into GCWing:main Apr 13, 2026
4 checks passed
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.

1 participant