Browse Source

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

Vyacheslav Moskalev 9 tháng trước cách đây
mục cha
commit
6bc5c13758
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      server/routes.go

+ 1 - 1
server/routes.go

@@ -247,7 +247,7 @@ func (s *Server) GenerateHandler(c *gin.Context) {
 						ch <- gin.H{"error": err.Error()}
 						return
 					}
-					res.Context = append(req.Context, tokens...)
+					res.Context = tokens
 				}
 			}