Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion packages/web/src/content/docs/providers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,32 @@ Or if you already have an API key, you can select **Manually enter API Key** and
export AZURE_RESOURCE_NAME=XXX
```

6. Run the `/models` command to select your deployed model.
6. Optional: set different Azure Url styles:

```json title="opencode.json" {6}
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"azure": {
"options": {
"useDeploymentBasedUrls": "true",
"useCompletionUrls": "true"
}
}
}
}
```

- 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% |

7. Run the `/models` command to select your deployed model.

---

Expand Down
Loading