Please see this thread with similar error details.
We now need to use tool_resources with the assistant.
assistant = client.beta.assistants.create( instructions="You are an AI assistant that can write code to help answer math questions.", model=ENGINE_GPT4, tools=[{"type": "code_interpreter"}], tool_resources={ "code_interpreter": {"file_ids": [file.id]}} )
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.