"src/diffusers/schedulers/scheduling_tcd.py" did not exist on "072e00897a7cf4302c347a63ec917b4b8add16d4"
Commit 35ac4eb1 authored by Michael Yang's avatar Michael Yang Committed by Michael Yang
Browse files

fix keep alive

this reference to keep alive was missed in #12041 so chat has a
diffferent behaviour than generate
parent 3d0b1734
......@@ -1777,7 +1777,7 @@ func (s *Server) ChatHandler(c *gin.Context) {
}
// expire the runner
if len(req.Messages) == 0 && req.KeepAlive != nil && int(req.KeepAlive.Seconds()) == 0 {
if len(req.Messages) == 0 && req.KeepAlive != nil && req.KeepAlive.Duration == 0 {
s.sched.expireRunner(m)
c.JSON(http.StatusOK, api.ChatResponse{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment