mirror of
https://github.com/open-webui/computer.git
synced 2026-11-05 01:17:24 +00:00
[GH-ISSUE #96] bug: OpenAI-compatible streaming usage can end responses early #47
Labels
No labels
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/computer#47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sandrogauci on GitHub (Jul 3, 2026).
Original GitHub issue: https://github.com/open-webui/computer/issues/96
Some OpenAI-compatible providers emit
usageon every streaming chunk instead of only at the end.chat_tasktreats ausageevent as final when there are no pending tool calls, so the first usage event can save and end the assistant response before the content stream is finished.Expected behavior: keep streaming content until the stream ends, then persist the final/latest usage payload.
@owui-terminator[bot] commented on GitHub (Jul 3, 2026):
⚠️ Missing Issue Title Prefix
@sandrogauci, your issue title is missing a categorising prefix (e.g.
bug:,feat:,docs:).Please update the title to lead with one of:
Example:
bug: Login fails when the password contains special characters@sandrogauci commented on GitHub (Jul 3, 2026):
I have a fix ready on this branch:
https://github.com/sandrogauci/computer/tree/fix/openai-compatible-stream-usage
Compare:
https://github.com/open-webui/computer/compare/main...sandrogauci💻fix/openai-compatible-stream-usage
I tried opening a PR, but GitHub returned:
Patch summary:
usagepayload instream_openai_completionsusageevent after the stream endsCommit:
github.com/sandrogauci/computer@9bfd5426f1@tjbck commented on GitHub (Jul 6, 2026):
Should be addressed with the latest!
@sandrogauci commented on GitHub (Jul 7, 2026):
excellent - thanks!