Learn R Programming

oaii (version 0.5.0)

messages_retrieve_message_file_request: API messages: retrieve message file

Description

Retrieve a message file. To get more details, visit https://platform.openai.com/docs/api-reference/messages/getMessageFile https://platform.openai.com/docs/assistants

Usage

messages_retrieve_message_file_request(
  thread_id,
  message_id,
  file_id,
  api_key = api_get_key()
)

Value

content of the httr response object or SimpleError (conditions) enhanced with two additional fields: `status_code` (response$status_code) and `message_long` (built on response content)

Arguments

thread_id

string, the ID of the thread the messages belong to

message_id

string, the ID of the message that the files belongs to

file_id

string, the ID of the file being retrieved

api_key

string, OpenAI API key (see https://platform.openai.com/account/api-keys)