mirror of
https://github.com/ollama/ollama.git
synced 2025-07-28 18:03:05 +02:00
support raw generation requests (#952)
- add the optional `raw` generate request parameter to bypass prompt formatting and response context -add raw request to docs
This commit is contained in:
@@ -37,6 +37,7 @@ type GenerateRequest struct {
|
||||
Template string `json:"template"`
|
||||
Context []int `json:"context,omitempty"`
|
||||
Stream *bool `json:"stream,omitempty"`
|
||||
Raw bool `json:"raw,omitempty"`
|
||||
|
||||
Options map[string]interface{} `json:"options"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user