Skip to content

fix(tokenusage): preserve Responses usage across callbacks - #54

Open
almondfasccino-dev wants to merge 1 commit into
higress-group:mainfrom
almondfasccino-dev:fix/response-completed-bounded-merge
Open

fix(tokenusage): preserve Responses usage across callbacks#54
almondfasccino-dev wants to merge 1 commit into
higress-group:mainfrom
almondfasccino-dev:fix/response-completed-bounded-merge

Conversation

@almondfasccino-dev

Copy link
Copy Markdown

Match standard SSE response.completed events, preserve events split across Envoy response-body callbacks, ignore empty streaming callbacks, and bound the temporary cache. Add regression coverage for these cases and existing non-streaming JSON parsing.

PS: main logic changed by author and unit test generated by gpt-5.6-sol xhigh

Match standard SSE response.completed events, preserve events split across Envoy response-body callbacks, ignore empty streaming callbacks, and bound the temporary cache. Add regression coverage for these cases and existing non-streaming JSON parsing.
@almondfasccino-dev

Copy link
Copy Markdown
Author

fix the issue of higress-group/higress#4424

@CLAassistant

CLAassistant commented Aug 13, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

2 participants