# Docs for v1 can be found by changing the above selector ^
from together import Together
import os
client = Together(
api_key=os.environ.get("TOGETHER_API_KEY"),
)
file = client.files.retrieve(id="file-id")
print(file){
"id": "<string>",
"object": "<unknown>",
"created_at": 123,
"filename": "my_file.jsonl",
"bytes": 123,
"purpose": "fine-tune",
"Processed": true,
"FileType": "jsonl"
}Retrieve the metadata for a single uploaded data file.
# Docs for v1 can be found by changing the above selector ^
from together import Together
import os
client = Together(
api_key=os.environ.get("TOGETHER_API_KEY"),
)
file = client.files.retrieve(id="file-id")
print(file){
"id": "<string>",
"object": "<unknown>",
"created_at": 123,
"filename": "my_file.jsonl",
"bytes": 123,
"purpose": "fine-tune",
"Processed": true,
"FileType": "jsonl"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the file to retrieve
File retrieved successfully
Structured information describing a file uploaded to Together.
ID of the file.
The object type, which is always file.
The timestamp when the file was created.
The name of the file as it was uploaded.
"my_file.jsonl"
The number of bytes in the file.
The purpose of the file as it was uploaded.
fine-tune, eval, eval-sample, eval-output, eval-summary, batch-generated, batch-api "fine-tune"
Whether the file has been parsed and analyzed for correctness for fine-tuning.
The type of the file such as jsonl, csv, or parquet.
csv, jsonl, parquet "jsonl"
Was this page helpful?