mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 10:35:01 +00:00
fix(config): default to debug=false if not set (#1853)
This commit is contained in:
parent
fa9e330fc6
commit
843f93e1ab
1 changed files with 5 additions and 1 deletions
|
@ -276,8 +276,12 @@ func (cfg *BackendConfig) SetDefaults(debug bool, threads, ctx int, f16 bool) {
|
||||||
cfg.F16 = &f16
|
cfg.F16 = &f16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if cfg.Debug == nil {
|
||||||
|
cfg.Debug = &falseV
|
||||||
|
}
|
||||||
|
|
||||||
if debug {
|
if debug {
|
||||||
cfg.Debug = &debug
|
cfg.Debug = &trueV
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue