mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #5879] [MERGED] feat: show the user the entirety of the usage response #76649
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/5879
Author: @cheahjs
Created: 10/2/2024
Status: ✅ Merged
Merged: 10/3/2024
Merged by: @tjbck
Base:
dev← Head:feat/arbitrary-usage-info📝 Commits (1)
a8ec73dfeat: show the user the entirety of the usage response📊 Changes
3 files changed (+46 additions, -25 deletions)
View changed files
📝
src/lib/apis/streaming/index.ts(+2 -0)📝
src/lib/components/chat/Chat.svelte(+1 -1)📝
src/lib/components/chat/Messages/ResponseMessage.svelte(+43 -24)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
usageobject from OpenAI compatible endpoints instead of the 3 properties we currently support. This is mostly driven by OpenAI's new prompt caching and reasoning tokens fields in the response, but some other providers provide other information as wellScreenshots or Videos
OpenAI's new usage:

SambaNova's usage:

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.