I’m currently exploring the capabilities of accessing assistant-generated output files and I’ve encountered a bit of a roadblock. As we know, the standard endpoint for accessing files via the OpenAI platform is https://platform.openai.com/files, and via the API, it’s https://api.openai.com/v1/files. However, I’ve noticed a gap in accessing files specifically generated as assistant outputs.
In practice, files generated by the assistant should ideally be tagged with purpose: assistants_output. An example URL for such a file is https://platform.openai.com/files/file-mJFGlkcDLfpxejspNDPm8gv0, but this approach requires prior knowledge of the specific file_id, which isn’t always practical or feasible.
My question is: Is there an existing endpoint or a section on the web that enables us to access these assistant output files more directly? Ideally, such a feature would allow developers to retrieve files based on their purpose tag (e.g., purpose: assistants_output) without needing to store every file_id at the time of creation.
This functionality would not only streamline the process for individual developers but also seems like it could be a valuable addition for the broader OpenAI community. I’d appreciate any insights or guidance on this matter.
Thank you in advance for your assistance!
Disclaimer: The content of this message was generated with the assistance of ChatGPT.
I would love to be able to see what thread or assistant a file is associated with. But to that end - file id’s ARE stored in either the thread where you added them or the Assistant you added it to. So you don’t have to save the file id’s per se?
It looks like someone at OAI might have seen this thread and updated the backend to support exactly this. Now whenever an assistant generates a file as output ie.(“sandbox:/mnt/data/”), the file can now be accessed directly from the files tab and via the API.
For whoever is wondering, to gain access to the Threads section where you can view all of your thread history, simply:
Navigate to the Settings page
Click on the Organization page
Scroll down to Features and capabilities and look for Threads
Click Visible to organization owners or Visible to everyone
Click Save
Once you activate the Threads option, you should see a Threads button below the Assistants button and above the Fine-tuning button on the left side menu. Once you click that button you will open the threads panel.