ExOpenAI.Files.download_file
You're seeing just the function
download_file
, go back to ExOpenAI.Files module for more information.
Specs
download_file(String.t(), openai_organization_key: String.t(), openai_api_key: String.t() ) :: {:ok, String.t()} | {:error, any()}
Returns the contents of the specified file
Endpoint: https://api.openai.com/v1/files/{file_id}/content
Method: GET
Docs: https://platform.openai.com/docs/api-reference/files
Required Arguments:
file_id
Optional Arguments:
openai_api_key
: OpenAI API key to pass directly. If this is specified, it will override theapi_key
config value.openai_organization_key
: OpenAI API key to pass directly. If this is specified, it will override theorganization_key
config value.