mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 07:46:59 +00:00
Fix extra context concatenation in generate handler (#5980).
This commit is contained in:
@@ -247,7 +247,7 @@ func (s *Server) GenerateHandler(c *gin.Context) {
|
|||||||
ch <- gin.H{"error": err.Error()}
|
ch <- gin.H{"error": err.Error()}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
res.Context = append(req.Context, tokens...)
|
res.Context = tokens
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user