Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.47 KB

File metadata and controls

35 lines (26 loc) · 1.47 KB

ChatCompletionMessage

A chat completion message generated by the model.

Properties

Name Type Description Notes
content object The contents of the message.
refusal object The refusal message generated by the model.
role object The role of the author of this message.
audio ChatCompletionMessageAudio [optional]
function_call ChatCompletionMessageFunctionCall [optional]
tool_calls object The tool calls generated by the model, such as function calls. [optional]

Example

from wallet.models.chat_completion_message import ChatCompletionMessage

# TODO update the JSON string below
json = "{}"
# create an instance of ChatCompletionMessage from a JSON string
chat_completion_message_instance = ChatCompletionMessage.from_json(json)
# print the JSON string representation of the object
print ChatCompletionMessage.to_json()

# convert the object into a dict
chat_completion_message_dict = chat_completion_message_instance.to_dict()
# create an instance of ChatCompletionMessage from a dict
chat_completion_message_form_dict = chat_completion_message.from_dict(chat_completion_message_dict)

[Back to Model list] [Back to API list] [Back to README]