mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #23975] feat: Allow copying/exporting per-response metrics (prompt tokens, cache hits, eval stats) from chat UI #35667
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?
Originally created by @asusevski on GitHub (Apr 22, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23975
Check Existing Issues
Verify Feature Scope
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:
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
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
@asusevski commented on GitHub (Apr 22, 2026):
added a PR to implement this change https://github.com/open-webui/open-webui/pull/23980