mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-09 23:35:09 -05:00
[PR #1544] [MERGED] feat: human readable Generation Info total #7497
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/1544
Author: @ghost
Created: 4/14/2024
Status: ✅ Merged
Merged: 4/14/2024
Merged by: @tjbck
Base:
dev← Head:generation_info_approximate_total📝 Commits (3)
23b674dfeat: human readable Generation Info totald2d2552Format fixb93337eFormat fix📊 Changes
2 files changed (+27 additions, -1 deletions)
View changed files
📝
src/lib/components/chat/Messages/ResponseMessage.svelte(+5 -1)📝
src/lib/utils/index.ts(+22 -0)📄 Description
Pull Request Checklist
Description
Add a new function to convert nanoseconds into

approximate_total:for the Generation Info tooltip. It renders like this:Changelog Entry
Added
approximateToHumanReadable()to src/lib/utils/index.ts & activate inside src/lib/components/chat/Messages/ResponseMessage.svelte.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.