mirror of
https://github.com/LukeHagar/LocalAI.git
synced 2025-12-09 20:47:46 +00:00
fix: missing returning error and free callback stream (#187)
This commit is contained in:
committed by
GitHub
parent
77ce8b953e
commit
714bfcd45b
@@ -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