View Source OpenAI.Files (OpenAI API Wrapper v0.1.3)

Provides functions for managing files on OpenAI.

See OpenAI Files API documentation here.

Link to this section Summary

Functions

Deletes the file with the given id.

Lists files that belong to the user's organization.

Retrieve the file with the given id.

Retrieve the contents of the file with the given id.

Uploads a file, maximum 1GB.

Link to this section Functions

Deletes the file with the given id.

@spec list() :: {:ok, map()} | {:error, OpenAI.Error.t()}

Lists files that belong to the user's organization.

Retrieve the file with the given id.

Retrieve the contents of the file with the given id.

Uploads a file, maximum 1GB.