mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
add suffix support to generate endpoint
this change is triggered by the presence of "suffix", particularly useful for code completion tasks
This commit is contained in:
parent
987dbab0b0
commit
d290e87513
6 changed files with 155 additions and 27 deletions
|
@ -47,6 +47,9 @@ type GenerateRequest struct {
|
|||
// Prompt is the textual prompt to send to the model.
|
||||
Prompt string `json:"prompt"`
|
||||
|
||||
// Suffix is the text that comes after the inserted text.
|
||||
Suffix string `json:"suffix"`
|
||||
|
||||
// System overrides the model's default system message/prompt.
|
||||
System string `json:"system"`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue