@KarloKaluggi I think this is a known issue, here is a case from openai repo along with correct openai sdk version.
As per the referenced issue:
tool_resources parameter should be used while creating 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.