mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-28 22:44:59 +00:00
fix(stream): do not break channel consumption (#2517)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
0d62594099
commit
3b7a78adda
1 changed files with 0 additions and 1 deletions
|
@ -437,7 +437,6 @@ func ChatEndpoint(cl *config.BackendConfigLoader, ml *model.ModelLoader, startup
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Debug().Msgf("Sending chunk failed: %v", err)
|
log.Debug().Msgf("Sending chunk failed: %v", err)
|
||||||
input.Cancel()
|
input.Cancel()
|
||||||
break
|
|
||||||
}
|
}
|
||||||
w.Flush()
|
w.Flush()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue