mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-05 18:18:20 +00:00
fix(config): default to debug=false if not set (#1853)
This commit is contained in:
parent
fa9e330fc6
commit
843f93e1ab
@ -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…
x
Reference in New Issue
Block a user