messages_retrieve_message_request: API messages: retrieve message

View source: R/api_messages.R

messages_retrieve_message_requestR Documentation

API messages: retrieve message

Description

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

Usage

messages_retrieve_message_request(
  thread_id,
  message_id,
  api_key = api_get_key()
)

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

api_key

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

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)


oaii documentation built on May 29, 2024, 5:25 a.m.