Skip to content

Commit

Permalink
Mark finish_reason and other properties as required
Browse files Browse the repository at this point in the history
Attempts to resolve openai/openai-node#82

Note I am very uncertain whether these changes are correct; they are just guesses. Please audit them before merging.
  • Loading branch information
rattrayalex committed Jul 10, 2023
1 parent 13eb5ed commit 5c7cd04
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2112,6 +2112,10 @@ components:
type: array
items:
type: object
required:
- index
- message
- finish_reason
properties:
index:
type: integer
Expand Down Expand Up @@ -2155,6 +2159,8 @@ components:
type: array
items:
type: object
required:
- index
properties:
index:
type: integer
Expand Down Expand Up @@ -2233,6 +2239,11 @@ components:
type: array
items:
type: object
required:
- text
- index
- logprobs
- finish_reason
properties:
text:
type: string
Expand Down

0 comments on commit 5c7cd04

Please sign in to comment.