Skip to content

Commit 3de8c95

Browse files
authored
docs: Refactor finish_reason property in ChatCompletionChoice (#24)
Replaced finish_reason property with a reference to FinishReason schema.
1 parent 7799b62 commit 3de8c95

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

openapi.yaml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,25 +1064,7 @@ components:
10641064
type: object
10651065
properties:
10661066
finish_reason:
1067-
type: string
1068-
description: >
1069-
The reason the model stopped generating tokens. This will be
1070-
`stop` if the model hit a natural stop point or a provided
1071-
stop sequence,
1072-
1073-
`length` if the maximum number of tokens specified in the
1074-
request was reached,
1075-
1076-
`content_filter` if content was omitted due to a flag from our
1077-
content filters,
1078-
1079-
`tool_calls` if the model called a tool.
1080-
enum:
1081-
- stop
1082-
- length
1083-
- tool_calls
1084-
- content_filter
1085-
- function_call
1067+
$ref: '#/components/schemas/FinishReason'
10861068
index:
10871069
type: integer
10881070
description: The index of the choice in the list of choices.

0 commit comments

Comments
 (0)