View Source OpenaiEx.Beta.Thread.Message (openai_ex v0.5.4)
This module provides an implementation of the OpenAI messages API. The API reference can be found at https://platform.openai.com/docs/api-reference/messages.
API Fields
The following fields can be used as parameters for the messages API:
:role
:content
:file_ids
:metadata
Summary
Functions
Calls the message create endpoint.
Creates a new message request with the given arguments.
Lists the messages that belong to the specified thread.
Calls the message retrieve endpoint.
Calls the message update endpoint.
Functions
Calls the message create endpoint.
Arguments
openai
: The OpenAI configuration.params
: A map containing the fields of the message create request.
Returns
A map containing the fields of the created message object.
https://platform.openai.com/docs/api-reference/messages/createMessage
Creates a new message request with the given arguments.
Arguments
args
: A list of key-value pairs, or a map, representing the fields of the message request.
Returns
A map containing the fields of the message request.
Lists the messages that belong to the specified thread.
https://platform.openai.com/docs/api-reference/messages/listMessages
Calls the message retrieve endpoint.
Arguments
openai
: The OpenAI configuration.params
: A map containing the fields of the message retrieve request.
Returns
A map containing the fields of the specificied message object.
https://platform.openai.com/docs/api-reference/messages/getMessage
Calls the message update endpoint.
Arguments
openai
: The OpenAI configuration.params
: A map containing the fields of the message update request.
Returns
A map containing the fields of the message update response.
https://platform.openai.com/docs/api-reference/messages/modifyMessage