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 haven’t used opencode myself, but I have run the Anthropic Claude API in a Microsoft Foundry (Azure) environment using AI SDK.
An example of that setup can be found in vercel/ai#10400.
As you can see from the sample code at the URL below, it uses @ai-sdk/anthropic rather than @ai-sdk/azure, and the endpoint is configured via baseURL.
I hope this is helpful.
Activity
github-actions commentedon Dec 9, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Dec 9, 2025
Our azure stuff need a pass for sure lemme see, there may be a simple fix on ur end you can do for time being
rekram1-node commentedon Dec 9, 2025
Okay there is an issue in the ai sdk, they have an open pr to fix once it has been addressed we can fix easily here too.
vercel/ai#10266
tsuzaki430 commentedon Dec 17, 2025
Hello, I’m the author of vercel/ai#10266.
I haven’t used opencode myself, but I have run the Anthropic Claude API in a Microsoft Foundry (Azure) environment using AI SDK.
An example of that setup can be found in vercel/ai#10400.
As you can see from the sample code at the URL below, it uses
@ai-sdk/anthropicrather than@ai-sdk/azure, and the endpoint is configured viabaseURL.I hope this is helpful.
https://github.com/vercel/ai/blob/main/examples/next-openai/agent/anthropic-microsoft-agent.ts
rekram1-node commentedon Dec 17, 2025
sweet ty
brianyang commentedon Dec 18, 2025
👓
bluet commentedon Jan 13, 2026
I'm having the same issue with OpenCode 1.1.16 , is that something we need to fix in opencode, or need to wait for vercel/ai ?
wzhliang commentedon Mar 6, 2026
is this working now with the latest everything?