FilePurpose

Represents the reason a file was uploaded to the OpenAI API.

Entries

Link copied to clipboard

A file used to create/validate a fine-tuned model. When uploading a file for this purpose, the uploaded file must be a .jsonl (JSON list) file, where each line of the file is a separate training example. No other file types are accepted.

Link copied to clipboard

Files resulting from a fine-tuning task. This is used internally by OpenAI, If you try to upload a file with this purpose, you will get an error.

Link copied to clipboard

A file that an assistant can use for data analysis or information retrieval.

Link copied to clipboard

A file output from an assistant. This is used internally by OpenAI, if you try to upload a file with this purpose, you will get an error.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
Link copied to clipboard