# 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"),
)
with client.files.with_streaming_response.content(id="file-id") as response:
for line in response.iter_lines():
print(line)
"<string>"
Files
Get File Contents
Get the contents of a single uploaded data file.
GET
/
files
/
{id}
/
content
# 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"),
)
with client.files.with_streaming_response.content(id="file-id") as response:
for line in response.iter_lines():
print(line)