Browse Source

update runtime options (#864)

cgo
Michael Yang 2 years ago
committed by GitHub
parent
commit
386169205c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      server/routes.go

4
server/routes.go

@ -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 {

Loading…
Cancel
Save