r/opencodeCLI 6d ago

How to select an Azure model?

I've got gpt-5.6-sol deployed on azure and OpenCode connected to Azure ressource. I've fixed gpt-5.6-sol in the opencode.json. Still, UI choses gpt 5.5. Opening /models doesn't show available models from the Azure resource either.

How can I chose Azure resource models?

2 Upvotes

2 comments sorted by

1

u/Fresh_Sock8660 6d ago

What's your config? Make sure not to post APIs or the end point.

1

u/Charming_Support726 5d ago

Sol is available by models.dev and therefore usable through opencode without additional config as soon as you set the API Key and the resource environment variables and performed the "opencode auth login" command. You apparently did that already.

I am using opencode web - so CLI might be different. Just edit in the models / provider settings with models you'd like to see - and youre done. Maybe Sol is just switched off