main
 1# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
 2
 3from typing import Optional
 4from typing_extensions import Literal
 5
 6from .._models import BaseModel
 7
 8__all__ = ["FileObject"]
 9
10
11class FileObject(BaseModel):
12    id: str
13    """The file identifier, which can be referenced in the API endpoints."""
14
15    bytes: int
16    """The size of the file, in bytes."""
17
18    created_at: int
19    """The Unix timestamp (in seconds) for when the file was created."""
20
21    filename: str
22    """The name of the file."""
23
24    object: Literal["file"]
25    """The object type, which is always `file`."""
26
27    purpose: Literal[
28        "assistants",
29        "assistants_output",
30        "batch",
31        "batch_output",
32        "fine-tune",
33        "fine-tune-results",
34        "vision",
35        "user_data",
36    ]
37    """The intended purpose of the file.
38
39    Supported values are `assistants`, `assistants_output`, `batch`, `batch_output`,
40    `fine-tune`, `fine-tune-results`, `vision`, and `user_data`.
41    """
42
43    status: Literal["uploaded", "processed", "error"]
44    """Deprecated.
45
46    The current status of the file, which can be either `uploaded`, `processed`, or
47    `error`.
48    """
49
50    expires_at: Optional[int] = None
51    """The Unix timestamp (in seconds) for when the file will expire."""
52
53    status_details: Optional[str] = None
54    """Deprecated.
55
56    For details on why a fine-tuning training file failed validation, see the
57    `error` field on `fine_tuning.job`.
58    """