[PR #1544] [MERGED] feat: human readable Generation Info total #7497

Closed
opened 2025-11-11 17:28:22 -06:00 by GiteaMirror · 0 comments
Owner

📋 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: devHead: generation_info_approximate_total


📝 Commits (3)

📊 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: Briefly describe the changes in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.

Description

Add a new function to convert nanoseconds into approximate_total: for the Generation Info tooltip. It renders like this:
image


Changelog Entry

Added

  • Add 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.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/1544 **Author:** [@ghost](https://github.com/ghost) **Created:** 4/14/2024 **Status:** ✅ Merged **Merged:** 4/14/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `generation_info_approximate_total` --- ### 📝 Commits (3) - [`23b674d`](https://github.com/open-webui/open-webui/commit/23b674dddaf477bb4a61ede1f89f882ff47cca31) feat: human readable Generation Info total - [`d2d2552`](https://github.com/open-webui/open-webui/commit/d2d255228c1ba35a673c7a07736f68ebf3e70377) Format fix - [`b93337e`](https://github.com/open-webui/open-webui/commit/b93337e62fc9a5f247889a41c1b36cc11c75dca3) Format fix ### 📊 Changes **2 files changed** (+27 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/chat/Messages/ResponseMessage.svelte` (+5 -1) 📝 `src/lib/utils/index.ts` (+22 -0) </details> ### 📄 Description ## Pull Request Checklist - [x] **Description:** Briefly describe the changes in this pull request. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. --- ## Description Add a new function to convert nanoseconds into `approximate_total:` for the *Generation Info* tooltip. It renders like this: ![image](https://github.com/open-webui/open-webui/assets/126992880/8f770e85-43a4-435f-b7fa-7cfd660b68f2) --- ### Changelog Entry ### Added - Add `approximateToHumanReadable()` to _src/lib/utils/index.ts_ & activate inside _src/lib/components/chat/Messages/ResponseMessage.svelte_. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 17:28:22 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#7497