Skip to content

Commit da8d49f

Browse files
committed
add additional model providers
1 parent f0fd44f commit da8d49f

File tree

18 files changed

+4131
-820
lines changed

18 files changed

+4131
-820
lines changed

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

Lines changed: 118 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ For a detailed description of all the providers, please refer to the [schema](ht
4545

4646
### Amazon Bedrock
4747

48-
[Vercel AI SDK Amazon Bedrock Docs](https://ai-sdk.dev/providers/ai-sdk-providers/amazon-bedrock)
48+
[Vercel AI SDK Amazon Bedrock Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/amazon-bedrock)
4949

5050
```json wrap icon="code" Example config with Amazon Bedrock provider
5151
{
@@ -70,7 +70,7 @@ For a detailed description of all the providers, please refer to the [schema](ht
7070

7171
### Anthropic
7272

73-
[Vercel AI SDK Anthropic Docs](https://ai-sdk.dev/providers/ai-sdk-providers/anthropic)
73+
[Vercel AI SDK Anthropic Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/anthropic)
7474

7575
```json wrap icon="code" Example config with Anthropic provider
7676
{
@@ -89,9 +89,53 @@ For a detailed description of all the providers, please refer to the [schema](ht
8989
}
9090
```
9191

92+
### Azure OpenAI
93+
94+
[Vercel AI SDK Azure OpenAI Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/azure)
95+
96+
```json wrap icon="code" Example config with Azure AI provider
97+
{
98+
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
99+
"models": [
100+
{
101+
"provider": "azure",
102+
"model": "YOUR_MODEL_HERE",
103+
"displayName": "OPTIONAL_DISPLAY_NAME",
104+
"resourceName": "YOUR_RESOURCE_NAME", // defaults to the AZURE_RESOURCE_NAME env var if not set
105+
"apiVersion": "OPTIONAL_API_VERSION", // defailts to 'preview' if not set
106+
"token": {
107+
"env": "AZURE_API_KEY"
108+
},
109+
"baseUrl": "OPTIONAL_BASE_URL"
110+
}
111+
]
112+
}
113+
```
114+
115+
### Deepseek
116+
117+
[Vercel AI SDK Deepseek Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/deepseek)
118+
119+
```json wrap icon="code" Example config with Deepseek provider
120+
{
121+
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
122+
"models": [
123+
{
124+
"provider": "deepseek",
125+
"model": "YOUR_MODEL_HERE",
126+
"displayName": "OPTIONAL_DISPLAY_NAME",
127+
"token": {
128+
"env": "DEEPSEEK_API_KEY"
129+
},
130+
"baseUrl": "OPTIONAL_BASE_URL"
131+
}
132+
]
133+
}
134+
```
135+
92136
### Google Generative AI
93137

94-
[Vercel AI SDK Google Generative AI Docs](https://ai-sdk.dev/providers/ai-sdk-providers/google-generative-ai)
138+
[Vercel AI SDK Google Generative AI Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/google-generative-ai)
95139

96140
```json wrap icon="code" Example config with Google Generative AI provider
97141
{
@@ -115,18 +159,18 @@ For a detailed description of all the providers, please refer to the [schema](ht
115159
<Note>If you're using an Anthropic model on Google Vertex, you must define a [Google Vertex Anthropic](#google-vertex-anthropic) provider instead</Note>
116160
<Note>The `credentials` paramater here expects a **path** to a [credentials](https://console.cloud.google.com/apis/credentials) file. This file **must be in a volume mounted by Sourcebot** for it to be readable.</Note>
117161

118-
[Vercel AI SDK Google Vertex AI Docs](https://ai-sdk.dev/providers/ai-sdk-providers/google-vertex)
162+
[Vercel AI SDK Google Vertex AI Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/google-vertex)
119163

120164
```json wrap icon="code" Example config with Google Vertex provider
121165
{
122166
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
123167
"models": [
124168
{
125169
"provider": "google-vertex",
126-
"model": "YOUR_MODEL_HERE", // e.g., "gemini-2.0-flash-exp", "gemini-1.5-pro", "gemini-1.5-flash"
170+
"model": "YOUR_MODEL_HERE",
127171
"displayName": "OPTIONAL_DISPLAY_NAME",
128172
"project": "YOUR_PROJECT_ID", // defaults to the GOOGLE_VERTEX_PROJECT env var if not set
129-
"region": "YOUR_REGION_HERE", // defaults to the GOOGLE_VERTEX_REGION env var if not set, e.g., "us-central1", "us-east1", "europe-west1"
173+
"region": "YOUR_REGION_HERE", // defaults to the GOOGLE_VERTEX_REGION env var if not set
130174
"credentials": {
131175
"env": "GOOGLE_APPLICATION_CREDENTIALS"
132176
},
@@ -141,18 +185,18 @@ For a detailed description of all the providers, please refer to the [schema](ht
141185
<Note>The `credentials` paramater here expects a **path** to a [credentials](https://console.cloud.google.com/apis/credentials) file. This file **must be in a volume mounted by Sourcebot** for it to be readable.</Note>
142186

143187

144-
[Vercel AI SDK Google Vertex Anthropic Docs](https://ai-sdk.dev/providers/ai-sdk-providers/google-vertex#google-vertex-anthropic-provider-usage)
188+
[Vercel AI SDK Google Vertex Anthropic Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/google-vertex#google-vertex-anthropic-provider-usage)
145189

146190
```json wrap icon="code" Example config with Google Vertex Anthropic provider
147191
{
148192
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
149193
"models": [
150194
{
151195
"provider": "google-vertex-anthropic",
152-
"model": "YOUR_MODEL_HERE", // e.g., "claude-sonnet-4"
196+
"model": "YOUR_MODEL_HERE",
153197
"displayName": "OPTIONAL_DISPLAY_NAME",
154198
"project": "YOUR_PROJECT_ID", // defaults to the GOOGLE_VERTEX_PROJECT env var if not set
155-
"region": "YOUR_REGION_HERE", // defaults to the GOOGLE_VERTEX_REGION env var if not set, e.g., "us-central1", "us-east1", "europe-west1"
199+
"region": "YOUR_REGION_HERE", // defaults to the GOOGLE_VERTEX_REGION env var if not set
156200
"credentials": {
157201
"env": "GOOGLE_APPLICATION_CREDENTIALS"
158202
},
@@ -162,17 +206,38 @@ For a detailed description of all the providers, please refer to the [schema](ht
162206
}
163207
```
164208

209+
### Mistral
210+
211+
[Vercel AI SDK Mistral Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/mistral)
212+
213+
```json wrap icon="code" Example config with Mistral provider
214+
{
215+
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
216+
"models": [
217+
{
218+
"provider": "mistral",
219+
"model": "YOUR_MODEL_HERE",
220+
"displayName": "OPTIONAL_DISPLAY_NAME",
221+
"token": {
222+
"env": "MISTRAL_API_KEY"
223+
},
224+
"baseUrl": "OPTIONAL_BASE_URL"
225+
}
226+
]
227+
}
228+
```
229+
165230
### OpenAI
166231

167-
[Vercel AI SDK OpenAI Docs](https://ai-sdk.dev/providers/ai-sdk-providers/openai)
232+
[Vercel AI SDK OpenAI Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/openai)
168233

169234
```json wrap icon="code" Example config with OpenAI provider
170235
{
171236
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
172237
"models": [
173238
{
174239
"provider": "openai",
175-
"model": "YOUR_MODEL_HERE", // e.g., "gpt-4.1", "o4-mini", "o3", "o3-deep-research"
240+
"model": "YOUR_MODEL_HERE",
176241
"displayName": "OPTIONAL_DISPLAY_NAME",
177242
"token": {
178243
"env": "OPENAI_API_KEY"
@@ -181,4 +246,46 @@ For a detailed description of all the providers, please refer to the [schema](ht
181246
}
182247
]
183248
}
249+
```
250+
251+
### OpenRouter
252+
253+
[Vercel AI SDK OpenRouter Docs](https://v5.ai-sdk.dev/providers/community-providers/openrouter)
254+
255+
```json wrap icon="code" Example config with OpenRouter provider
256+
{
257+
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
258+
"models": [
259+
{
260+
"provider": "openai",
261+
"model": "YOUR_MODEL_HERE",
262+
"displayName": "OPTIONAL_DISPLAY_NAME",
263+
"token": {
264+
"env": "OPENROUTER_API_KEY"
265+
},
266+
"baseUrl": "OPTIONAL_BASE_URL"
267+
}
268+
]
269+
}
270+
```
271+
272+
### xAI
273+
274+
[Vercel AI SDK xAI Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/xai)
275+
276+
```json wrap icon="code" Example config with xAI provider
277+
{
278+
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
279+
"models": [
280+
{
281+
"provider": "xai",
282+
"model": "YOUR_MODEL_HERE",
283+
"displayName": "OPTIONAL_DISPLAY_NAME",
284+
"token": {
285+
"env": "XAI_API_KEY"
286+
},
287+
"baseUrl": "OPTIONAL_BASE_URL"
288+
}
289+
]
290+
}
184291
```

0 commit comments

Comments
 (0)