fix: previous CLI rework broke debug logging (#2036)

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>
Co-authored-by: Dave <dave@gray101.com>
This commit is contained in:
cryptk 2024-04-15 15:13:59 -05:00 committed by GitHub
parent c751a4ac06
commit 538a086309
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,7 @@ func (r *RunCMD) Run(ctx *Context) error {
config.WithYAMLConfigPreload(r.PreloadModelsConfig),
config.WithModelPath(r.ModelsPath),
config.WithContextSize(r.ContextSize),
config.WithDebug(ctx.Debug),
config.WithDebug(*ctx.LogLevel == "debug"),
config.WithImageDir(r.ImagePath),
config.WithAudioDir(r.AudioPath),
config.WithUploadDir(r.UploadPath),