Description: I’ve encountered an issue with the Assistant API related to file handling. When using the Assistant API’s playground, it appears to have access to files uploaded to the assistant. However, when the API is called programmatically, its behavior is inconsistent.
Steps to Reproduce:
- Upload files to the Assistant.
- Test file access in the API playground - files are accessible.
- Make an API call to query the files (e.g., “What files do you have?”).
- Attempt to perform operations on these files through the API (e.g., summarizing content or answering questions based on the file contents).
Expected Behavior: The API should be able to access and interact with the files consistently, both in the playground and when called programmatically. This includes performing tasks like summarizing content or answering questions based on these files.
Actual Behavior: The API successfully acknowledges and lists the files when queried. However, when asked to perform tasks involving the content of these files, it fails to access them, despite the fact that file IDs are attached and visible in the API response.