Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
665ba90d
Commit
665ba90d
authored
Dec 14, 2023
by
Timothy J. Baek
Browse files
feat: readable verbose output
parent
9f66cdbb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
src/lib/components/chat/Messages.svelte
src/lib/components/chat/Messages.svelte
+17
-7
No files found.
src/lib/components/chat/Messages.svelte
View file @
665ba90d
...
...
@@ -35,16 +35,26 @@
if
(
message
.
info
)
{
tippy
(
`#info-
${
message
.
id
}
`
,
{
content
:
`<span class="text-xs">token/s:
${
(
message
.
info
.
eval_count
??
0
)
/
message
.
info
.
eval_duration
??
'
N/A
'
`
${
Math
.
round
(
((
message
.
info
.
eval_count
??
0
)
/
(
message
.
info
.
eval_duration
/
1000000000
))
*
100
)
/
100
}
tokens
` ?? 'N/A'
}<br/>
total_duration
:
$
{
message
.
info
.
total_duration
??
'
N/A
'
}
<
br
/>
load_duration
:
$
{
message
.
info
.
load_duration
??
'
N/A
'
}
<
br
/>
sample_count
:
$
{
message
.
info
.
sample_count
??
'
N/A
'
}
<
br
/>
sample_duration
:
$
{
message
.
info
.
sample_duration
??
'
N/A
'
}
<
br
/>
total_duration:
${
Math
.
round
(((
message
.
info
.
total_duration
??
0
)
/
1000000
)
*
100
)
/
100
??
'
N/A
'
}
ms
<
br
/>
load_duration
:
$
{
Math
.
round
(((
message
.
info
.
load_duration
??
0
)
/
1000000
)
*
100
)
/
100
??
'
N/A
'
}
ms
<
br
/>
prompt_eval_count
:
$
{
message
.
info
.
prompt_eval_count
??
'
N/A
'
}
<
br
/>
prompt_eval_duration
:
$
{
message
.
info
.
prompt_eval_duration
??
'
N/A
'
}
<
br
/>
prompt_eval_duration
:
$
{
Math
.
round
(((
message
.
info
.
prompt_eval_duration
??
0
)
/
1000000
)
*
100
)
/
100
??
'
N/A
'
}
ms
<
br
/>
eval_count
:
$
{
message
.
info
.
eval_count
??
'
N/A
'
}
<
br
/>
eval_duration
:
$
{
message
.
info
.
eval_duration
??
'
N/A
'
}
<
/span>`
,
eval_duration
:
$
{
Math
.
round
(((
message
.
info
.
eval_duration
??
0
)
/
1000000
)
*
100
)
/
100
??
'
N/A
'
}
ms
<
/span>`
,
allowHTML
:
true
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment