mirror of
https://github.com/ollama/ollama.git
synced 2025-03-26 17:51:48 +01:00
fix: encode full previous prompt in context (#1424)
This commit is contained in:
parent
3b0b8930d4
commit
7e9405fd07
@ -277,7 +277,7 @@ func GenerateHandler(c *gin.Context) {
|
||||
}
|
||||
|
||||
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 {
|
||||
ch <- gin.H{"error": err.Error()}
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user