mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #4329] [MERGED] fix: missing openai usage information #21460
Reference in New Issue
Block a user
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/4329
Author: @cheahjs
Created: 8/3/2024
Status: ✅ Merged
Merged: 8/3/2024
Merged by: @tjbck
Base:
dev← Head:fix/missing-openai-usage-info📝 Commits (1)
283234dfix: missing openai usage information📊 Changes
1 file changed (+1 additions, -6 deletions)
View changed files
📝
src/lib/components/chat/Chat.svelte(+1 -6)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Due to how
messagesis updated and it's interaction with modifyingresponseMessage, we were updatingresponseMessagetoo late to have the usage information be reflected inmessages. Instead, always set theinfofield for messages within the event stream loop to avoid this.Fixed
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.