forked from open-webui/open-webui
update response message tooltip naming
This commit is contained in:
parent
2eaad82a91
commit
ab57cdd665
1 changed files with 3 additions and 3 deletions
|
@ -72,18 +72,18 @@
|
||||||
|
|
||||||
if (message.info) {
|
if (message.info) {
|
||||||
tooltipInstance = tippy(`#info-${message.id}`, {
|
tooltipInstance = tippy(`#info-${message.id}`, {
|
||||||
content: `<span class="text-xs" id="tooltip-${message.id}">token/s: ${
|
content: `<span class="text-xs" id="tooltip-${message.id}">response_token/s: ${
|
||||||
`${
|
`${
|
||||||
Math.round(
|
Math.round(
|
||||||
((message.info.eval_count ?? 0) / (message.info.eval_duration / 1000000000)) * 100
|
((message.info.eval_count ?? 0) / (message.info.eval_duration / 1000000000)) * 100
|
||||||
) / 100
|
) / 100
|
||||||
} tokens` ?? 'N/A'
|
} tokens` ?? 'N/A'
|
||||||
}<br/>
|
}<br/>
|
||||||
prompt/s: ${
|
prompt_token/s: ${
|
||||||
Math.round(
|
Math.round(
|
||||||
((message.info.prompt_eval_count ?? 0) / (message.info.prompt_eval_duration / 1000000000)) * 100
|
((message.info.prompt_eval_count ?? 0) / (message.info.prompt_eval_duration / 1000000000)) * 100
|
||||||
) / 100 ?? 'N/A'
|
) / 100 ?? 'N/A'
|
||||||
} prompts<br/>
|
} tokens<br/>
|
||||||
total_duration: ${
|
total_duration: ${
|
||||||
Math.round(((message.info.total_duration ?? 0) / 1000000) * 100) / 100 ??
|
Math.round(((message.info.total_duration ?? 0) / 1000000) * 100) / 100 ??
|
||||||
'N/A'
|
'N/A'
|
||||||
|
|
Loading…
Reference in a new issue