Skip to content

Commit

Permalink
Merge pull request openai#88 from rattrayalex/patch-6
Browse files Browse the repository at this point in the history
fix: add content_filter and function_call to finish_reason
  • Loading branch information
athyuttamre committed Sep 19, 2023
2 parents 4f3366c + 02152fd commit b060f6d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2508,8 +2508,9 @@ components:
type: string
description: &completion_finish_reason_description |
The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,
or `length` if the maximum number of tokens specified in the request was reached.
enum: ["stop", "length"]
`length` if the maximum number of tokens specified in the request was reached,
or `content_filter` if content was omitted due to a flag from our content filters.
enum: ["stop", "length", "content_filter"]
usage:
$ref: "#/components/schemas/CompletionUsage"
required:
Expand Down Expand Up @@ -2813,8 +2814,10 @@ components:
type: string
description: &chat_completion_finish_reason_description |
The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,
`length` if the maximum number of tokens specified in the request was reached, or `function_call` if the model called a function.
enum: ["stop", "length", "function_call"]
`length` if the maximum number of tokens specified in the request was reached,
`content_filter` if content was omitted due to a flag from our content filters,
or `function_call` if the model called a function.
enum: ["stop", "length", "function_call", "content_filter"]
usage:
$ref: "#/components/schemas/CompletionUsage"
required:
Expand Down

0 comments on commit b060f6d

Please sign in to comment.