Optional
contentThe contents of the message. content
is required for all messages except assistant messages with function calls.
ChatCompletionRequestMessage
Optional
function-ChatCompletionRequestMessage
Optional
nameThe name of the author of this message. name
is required if role is function
, and it should be the name of the function whose response is in the content
. May contain a-z, A-Z, 0-9, and underscores, with a maximum length of 64 characters.
ChatCompletionRequestMessage
The role of the messages author. One of system
, user
, assistant
, or function
.
ChatCompletionRequestMessage
Generated using TypeDoc
Export
ChatCompletionRequestMessage