mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-21 13:54:29 -04:00
fix: missing returning error and free callback stream (#187)
This commit is contained in:
1 parent
77ce8b953e
commit
714bfcd45b
3 files changed
+23
-16
No files matched your search
+1
-2
@@ -81,10 +81,9 @@ func (ml *ModelLoader) TemplatePrefix(modelName string, in interface{}) (string,
|
||||
if exists {
|
||||
m = t
|
||||
}
|
||||
|
||||
}
|
||||
if m == nil {
|
||||
return "", nil
|
||||
return "", fmt.Errorf("failed loading any template")
|
||||
}
|
||||
|
||||
var buf bytes.Buffer
|
||||
|
||||
Reference in new issue
Block a user