Returns information about a specific file.
Parameters
file_id: str
Returns
Retrieve file
from openai import OpenAI
client = OpenAI()
client.files.retrieve("file-abc123")
{
"id": "file-abc123",
"object": "file",
"bytes": 120000,
"created_at": 1677610602,
"expires_at": 1677614202,
"filename": "mydata.jsonl",
"purpose": "fine-tune",
}
Returns Examples
{
"id": "file-abc123",
"object": "file",
"bytes": 120000,
"created_at": 1677610602,
"expires_at": 1677614202,
"filename": "mydata.jsonl",
"purpose": "fine-tune",
}