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
Sorry I really what to try opencode but it is not clear from docs how to make it work with azure. how do i pass resource name, api version and api key? I assume i can do it through env vars that vercel ai sdk respect but i want to do it through config.
I mainly use it to specify the resourceName option - otherwise, I'd need to export the AZURE_RESOURCE_NAME environment variable, which I'd prefer not to do.
What I’m still unclear on is how to specify which deployment to use. I may have multiple deployments of the same model within a single resource, so I’m not sure how the tool determines which one to use by default, or how to override that if needed.
if you get schema issues you likely have an mcp server that your model of choice doesnt like the format of the tools < we may wanna sanitize params for you tho
Activity
thdxr commentedon Jun 24, 2025
if you want to do it through config you can add an
optionsfieldda1z commentedon Jun 24, 2025
now i get this. i think it is related to striced openai schema, that does not allow optional params?
andrii-k6a commentedon Jul 2, 2025
I got it working by doing the following:
Run the
opencode auth logincommand and paste in your Azure API key.Add the following configuration to
~/.config/opencode/config.json:thdxr commentedon Jul 3, 2025
do you need the config?
andrii-k6a commentedon Jul 4, 2025
I mainly use it to specify the resourceName option - otherwise, I'd need to export the
AZURE_RESOURCE_NAMEenvironment variable, which I'd prefer not to do.What I’m still unclear on is how to specify which deployment to use. I may have multiple deployments of the same model within a single resource, so I’m not sure how the tool determines which one to use by default, or how to override that if needed.
rekram1-node commentedon Aug 29, 2025
we have better docs for azure now: https://opencode.ai/docs/providers/#azure-openai
if you get schema issues you likely have an mcp server that your model of choice doesnt like the format of the tools < we may wanna sanitize params for you tho
feat: change toxikat toolOutput color to anomalyco#360
feat: externalize owpenbot integration (anomalyco#360)
sunqb commentedon Jun 4, 2026
this is good for me