Skip to content

test(openai-compatible): add Azure SSE regression test for empty choices handling#12607

Open
giulio-leone wants to merge 1 commit intovercel:mainfrom
giulio-leone:fix/issue-12056-stream-text-azure-empty
Open

test(openai-compatible): add Azure SSE regression test for empty choices handling#12607
giulio-leone wants to merge 1 commit intovercel:mainfrom
giulio-leone:fix/issue-12056-stream-text-azure-empty

Conversation

@giulio-leone
Copy link

Ref #12056

Context

Investigation confirmed that the existing openai-compatible streaming code already handles Azure SSE format correctly via optional chaining and null checks.

Changes

Added regression test with Azure SSE fixture covering:

  • Empty choices array with prompt_filter_results
  • Extra fields (obfuscation) in delta chunks
  • Post-completion content_filter_results chunks after finish_reason: stop
  • Verifies existing code handles Azure format without modification

…ces handling

Adds regression test with Azure SSE fixture covering:
- Empty choices array with prompt_filter_results
- Extra fields (obfuscation) in delta chunks
- Post-completion content_filter_results chunks
- Verifies existing code already handles Azure format correctly

Ref vercel#12056

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@giulio-leone giulio-leone force-pushed the fix/issue-12056-stream-text-azure-empty branch from 4edc413 to 63504d2 Compare February 14, 2026 21:05
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