OpenAI API

ChatCompletionMessageToolCall

object
idstringrequired

The ID of the tool call.

typestringrequired

The type of the tool. Currently, only function is supported.

Allowed values:function

functionobjectrequired

The function that the model called.

Show Child Parameters
Example

ChatCompletionMessageToolCallChunk

object
indexintegerrequired
idstring

The ID of the tool call.

typestring

The type of the tool. Currently, only function is supported.

Allowed values:function

functionobject
Show Child Parameters
Example

ChatCompletionMessageToolCalls

array

The tool calls generated by the model, such as function calls.

idstringrequired

The ID of the tool call.

typestringrequired

The type of the tool. Currently, only function is supported.

Allowed values:function

functionobjectrequired

The function that the model called.

Show Child Parameters

ChatCompletionModalities

array

Output types that you would like the model to generate for this request.
Most models are capable of generating text, which is the default:

["text"]

The gpt-4o-audio-preview model can also be used to generate audio. To
request that this model generate both text and audio responses, you can
use:

["text", "audio"]

ChatCompletionNamedToolChoice

object

Specifies a tool the model should use. Use to force the model to call a specific function.

typestringrequired

The type of the tool. Currently, only function is supported.

Allowed values:function

functionobjectrequired
Show Child Parameters
Example