An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
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"}]
}