mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
api: add generate endpoint for structured outputs (#7939)
This commit is contained in:
parent
630e7dc6ff
commit
c6c526275d
3 changed files with 4 additions and 7 deletions
|
@ -1126,7 +1126,7 @@ func generate(cmd *cobra.Command, opts runOptions) error {
|
|||
Prompt: opts.Prompt,
|
||||
Context: generateContext,
|
||||
Images: opts.Images,
|
||||
Format: opts.Format,
|
||||
Format: json.RawMessage(opts.Format),
|
||||
System: opts.System,
|
||||
Options: opts.Options,
|
||||
KeepAlive: opts.KeepAlive,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue