Skip to content

Commit

Permalink
Remove incorrect id and model properties from CreateEditResponse
Browse files Browse the repository at this point in the history
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
  • Loading branch information
thejamescollins committed Feb 7, 2023
1 parent dfaa7b3 commit 21a10fd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2137,14 +2137,10 @@ components:
CreateEditResponse:
type: object
properties:
id:
type: string
object:
type: string
created:
type: integer
model:
type: string
choices:
type: array
items:
Expand Down Expand Up @@ -2190,10 +2186,8 @@ components:
- completion_tokens
- total_tokens
required:
- id
- object
- created
- model
- choices
- usage

Expand Down

0 comments on commit 21a10fd

Please sign in to comment.