Unverified Commit 7e9405fd authored by Bruce MacDonald's avatar Bruce MacDonald Committed by GitHub
Browse files

fix: encode full previous prompt in context (#1424)

parent 3b0b8930
...@@ -277,7 +277,7 @@ func GenerateHandler(c *gin.Context) { ...@@ -277,7 +277,7 @@ func GenerateHandler(c *gin.Context) {
} }
if r.Done && !req.Raw { if r.Done && !req.Raw {
embd, err := loaded.runner.Encode(c.Request.Context(), req.Prompt+generated.String()) embd, err := loaded.runner.Encode(c.Request.Context(), prompt+generated.String())
if err != nil { if err != nil {
ch <- gin.H{"error": err.Error()} ch <- gin.H{"error": err.Error()}
return return
......
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