Skip to content

Commit 45ae2c4

Browse files
Revert "add required as an option for tool_choice in chat/completions api"
1 parent e6256ed commit 45ae2c4

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

openapi.yaml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6731,7 +6731,7 @@ paths:
67316731
}
67326732
}
67336733
6734-
main();
6734+
main();
67356735
response: |
67366736
{
67376737
"object": "list",
@@ -6818,7 +6818,7 @@ paths:
68186818
console.log(batch);
68196819
}
68206820
6821-
main();
6821+
main();
68226822
response: &batch_object |
68236823
{
68246824
"id": "batch_abc123",
@@ -6897,7 +6897,7 @@ paths:
68976897
console.log(batch);
68986898
}
68996899
6900-
main();
6900+
main();
69016901
response: |
69026902
{
69036903
"id": "batch_abc123",
@@ -7523,20 +7523,18 @@ components:
75237523

75247524
ChatCompletionToolChoiceOption:
75257525
description: |
7526-
Controls which (if any) tool is called by the model.
7527-
`none` means the model will not call any tool and instead generates a message.
7528-
`auto` means the model can pick between generating a message or calling one or more tools.
7529-
`required` means the model must call one or more tools.
7530-
Specifying a particular tool via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.
7526+
Controls which (if any) function is called by the model.
7527+
`none` means the model will not call a function and instead generates a message.
7528+
`auto` means the model can pick between generating a message or calling a function.
7529+
Specifying a particular function via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that function.
75317530
7532-
`none` is the default when no tools are present. `auto` is the default if tools are present.
7531+
`none` is the default when no functions are present. `auto` is the default if functions are present.
75337532
oneOf:
75347533
- type: string
75357534
description: >
7536-
`none` means the model will not call any tool and instead generates a message.
7537-
`auto` means the model can pick between generating a message or calling one or more tools.
7538-
`required` means the model must call one or more tools.
7539-
enum: [none, auto, required]
7535+
`none` means the model will not call a function and instead generates a message.
7536+
`auto` means the model can pick between generating a message or calling a function.
7537+
enum: [none, auto]
75407538
- $ref: "#/components/schemas/ChatCompletionNamedToolChoice"
75417539
x-oaiExpandable: true
75427540

@@ -10003,17 +10001,15 @@ components:
1000310001
description: |
1000410002
Controls which (if any) tool is called by the model.
1000510003
`none` means the model will not call any tools and instead generates a message.
10006-
`auto` is the default value and means the model can pick between generating a message or calling one or more tools.
10007-
`required` means the model must call one or more tools before responding to the user.
10004+
`auto` is the default value and means the model can pick between generating a message or calling a tool.
1000810005
Specifying a particular tool like `{"type": "file_search"}` or `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that tool.
1000910006
1001010007
oneOf:
1001110008
- type: string
1001210009
description: >
10013-
`none` means the model will not call any tools and instead generates a message.
10014-
`auto` means the model can pick between generating a message or calling one or more tools.
10015-
`required` means the model must call one or more tools before responding to the user.
10016-
enum: [none, auto, required]
10010+
`none` means the model will not call a function and instead generates a message.
10011+
`auto` means the model can pick between generating a message or calling a function.
10012+
enum: [none, auto]
1001710013
- $ref: "#/components/schemas/AssistantsNamedToolChoice"
1001810014
x-oaiExpandable: true
1001910015

0 commit comments

Comments
 (0)