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
I have this configuration (with the API key, base URL, and resource name properly filled out). Additionally, I have an Azure OpenAI deployment called gpt-4.1 (case sensitive) created. However, when running opencode, I get the error: Resource not found.
Is there something wrong with the way I have the provider created?
Activity
github-actions commentedon Dec 29, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
landoncrabtree commentedon Dec 29, 2025
You need to just use
resourceName, as per AI SDK https://ai-sdk.dev/providers/ai-sdk-providers/azure, baseURL is generated from resourceName.tvdermeerSOG commentedon Jan 7, 2026
do NOT set the baseurl. this should be enough:
where resourceName is indeed "https://EXAMPLE.openai.azure.com/" from your baseurl