Learn R Programming

oaii (version 0.5.0)

files_roxygen_tpl: API files: roxygen template

Description

API files: roxygen template

Usage

files_roxygen_tpl(api_key, file_id)

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

api_key

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

file_id

string, id of the uploaded file