500 Internal Server Error with o3‑mini + file_search on EastUS2 region (Assistants API)

Goran 0 Reputation points
2025-06-30T19:30:33.91+00:00

Our application has been successfully creating Azure OpenAI assistants with o3-mini (2025‑01‑31 build), attaching a vector store, enabling file_search, and calling /runs on the Assistants API. As of today, these calls now return a 500 Internal Server Error:

POST https://<your‑endpoint>.openai.azure.com/openai/threads/<thread_id>/runs?api‑version=2024‑05‑01‑preview

500 Internal Server Error

{

"error": {

"message": "The server had an error processing your request. Sorry about that! You can retry your req (truncated...)"

}

}

This flow worked without issue until very recently, with no changes in our code or Azure configuration.

Steps to reproduce:

Create an assistant with model = o3-mini (2025-01-31).

Attach tools including file_search, plus a file-backed vector store.

  1. Creates assistant thread, then POSTs to /runs.

The POST returns an HTTP 500 Internal Server Error (no further details).


[EDIT]: It looks like error is happening when passing reasoning_effort paramenter when creating assistant. Per OpenAI docs that is possible for o-series models only. I omitted and passed that argument when calling assistant run and seem to work now.

Azure OpenAI in Foundry Models

3 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Amira Bedhiafi 43,046 Reputation points MVP Volunteer Moderator
    2025-07-05T18:19:22.7566667+00:00

    Hello Goran !

    Thank you for posting on Microsoft Learn.

    What you are sharing is a known limitation introduced in the Assistants API (May 2024 preview) when using the o3-mini model with file_search and reasoning_effort in the EastUS2 region.

    You're right in identifying that the problem is caused by passing the reasoning_effort parameter when starting a run (/runs endpoint) with a model (o3-mini) that currently does not support it under Azure Assistants API, despite OpenAI general documentation saying it's allowed for o-series models.

    reasoning_effort is only supported for chat completions, not for assistant runs using file search with o3-mini.

    You can omit the reasoning_effort parameter when creating the assistant or calling /runs for that assistant.

    Even though reasoning_effort is accepted by the OpenAI API, Azure Assistants API might still enforce stricter checks or lag slightly behind in compatibility with model features.

    Try to use:

    {
      "assistant_id": "...",
      "instructions": "Answer using uploaded files",
      "tools": [{"type": "file_search"}]
    }
    

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.