mirror of
https://github.com/ollama/ollama.git
synced 2025-10-11 03:13:45 +02:00
update runtime options (#864)
This commit is contained in:
@@ -112,6 +112,10 @@ func load(ctx context.Context, workDir string, model *Model, reqOpts map[string]
|
|||||||
loaded.Options = &opts
|
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)
|
loaded.expireAt = time.Now().Add(sessionDuration)
|
||||||
|
|
||||||
if loaded.expireTimer == nil {
|
if loaded.expireTimer == nil {
|
||||||
|
Reference in New Issue
Block a user