Hi everyone, I’m migrating our code interpreter from the Assistants API style to the Responses API style. I understand that I can upload files through container uploads for operations with models. However, I also see that I can use file IDs obtained from the /v1/files
endpoint, which don’t expire like containers. I’m confused about the relationship between files uploaded via container URLs and those accessed via /v1/files
. Are there any documents that explain this relationship? Thanks!
Those files are completely separate https://platform.openai.com/docs/api-reference/container-files
As far as I can see there is no relationship between the two. And at the moment, as per the documentation containers expire in 20 minutes, so indeed the files are not persisted.
Also in my experience currently using Responses API it is virtually impossible to get a correct reference to a container file in annotations - I have solved it by always using the container file list to get all the (in my case) created files.
2 Likes