mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-04-14 23:12:37 +00:00
Fixes #4478. The is_openai_model flag was only set based on model name prefixes (gpt-, o1-, text-), but Azure deployment names can be anything (e.g. gpt5nano). Now is_openai_model is also True when the endpoint is an Azure OpenAI endpoint (openai.azure.com/openai/deployments/), ensuring response_model, tool calling, and structured output work regardless of the deployment name. Co-Authored-By: João <joao@crewai.com>