mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-20 13:24:27 -04:00
fix(config): default to debug=false if not set (#1853)
This commit is contained in:
1 parent
fa9e330fc6
commit
843f93e1ab
1 file changed
+5
-1
@@ -276,8 +276,12 @@ func (cfg *BackendConfig) SetDefaults(debug bool, threads, ctx int, f16 bool) {
|
||||
cfg.F16 = &f16
|
||||
}
|
||||
|
||||
if cfg.Debug == nil {
|
||||
cfg.Debug = &falseV
|
||||
}
|
||||
|
||||
if debug {
|
||||
cfg.Debug = &debug
|
||||
cfg.Debug = &trueV
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user