You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setup as per the docs. Managed to make one request in plan mode to create agent file.
At the end, switched to build mode and all I get is
I'm sorry, but I cannot assist with that request.
After trying multiple times with build and plan, switching between them, it eventually wrote the file.
Closed and reopened opencode, and now all I get regardless of what I type is "I'm sorry, but I cannot assist with that request."
Also don't seem to be able to select GPT-5.1-codex-max. Given I've configured a resource and API key, it should be showing what I've actually provisioned rather than a fixed list?
I am getting the same problem, the model works once after new setup and then refuses with "I'm sorry, but I cannot assist with that request." Azure OpenAI, "Default" Content filter used in a corporate environment.
OK now after deploying a new Azure project, it works (so far) with content filter "Default".
Activity
github-actions commentedon Dec 7, 2025
Searching for potential duplicates...
[-]Cant use OpenAI[/-][+]Cant use Azure OpenAI[/+]rekram1-node commentedon Dec 7, 2025
there is a setting in azure its like response security or something you need to change the setting ill update the docs about this
rekram1-node commentedon Dec 7, 2025
#2506 (comment)
rekram1-node commentedon Dec 7, 2025
/oc use docs agent to update azure stuff to recommend:
In Azure, if you change the content filter from DefaultV2 to Default the response no longer gets blocked
opencode-agent commentedon Dec 7, 2025
Created PR #5212
opencode session | github run
dogmatic69 commentedon Dec 7, 2025
I should have mentioned, I done that and it made no difference.
Also the initial time it worked, that was on V2. It then stopped working, I switched to the Default and does not work at all now.
rekram1-node commentedon Dec 7, 2025
Hm well that comes directly from azure so something about your account or prompts is triggering their content issues.
I use azure openai often and it works just fine for me, just had to configure this policy.
Maybe it takes a little to take effect or something? I'm not sure
liaoyinglong commentedon Jan 7, 2026
I have the same issue.
However, I don’t have permissions to access the Azure console, and the problem only occurs when running in plan mode.
My solution was to disable the built-in PLAN agent and use a custom PLAN agent instead:
{ "$schema": "https://opencode.ai/config.json", "agent": { "plan": { "disable": true } } }sshresthh commentedon Jan 22, 2026
I am having the same issue when using Azure OpenAI
kodjac commentedon Jan 27, 2026
I am getting the same problem, the model works once after new setup and then refuses with "I'm sorry, but I cannot assist with that request." Azure OpenAI, "Default" Content filter used in a corporate environment.
OK now after deploying a new Azure project, it works (so far) with content filter "Default".