OpenaiEx.Files (openai_ex v0.9.4)

View Source

This module provides an implementation of the OpenAI files API. The API reference can be found at https://platform.openai.com/docs/api-reference/files.

Summary

Functions

Calls the file retrieve_content endpoint.

Calls the file upload endpoint.

Calls the file delete endpoint.

Lists the files that belong to the user's organization.

Creates a new file retrieve / deletion / retrieve_content request

Creates a new file upload request with the given arguments.

Calls the file retrieve endpoint.

Functions

content(openai, file_id)

content!(openai, file_id)

Calls the file retrieve_content endpoint.

https://platform.openai.com/docs/api-reference/files/retrieve-content

create(openai, upload)

create!(openai, upload)

Calls the file upload endpoint.

https://platform.openai.com/docs/api-reference/files/upload

delete(openai, file_id)

delete!(openai, file_id)

Calls the file delete endpoint.

https://platform.openai.com/docs/api-reference/files/delete

list(openai)

list!(openai)

Lists the files that belong to the user's organization.

https://platform.openai.com/docs/api-reference/files/list

new(args)

Creates a new file retrieve / deletion / retrieve_content request

new_upload(args)

Creates a new file upload request with the given arguments.

retrieve(openai, file_id)

retrieve!(openai, file_id)

Calls the file retrieve endpoint.

https://platform.openai.com/docs/api-reference/files/retrieve