## The problem

Issue crewAIInc/crewAI#3906 (closed, 17 comments): ### Description After updating to crewai 1.4.1, I can no longer use structured outputs with my Azure models I always get this error: ``` ERROR:root:Azure API call failed: Unsupported `response_format` {'type': 'json_schema', 'json_schema': {[MYJSONSCHEMA]} ``` ### Steps to Reproduce 1. Use crewai[azure-ai-inference] 1.4.1 2. Use an Azure model 3. Create an agent or call a Azure LLM with a pydantic model as response format ### Expected behavior It should just return the structured response as written in the docs ### Screenshots/Code snippets ```py from crewai import LLM, Agent from dotenv impor

## The verified fix

Contributor Vidit-Ostwal patched the regression in PR #3910. Reporter-confirmed workaround: declare the structured-output Pydantic model with extra='forbid', e.g. class Greeting(BaseModel, extra='forbid'): ...  -  reporter LouisLecouturier confirmed 'It works!', and Vidit-Ostwal added the field explicitly in the fix branch so the manual workaround is no longer needed.