Skip to content

Conversation

enlilz
Copy link
Contributor

@enlilz enlilz commented Oct 13, 2025

provides an overview of the optional options to allow opencode to use different azure ai url styles

PR #2528
Issue #1508

@rekram1-node have a look if this is acceptable as an addition to the docs for the above described PR / Issue

provides an overview of the optional options to allow opencode to use different azure ai url styles
Comment on lines +243 to +250
- How this options will change the generated Azure url to be used in opencode

| useDeploymentBasedUrls | useCompletionUrls | Generated URL |
|------------------------|-------------------|-------------------------------------------------------------------------------|
| false | false | %baseURL%/v1/responses?api-version=%apiVersion% |
| true | false | %baseURL%/deployments/%Model%/responses?api-version=%apiVersion% |
| false | true | %baseURL%/v1/responses?api-version=%apiVersion% |
| true | true | %baseURL%/deployments/%Model%/chat/completions?api-version=%apiVersion% |
Copy link
Collaborator

@rekram1-node rekram1-node Oct 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think jay may have some opinions on the docs, but do you think we could tweak this a tad?

Correct me if you disagree:
I was thinking instead of just showing resolved url I wonder if it'd be good to add a note about what kinda deployment requires the need for this config setting?

So like:

if you have X deployment, you will need to set Y so opencode can hit correct endpoint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants