Controls which (if any) function is called by the model. `none` means the model will not call a function and instead generates a message. `auto` means the model can pick between generating a message or calling a function. Specifying a particular function via `{"type": "function", "function": {"name": "my_function"}}` forces the model to call that function.
Microsoft AzureCloudCloud ComputingEnterpriseInfrastructure-as-a-ServicePlatform-as-a-ServiceT1
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/chatCompletionToolChoiceOption",
"title": "chatCompletionToolChoiceOption",
"description": "Controls which (if any) function is called by the model. `none` means the model will not call a function and instead generates a message. `auto` means the model can pick between generating a message or calling a function. Specifying a particular function via `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that function.",
"oneOf": [
{
"type": "string",
"description": "`none` means the model will not call a function and instead generates a message. `auto` means the model can pick between generating a message or calling a function.",
"enum": [
"none",
"auto"
]
},
{
"$ref": "#/components/schemas/chatCompletionNamedToolChoice"
}
]
}
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.