View source: R/retrieve_file_content.R
retrieve_file_content | R Documentation |
Returns the content of the specified file. See this page for details. Please note that only output files are allowed to be downloaded, not the input ones.
retrieve_file_content(
file_id,
openai_api_key = Sys.getenv("OPENAI_API_KEY"),
openai_organization = NULL
)
file_id |
required; a length one character vector. |
openai_api_key |
required; defaults to |
openai_organization |
optional; defaults to |
For arguments description please refer to the official documentation.
Returns a list, an element of which contains the content of the file.
Other file functions:
delete_file()
,
list_files()
,
retrieve_file()
,
upload_file()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.