Skip to content

Commit 4ef9b23

Browse files
docs
1 parent 6408f6a commit 4ef9b23

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/docs/configuration/language-model-providers.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,23 @@ For a detailed description of all the providers, please refer to the [schema](ht
107107

108108
[Vercel AI SDK Azure OpenAI Docs](https://ai-sdk.dev/providers/ai-sdk-providers/azure)
109109

110+
The `model` field should be set to your Azure OpenAI deployment name. Either `resourceName` or `baseUrl` must be set. The `resourceName` is used to construct the URL `https://{resourceName}.openai.azure.com/openai/v1{path}`. If `baseUrl` is provided, `resourceName` is ignored.
111+
110112
```json wrap icon="code" Example config with Azure AI provider
111113
{
112114
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
113115
"models": [
114116
{
115117
"provider": "azure",
116-
"model": "YOUR_MODEL_HERE",
118+
"model": "YOUR_DEPLOYMENT_NAME",
117119
"displayName": "OPTIONAL_DISPLAY_NAME",
118120
"resourceName": "YOUR_RESOURCE_NAME", // defaults to the AZURE_RESOURCE_NAME env var if not set
119-
"apiVersion": "OPTIONAL_API_VERSION", // defaults to 'preview' if not set
121+
"apiVersion": "OPTIONAL_API_VERSION",
120122
"token": {
121123
"env": "AZURE_API_KEY"
122124
},
123-
"baseUrl": "OPTIONAL_BASE_URL"
125+
"baseUrl": "OPTIONAL_BASE_URL", // use instead of resourceName for custom endpoints
126+
"reasoningEffort": "OPTIONAL_REASONING_EFFORT" // defaults to "medium"
124127
}
125128
]
126129
}

0 commit comments

Comments
 (0)