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
OpenDAS
ollama
Commits
5d1c6b74
Unverified
Commit
5d1c6b74
authored
Jul 14, 2023
by
Michael Yang
Committed by
GitHub
Jul 14, 2023
Browse files
Merge pull request #79 from jmorganca/fix-typo
fix typo
parents
77dc1a6d
5fefaa5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
api/types.go
api/types.go
+1
-1
No files found.
api/types.go
View file @
5d1c6b74
...
@@ -57,7 +57,7 @@ func (r *GenerateResponse) Summary() {
...
@@ -57,7 +57,7 @@ func (r *GenerateResponse) Summary() {
}
}
if
r
.
EvalDuration
>
0
{
if
r
.
EvalDuration
>
0
{
fmt
.
Fprintf
(
os
.
Stderr
,
"eval dura
i
ton: %s
\n
"
,
r
.
EvalDuration
)
fmt
.
Fprintf
(
os
.
Stderr
,
"eval durat
i
on: %s
\n
"
,
r
.
EvalDuration
)
fmt
.
Fprintf
(
os
.
Stderr
,
"eval rate: %.2f tokens/s
\n
"
,
float64
(
r
.
EvalCount
)
/
r
.
EvalDuration
.
Seconds
())
fmt
.
Fprintf
(
os
.
Stderr
,
"eval rate: %.2f tokens/s
\n
"
,
float64
(
r
.
EvalCount
)
/
r
.
EvalDuration
.
Seconds
())
}
}
}
}
...
...
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