Commit 6bc5c137 authored by Vyacheslav Moskalev's avatar Vyacheslav Moskalev
Browse files

Fix extra context concatenation in generate handler (#5980).

parent 3e614260
...@@ -247,7 +247,7 @@ func (s *Server) GenerateHandler(c *gin.Context) { ...@@ -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
} }
} }
......
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