Saltar para o conteúdo principal
Versão: Próximo

OpenAIFile

The OpenAIFile class represents a file object in the OpenAI API. Files can be uploaded and used across various endpoints including Assistants, Fine-tuning, Batch, and Vision APIs.

Propriedades

Nome da propriedadeTipoDescrição
idTextThe file identifier, which can be referenced in the API endpoints.
bytesIntegerThe size of the file, in bytes.
created_atIntegerThe Unix timestamp (in seconds) for when the file was created.
expires_atIntegerThe Unix timestamp (in seconds) for when the file will expire.
filenameTextThe name of the file.
objetoTextThe object type, which is always "file".
purposeTextThe intended purpose of the file. Supported values: assistants, assistants_output, batch, batch_output, fine-tune, fine-tune-results, vision, and user_data.
statusTextDeprecated. The current status of the file, which can be either uploaded, processed, or error.
status_detailsTextDeprecated. For details on why a fine-tuning training file failed validation, see the error field on fine_tuning.job.

Veja também