files_retrieve_request: API files: retrieve file request

View source: R/api_files.R

files_retrieve_requestR Documentation

API files: retrieve file request

Description

Returns information about a specific file. To get more details, visit: https://platform.openai.com/docs/api-reference/files/retrieve

Usage

files_retrieve_request(file_id, api_key = api_get_key())

Arguments

file_id

string, id of the uploaded file

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.