api: add generate endpoint for structured outputs (#7939)

This commit is contained in:
Parth Sareen 2024-12-04 17:37:12 -08:00 committed by GitHub
parent 630e7dc6ff
commit c6c526275d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 7 deletions

View file

@ -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,