Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
from together import Together
import os
client = Together(
api_key=os.environ.get("TOGETHER_API_KEY"),
)
file = client.files.retrieve_content(id="file-id")
print(file.filename){
"object": "<string>",
"id": "<string>",
"filename": "<string>",
"size": 123
}Get the contents of a single uploaded data file.
from together import Together
import os
client = Together(
api_key=os.environ.get("TOGETHER_API_KEY"),
)
file = client.files.retrieve_content(id="file-id")
print(file.filename){
"object": "<string>",
"id": "<string>",
"filename": "<string>",
"size": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?