JSON mode: add `"format" as an api parameter (#1051)

* add `"format": "json"` as an API parameter
---------
Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>
This commit is contained in:
Jeffrey Morgan
2023-11-09 16:44:02 -08:00
committed by GitHub
parent 5b39503bcd
commit 5cba29b9d6
5 changed files with 97 additions and 9 deletions

View File

@@ -38,6 +38,7 @@ type GenerateRequest struct {
Context []int `json:"context,omitempty"`
Stream *bool `json:"stream,omitempty"`
Raw bool `json:"raw,omitempty"`
Format string `json:"format"`
Options map[string]interface{} `json:"options"`
}