Creating an Assistant with Azure OpenAI - 404 Error Issue

Rita L He 0 Reputation points

Hey folks,

I'm currently working with the Azure OpenAI service, and I've successfully deployed the gpt-4-1106-preview model. However, when attempting to create an Assistant, I ran into a stumbling block - a pesky 404 error (httpx.HTTPStatusError: Client error '404 Resource Not Found' for url '').

I'm curious to know if the Azure OpenAI service supports the Assistant API. If it does, could someone kindly guide me through the process of creating an Assistant with the gpt-4-1106-preview model?

Appreciate any insights or help you can provide!
User's image

client = openai.AzureOpenAI(
        azure_endpoint= "",

assistant = client.beta.assistants.create(
        name="Math Tutor",
        instructions="You are a personal math tutor. Write and run code to answer math questions.",
        tools=[{"type": "code_interpreter"}],
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,629 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Ramr-msft 17,731 Reputation points

    Thanks for the question, Assistants API will be available in Azure Open AI and will be supported in the near future. It's in roadmap to support new release of GPT-4 and Assistants API will be available in Azure Open AI.

    3 people found this answer helpful.

  2. phil 1 Reputation point

    Hi, is this supported yet? It looks like it should be here:

    but I still get the 404 resource not found with the above?

    If it is supported what api version should I be using please? My code works fine with the OPENAI client just not the Azure OPENAI client (I am passing in api key, and endpoint and version)

    I have tried versions :
    2023-12-01-preview Swagger spec

    2024-02-15-previewSwagger spec

    model = "gpt-4"


    0 comments No comments