Skip to content

Commit

Permalink
Merge pull request openai#60 from rattrayalex/patch-6
Browse files Browse the repository at this point in the history
Mark `finish_reason` and other properties as required
  • Loading branch information
athyuttamre committed Jul 13, 2023
2 parents bb2c6fc + 5670294 commit ec0b395
Showing 1 changed file with 13 additions and 22 deletions.
35 changes: 13 additions & 22 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,10 @@ components:
type: array
items:
type: object
required:
- index
- delta
- finish_reason
properties:
index:
type: integer
Expand All @@ -2163,6 +2171,7 @@ components:
finish_reason:
type: string
enum: ["stop", "length", "function_call"]
nullable: true
required:
- id
- object
Expand Down Expand Up @@ -2233,33 +2242,15 @@ components:
type: array
items:
type: object
required:
- text
- index
- finish_reason
properties:
text:
type: string
index:
type: integer
logprobs:
type: object
nullable: true
properties:
tokens:
type: array
items:
type: string
token_logprobs:
type: array
items:
type: number
top_logprobs:
type: array
items:
type: object
additionalProperties:
type: integer
text_offset:
type: array
items:
type: integer
finish_reason:
type: string
enum: ["stop", "length"]
Expand Down

0 comments on commit ec0b395

Please sign in to comment.