mirror of
https://github.com/ollama/ollama.git
synced 2025-09-13 22:41:51 +02:00
api: add generate endpoint for structured outputs (#7939)
This commit is contained in:
@@ -67,7 +67,7 @@ type GenerateRequest struct {
|
||||
Raw bool `json:"raw,omitempty"`
|
||||
|
||||
// Format specifies the format to return a response in.
|
||||
Format string `json:"format"`
|
||||
Format json.RawMessage `json:"format,omitempty"`
|
||||
|
||||
// KeepAlive controls how long the model will stay loaded in memory following
|
||||
// this request.
|
||||
|
Reference in New Issue
Block a user