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
38616920
Unverified
Commit
38616920
authored
Oct 20, 2023
by
Michael Yang
Committed by
GitHub
Oct 20, 2023
Browse files
update runtime options (#864)
parent
0d6342a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
server/routes.go
server/routes.go
+4
-0
No files found.
server/routes.go
View file @
38616920
...
...
@@ -112,6 +112,10 @@ func load(ctx context.Context, workDir string, model *Model, reqOpts map[string]
loaded
.
Options
=
&
opts
}
// update options for the loaded llm
// TODO(mxyng): this isn't thread safe, but it should be fine for now
loaded
.
runner
.
SetOptions
(
opts
)
loaded
.
expireAt
=
time
.
Now
()
.
Add
(
sessionDuration
)
if
loaded
.
expireTimer
==
nil
{
...
...
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