OpenaiChatCompletionMessage
OpenaiChatCompletionMessage =
object
Defined in: src/client/types.gen.ts:3220
A chat completion message generated by the model.
Properties
annotations?
optionalannotations:OpenaiChatCompletionMessageAnnotation[]
Defined in: src/client/types.gen.ts:3225
Annotations for the message, when applicable, as when using the web search tool .
audio?
optionalaudio:OpenaiChatCompletionAudio
Defined in: src/client/types.gen.ts:3226
content?
optionalcontent:string
Defined in: src/client/types.gen.ts:3230
The contents of the message.
function_call?
optionalfunction_call:OpenaiChatCompletionMessageFunctionCall
Defined in: src/client/types.gen.ts:3231
refusal?
optionalrefusal:string
Defined in: src/client/types.gen.ts:3235
The refusal message generated by the model.
role?
optionalrole:string
Defined in: src/client/types.gen.ts:3239
The role of the author of this message.
tool_calls?
optionaltool_calls:OpenaiChatCompletionMessageToolCall[]
Defined in: src/client/types.gen.ts:3243
The tool calls generated by the model, such as function calls.