Skip to content

fix(ai): ignore blank OpenAI finish reasons - #3722

Merged
wsp1911 merged 1 commit into
openBitFun:mainfrom
wsp1911:dev-omen
Nov 3, 2026
Merged

wsp1911 merged 1 commit into
openBitFun:mainfrom
wsp1911:dev-omen

Conversation

@wsp1911

@wsp1911 wsp1911 commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Treat empty and whitespace-only finish_reason values from OpenAI-compatible gateways as intermediate stream chunks. This prevents premature tool-call finalization from discarding accumulated arguments while preserving documented terminal reasons.

Add adapter and end-to-end SSE fixture coverage for blank finish reasons.

Treat empty and whitespace-only finish_reason values from OpenAI-compatible gateways as intermediate stream chunks. This prevents premature tool-call finalization from discarding accumulated arguments while preserving documented terminal reasons.

Add adapter and end-to-end SSE fixture coverage for blank finish reasons.
@wsp1911
wsp1911 merged commit 3a6e741 into openBitFun:main Nov 3, 2026
13 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