mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-08 04:05:20 +00:00
Fix extra context concatenation in generate handler (#5980).
This commit is contained in:
parent
3e614260af
commit
6bc5c13758
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user