mirror of
https://github.com/ollama/ollama.git
synced 2026-04-21 16:25:42 +02:00
pass the template to the /api/chat endpoint
This commit is contained in:
@@ -84,6 +84,9 @@ type ChatRequest struct {
|
||||
// Model is the model name, as in [GenerateRequest].
|
||||
Model string `json:"model"`
|
||||
|
||||
// Template overrides the model's default prompt template.
|
||||
Template string `json:"template"`
|
||||
|
||||
// Messages is the messages of the chat - can be used to keep a chat memory.
|
||||
Messages []Message `json:"messages"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user