Skip to content

Commit 21a10fd

Browse files
Remove incorrect id and model properties from CreateEditResponse
The `id` and `model` properties are not returned by the `POST` `/edits` endpoint. Example JSON response from the `/edits` endpoint: ``` { "object": "edit", "created": 1675740853, "choices": [ { "text": "Write a tagline for an ice cream shop. sweetest place.\n", "index": 0 } ], "usage": { "prompt_tokens": 27, "completion_tokens": 35, "total_tokens": 62 } } ``` Reported in openai#7
1 parent dfaa7b3 commit 21a10fd

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

openapi.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2137,14 +2137,10 @@ components:
21372137
CreateEditResponse:
21382138
type: object
21392139
properties:
2140-
id:
2141-
type: string
21422140
object:
21432141
type: string
21442142
created:
21452143
type: integer
2146-
model:
2147-
type: string
21482144
choices:
21492145
type: array
21502146
items:
@@ -2190,10 +2186,8 @@ components:
21902186
- completion_tokens
21912187
- total_tokens
21922188
required:
2193-
- id
21942189
- object
21952190
- created
2196-
- model
21972191
- choices
21982192
- usage
21992193

0 commit comments

Comments
 (0)