I get this error message when I try to build the direct URL endpoint to the files in my project sandbox:
The ChatGPT sandbox file system is not directly accessible via a public URL in your browser. The sandbox:/mnt/data/filename format is a special system reference within this chat environment, but it does not map to a public URL.
What is the correct way to access my sandbox files programmatically?
ChatGPT is OpenAI’s web chatbot, not something on the API.
The only thing it seems you could be referring to is the Assistants endpoints code_interpreter Python execution environment.
You cannot get back out files uploaded with purpose: assistants whether they are used as a tool attachment or not.
You can get sandbox files the AI has generated, through the files endpoint, a file ID which will have a files endpoint purpose of “assistants_output”.
The way you get them is when the assistant generates a reference to them. In the message of a thread, this is under:
content->text->annotation->file_path->[file_ids]
You do not want to offer users files other than by this mechanism, providing the specific user’s file.