Assistant not working with GPT-4 and GPT-4o

I have created two deployments in region “US EAST 2” with GPT-4o and region “Swedon Central” with GPT-4 .

Both with API version 2024-02-15-preview.

Still am not able to work with Assistants with one of the other errors .
Currently it says “TypeError: Assistants.create() got an unexpected keyword argument ‘file_ids’” .

Can someone please help, what am i doing wrong here .
here is my code sample :

client = AzureOpenAI(
    api_key="MY_KEY", 
    api_version="2024-02-15-preview",
    azure_endpoint = "MY_EP"    
    )

# Create an assistant
assistant = client.beta.assistants.create(
    name="Data Visualization",
    instructions=f"You are a helpful AI assistant who makes interesting visualizations based on data." 
    f"You have access to a sandboxed environment for writing and testing code."
    f"When you are asked to create a visualization you should follow these steps:"
    f"1. Write the code."
    f"2. Anytime you write new code display a preview of the code to show your work."
    f"3. Run the code to confirm that it runs."
    f"4. If the code is successful display the visualization."
    f"5. If the code is unsuccessful display the error message and try to revise the code and rerun going through the steps from above again.",
    tools=[{"type": "code_interpreter"}],
    model="XXX" #4o
)

from openai.types import FileObject
from pathlib import Path

def upload_file(client: AzureOpenAI, path: str) -> FileObject:
    with Path(path).open("rb") as f:
        return client.files.create(file=f, purpose="assistants")

filePath ='test_assistant.py'
assistant_files = []
assistant_files.append(upload_file(client, filePath))
file_ids = [file.id for file in assistant_files]

# Upload a file with an "assistants" purpose




# Create an assistant using the file ID
assistant = client.beta.assistants.create(
  instructions="You are an AI assistant that can write code to help answer math questions.",
  model="XXX",
  tools=[{"type": "code_interpreter"}],
  file_ids=[file_ids[0]]
)