Skip to content

fix: handle unterminated Hunyuan stream chunks#4100

Open
spduan78 wants to merge 1 commit into
higress-group:mainfrom
spduan78:codex/fix-hunyuan-final-sse-chunk
Open

fix: handle unterminated Hunyuan stream chunks#4100
spduan78 wants to merge 1 commit into
higress-group:mainfrom
spduan78:codex/fix-hunyuan-final-sse-chunk

Conversation

@spduan78

@spduan78 spduan78 commented Jul 7, 2026

Copy link
Copy Markdown

Summary

  • parse the remaining Hunyuan stream buffer when the final SSE chunk has no trailing blank line
  • ignore empty Hunyuan choice arrays instead of indexing Choices[0]
  • add a wasm-host regression test for final chunks without terminators

Tests

  • GOCACHE=/private/tmp/higress-go-cache go test -run TestHunyuanStreamingLastChunkWithoutTerminatorDoesNotPanic -count=1
  • GOCACHE=/private/tmp/higress-go-cache go test ./provider

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

3 participants