forked from openai/openai-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfile_object.py
More file actions
48 lines (33 loc) · 1.28 KB
/
Copy pathfile_object.py
File metadata and controls
48 lines (33 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Optional
from typing_extensions import Literal
from .._models import BaseModel
__all__ = ["FileObject"]
class FileObject(BaseModel):
id: str
"""The file identifier, which can be referenced in the API endpoints."""
bytes: int
"""The size of the file, in bytes."""
created_at: int
"""The Unix timestamp (in seconds) for when the file was created."""
filename: str
"""The name of the file."""
object: Literal["file"]
"""The object type, which is always `file`."""
purpose: Literal[
"assistants", "assistants_output", "batch", "batch_output", "fine-tune", "fine-tune-results", "vision"
]
"""The intended purpose of the file.
Supported values are `assistants`, `assistants_output`, `batch`, `batch_output`,
`fine-tune`, `fine-tune-results` and `vision`.
"""
status: Literal["uploaded", "processed", "error"]
"""Deprecated.
The current status of the file, which can be either `uploaded`, `processed`, or
`error`.
"""
status_details: Optional[str] = None
"""Deprecated.
For details on why a fine-tuning training file failed validation, see the
`error` field on `fine_tuning.job`.
"""