mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 10:35:01 +00:00
fix(watchdog): use ShutdownModel instead of StopModel (#1882)
Fixes #1760
This commit is contained in:
parent
49cec7fd61
commit
bd25d8049c
2 changed files with 7 additions and 6 deletions
|
@ -155,10 +155,10 @@ func (ml *ModelLoader) ShutdownModel(modelName string) error {
|
|||
ml.mu.Lock()
|
||||
defer ml.mu.Unlock()
|
||||
|
||||
return ml.StopModel(modelName)
|
||||
return ml.stopModel(modelName)
|
||||
}
|
||||
|
||||
func (ml *ModelLoader) StopModel(modelName string) error {
|
||||
func (ml *ModelLoader) stopModel(modelName string) error {
|
||||
defer ml.deleteProcess(modelName)
|
||||
if _, ok := ml.models[modelName]; !ok {
|
||||
return fmt.Errorf("model %s not found", modelName)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue