# Docs for v2 can be found by changing the above selector ^
from together import Together
import os
client = Together(
api_key=os.environ.get("TOGETHER_API_KEY"),
)
response = client.files.list()
for file in response.data:
print(file.id){
"data": [
{
"id": "<string>",
"object": "file",
"created_at": 1715021438,
"filename": "my_file.jsonl",
"bytes": 2664,
"purpose": "fine-tune",
"Processed": true,
"FileType": "jsonl",
"LineCount": 123
}
]
}List the metadata for all uploaded data files.
# Docs for v2 can be found by changing the above selector ^
from together import Together
import os
client = Together(
api_key=os.environ.get("TOGETHER_API_KEY"),
)
response = client.files.list()
for file in response.data:
print(file.id){
"data": [
{
"id": "<string>",
"object": "file",
"created_at": 1715021438,
"filename": "my_file.jsonl",
"bytes": 2664,
"purpose": "fine-tune",
"Processed": true,
"FileType": "jsonl",
"LineCount": 123
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
List of files
Show child attributes
"file"
1715021438
"my_file.jsonl"
2664
The purpose of the file
fine-tune, eval, eval-sample, eval-output, eval-summary, batch-generated, batch-api "fine-tune"
The type of the file
csv, jsonl, parquet "jsonl"
Was this page helpful?