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:
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:

---
### 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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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.