Code Interpreter Output : Container

I’ve created a custom RAG using the OpenAI API and integrated a code interpreter through the Assistant API.

In my application, when a user uploads a CSV file, the code interpreter performs the analysis. My main concern is how to display the analysis process, similar to how it appears in ChatGPT, in my own UI.

I am able to get the final output, but I’m unsure how to show the intermediate steps and outputs on the UI in real-time. I read that OpenAI uses a “container” to handle this, but I’m encountering an error stating that the container does not exist. How can I achieve this functionality in my application?