Learn R Programming

oaii (version 0.5.0)

assistants_create_file_request: API assistants: create assistant file

Description

Create an assistant file by attaching a file (https://platform.openai.com/docs/api-reference/files) to an assistant (https://platform.openai.com/docs/api-reference/assistants). To get more details, visit https://platform.openai.com/docs/api-reference/assistants/createAssistantFile https://platform.openai.com/docs/assistants

Usage

assistants_create_file_request(assistant_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

assistant_id

string, the ID of the assistant for which to create a File.

file_id

string, a file ID (with purpose="assistants") that the assistant should use. Useful for tools like retrieval and code_interpreter that can access files.

api_key

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