OpenAI API

ChatCompletionRequestAssistantMessageContentPart

One Of
typestringrequired

The type of the content part.

Allowed values:text

textstringrequired

The text content.

Example

Developer message

object

Developer-provided instructions that the model should follow, regardless of
messages sent by the user. With o1 models and newer, developer messages
replace the previous system messages.

contentOne Of
required

The contents of the developer message.

Text contentstring

The contents of the developer message.

rolestringrequired

The role of the messages author, in this case developer.

Allowed values:developer

namestring

An optional name for the participant. Provides the model information to differentiate between participants of the same role.

Example

Function message

object
rolestringrequired

The role of the messages author, in this case function.

Allowed values:function

contentstringrequired

The contents of the function message.

namestringrequired

The name of the function to call.

Example

ChatCompletionRequestMessage

One Of
contentOne Of
required

The contents of the developer message.

Text contentstring

The contents of the developer message.

rolestringrequired

The role of the messages author, in this case developer.

Allowed values:developer

namestring

An optional name for the participant. Provides the model information to differentiate between participants of the same role.

Example

Audio content part

object

Learn about audio inputs.

typestringrequired

The type of the content part. Always input_audio.

Allowed values:input_audio

input_audioobjectrequired
Show Child Parameters
Example