[GH-ISSUE #23975] feat: Allow copying/exporting per-response metrics (prompt tokens, cache hits, eval stats) from chat UI #58804

Closed
opened 2026-05-06 00:00:34 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @asusevski on GitHub (Apr 22, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23975

Check Existing Issues

  • I have searched for all existing open AND closed issues and discussions for similar requests. I have found none that is comparable to my request.

Verify Feature Scope

  • I have read through and understood the scope definition for feature requests in the Issues section. I believe my feature request meets the definition and belongs in the Issues section instead of the Discussions.

Problem Description

When testing different models, I sometimes want to copy the metrics out of the response message (prompt_n, predicted_ms, etc) but these values are not easily copied from the tooltip. It would be super nice to be able to copy these values:

Image

Desired Solution you'd like

there is already a copy-to-clipboard helper in utils/index.ts, it would be reasonable to update on click to use the copy to clipboard util.

hovering over the info would reveal the metrics and render as clickable

Image

and copied to clipboard the metrics stringified:
cache_n: 1
prompt_n: 22
prompt_ms: 655.256
prompt_per_token_ms: 29.784363636363636
prompt_per_second: 33.574663948136305
predicted_n: 236
predicted_ms: 33340.312
predicted_per_token_ms: 141.27250847457626
predicted_per_second: 7.078518041462839
input_tokens: 22
output_tokens: 236
total_tokens: 258

Alternatives Considered

No response

Additional Context

No response

Originally created by @asusevski on GitHub (Apr 22, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/23975 ### Check Existing Issues - [x] I have searched for all existing **open AND closed** issues and discussions for similar requests. I have found none that is comparable to my request. ### Verify Feature Scope - [x] I have read through and understood the scope definition for feature requests in the Issues section. I believe my feature request meets the definition and belongs in the Issues section instead of the Discussions. ### Problem Description When testing different models, I sometimes want to copy the metrics out of the response message (prompt_n, predicted_ms, etc) but these values are not easily copied from the tooltip. It would be super nice to be able to copy these values: <img width="317" height="312" alt="Image" src="https://github.com/user-attachments/assets/5d816067-bdb0-48c4-b9c8-f5aa12db5549" /> ### Desired Solution you'd like there is already a copy-to-clipboard helper in utils/index.ts, it would be reasonable to update on click to use the copy to clipboard util. hovering over the info would reveal the metrics and render as clickable <img width="495" height="432" alt="Image" src="https://github.com/user-attachments/assets/b7c0f87b-b127-4f45-acc0-22fccd6baa46" /> and copied to clipboard the metrics stringified: cache_n: 1 prompt_n: 22 prompt_ms: 655.256 prompt_per_token_ms: 29.784363636363636 prompt_per_second: 33.574663948136305 predicted_n: 236 predicted_ms: 33340.312 predicted_per_token_ms: 141.27250847457626 predicted_per_second: 7.078518041462839 input_tokens: 22 output_tokens: 236 total_tokens: 258 ### Alternatives Considered _No response_ ### Additional Context _No response_
Author
Owner

@asusevski commented on GitHub (Apr 22, 2026):

added a PR to implement this change https://github.com/open-webui/open-webui/pull/23980

<!-- gh-comment-id:4293615505 --> @asusevski commented on GitHub (Apr 22, 2026): added a PR to implement this change https://github.com/open-webui/open-webui/pull/23980
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#58804