Skip to content

Commit 25311e8

Browse files
authored
Merge branch 'main' into feature/gerrit-authentication
2 parents e54c4e6 + a3d9711 commit 25311e8

33 files changed

+1162
-196
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
- Added multi-branch indexing support for Gerrit. [#433](https://github.com/sourcebot-dev/sourcebot/pull/433)
12+
13+
## [4.6.3] - 2025-08-04
14+
15+
### Fixed
16+
- Fixed issue where `users` specified in a GitHub config were not getting picked up when a `token` is also specified. [#428](https://github.com/sourcebot-dev/sourcebot/pull/428)
17+
18+
### Added
19+
- [ask sb] Added OpenAI Compatible Language Provider. [#424](https://github.com/sourcebot-dev/sourcebot/pull/424)
20+
21+
## [4.6.2] - 2025-07-31
22+
23+
### Changed
24+
- Bumped AI SDK and associated packages version. [#417](https://github.com/sourcebot-dev/sourcebot/pull/417)
25+
26+
### Fixed
27+
- [ask sb] Fixed "413 content too large" error when starting a new chat with many repos selected. [#416](https://github.com/sourcebot-dev/sourcebot/pull/416)
28+
29+
### Added
30+
- [ask sb] PostHog telemetry for chat thread creation. [#418](https://github.com/sourcebot-dev/sourcebot/pull/418)
31+
1032
## [4.6.1] - 2025-07-29
1133

1234
### Added

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

Lines changed: 55 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ title: Language Model Providers
33
sidebarTitle: Language model providers
44
---
55

6+
import LanguageModelSchema from '/snippets/schemas/v3/languageModel.schema.mdx'
7+
8+
<Note>
9+
Looking to self-host your own model? Check out the [OpenAI Compatible](#openai-compatible) provider.
10+
</Note>
11+
612
To use [Ask Sourcebot](/docs/features/ask) you must define at least one Language Model Provider. These providers are defined within the [config file](/docs/configuration/config-file) you
713
provide Sourcebot.
814

@@ -45,7 +51,7 @@ For a detailed description of all the providers, please refer to the [schema](ht
4551

4652
### Amazon Bedrock
4753

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

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

7177
### Anthropic
7278

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

7581
```json wrap icon="code" Example config with Anthropic provider
7682
{
@@ -91,7 +97,7 @@ For a detailed description of all the providers, please refer to the [schema](ht
9197

9298
### Azure OpenAI
9399

94-
[Vercel AI SDK Azure OpenAI Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/azure)
100+
[Vercel AI SDK Azure OpenAI Docs](https://ai-sdk.dev/providers/ai-sdk-providers/azure)
95101

96102
```json wrap icon="code" Example config with Azure AI provider
97103
{
@@ -114,7 +120,7 @@ For a detailed description of all the providers, please refer to the [schema](ht
114120

115121
### Deepseek
116122

117-
[Vercel AI SDK Deepseek Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/deepseek)
123+
[Vercel AI SDK Deepseek Docs](https://ai-sdk.dev/providers/ai-sdk-providers/deepseek)
118124

119125
```json wrap icon="code" Example config with Deepseek provider
120126
{
@@ -135,7 +141,7 @@ For a detailed description of all the providers, please refer to the [schema](ht
135141

136142
### Google Generative AI
137143

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

140146
```json wrap icon="code" Example config with Google Generative AI provider
141147
{
@@ -159,7 +165,7 @@ For a detailed description of all the providers, please refer to the [schema](ht
159165
<Note>If you're using an Anthropic model on Google Vertex, you must define a [Google Vertex Anthropic](#google-vertex-anthropic) provider instead</Note>
160166
<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>
161167

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

164170
```json wrap icon="code" Example config with Google Vertex provider
165171
{
@@ -185,7 +191,7 @@ For a detailed description of all the providers, please refer to the [schema](ht
185191
<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>
186192

187193

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

190196
```json wrap icon="code" Example config with Google Vertex Anthropic provider
191197
{
@@ -208,7 +214,7 @@ For a detailed description of all the providers, please refer to the [schema](ht
208214

209215
### Mistral
210216

211-
[Vercel AI SDK Mistral Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/mistral)
217+
[Vercel AI SDK Mistral Docs](https://ai-sdk.dev/providers/ai-sdk-providers/mistral)
212218

213219
```json wrap icon="code" Example config with Mistral provider
214220
{
@@ -229,7 +235,7 @@ For a detailed description of all the providers, please refer to the [schema](ht
229235

230236
### OpenAI
231237

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

234240
```json wrap icon="code" Example config with OpenAI provider
235241
{
@@ -248,9 +254,36 @@ For a detailed description of all the providers, please refer to the [schema](ht
248254
}
249255
```
250256

257+
### OpenAI Compatible
258+
259+
[Vercel AI SDK OpenAI Compatible Docs](https://ai-sdk.dev/providers/openai-compatible-providers)
260+
261+
The OpenAI compatible provider allows you to use any model that is compatible with the OpenAI [Chat Completions API](https://github.com/ollama/ollama/blob/main/docs/openai.md). This includes self-hosted tools like [Ollama](https://ollama.ai/) and [llama.cpp](https://github.com/ggerganov/llama.cpp).
262+
263+
```json wrap icon="code" Example config with OpenAI Compatible provider
264+
{
265+
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
266+
"models": [
267+
{
268+
"provider": "openai-compatible",
269+
"baseUrl": "BASE_URL_HERE",
270+
"model": "YOUR_MODEL_HERE",
271+
"displayName": "OPTIONAL_DISPLAY_NAME",
272+
"token": {
273+
"env": "OPTIONAL_API_KEY"
274+
}
275+
}
276+
]
277+
}
278+
```
279+
280+
<Accordion title="Troubleshooting">
281+
- When using [llama.cpp](https://github.com/ggml-org/llama.cpp), if you hit "Failed after 3 attempts. Last error: tools param requires --jinja flag", add the `--jinja` flag to your `llama-server` command.
282+
</Accordion>
283+
251284
### OpenRouter
252285

253-
[Vercel AI SDK OpenRouter Docs](https://v5.ai-sdk.dev/providers/community-providers/openrouter)
286+
[Vercel AI SDK OpenRouter Docs](https://ai-sdk.dev/providers/community-providers/openrouter)
254287

255288
```json wrap icon="code" Example config with OpenRouter provider
256289
{
@@ -271,7 +304,7 @@ For a detailed description of all the providers, please refer to the [schema](ht
271304

272305
### xAI
273306

274-
[Vercel AI SDK xAI Docs](https://v5.ai-sdk.dev/providers/ai-sdk-providers/xai)
307+
[Vercel AI SDK xAI Docs](https://ai-sdk.dev/providers/ai-sdk-providers/xai)
275308

276309
```json wrap icon="code" Example config with xAI provider
277310
{
@@ -288,4 +321,14 @@ For a detailed description of all the providers, please refer to the [schema](ht
288321
}
289322
]
290323
}
291-
```
324+
```
325+
326+
327+
## Schema reference
328+
329+
<Accordion title="Reference">
330+
[schemas/v3/languageModel.json](https://github.com/sourcebot-dev/sourcebot/blob/main/schemas/v3/languageModel.json)
331+
332+
<LanguageModelSchema />
333+
334+
</Accordion>

docs/docs/deployment-guide.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The following guide will walk you through the steps to deploy Sourcebot on your
7979
<Card title="Index your code" icon="code" href="/docs/connections/overview">
8080
Learn how to index your code using Sourcebot
8181
</Card>
82-
<Card title="Language models" icon="brain" href="/docs/connections/overview">
82+
<Card title="Language models" icon="brain" href="/docs/configuration/language-model-providers">
8383
Learn how to configure language model providers to start using [Ask Sourcebot](/docs/features/ask/overview)
8484
</Card>
8585
<Card title="Authentication" icon="lock" href="/docs/configuration/auth/overview">

docs/docs/features/search/multi-branch-indexing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ Additional info:
8989
| Bitbucket Cloud ||
9090
| Bitbucket Data Center ||
9191
| Gitea ||
92-
| Gerrit | |
92+
| Gerrit | |
9393
| Generic git host ||
9494

docs/snippets/schemas/v3/connection.schema.mdx

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,47 @@
703703
}
704704
},
705705
"additionalProperties": false
706+
},
707+
"revisions": {
708+
"type": "object",
709+
"description": "The revisions (branches, tags) that should be included when indexing. The default branch (HEAD) is always indexed. A maximum of 64 revisions can be indexed, with any additional revisions being ignored.",
710+
"properties": {
711+
"branches": {
712+
"type": "array",
713+
"description": "List of branches to include when indexing. For a given repo, only the branches that exist on the repo's remote *and* match at least one of the provided `branches` will be indexed. The default branch (HEAD) is always indexed. Glob patterns are supported. A maximum of 64 branches can be indexed, with any additional branches being ignored.",
714+
"items": {
715+
"type": "string"
716+
},
717+
"examples": [
718+
[
719+
"main",
720+
"release/*"
721+
],
722+
[
723+
"**"
724+
]
725+
],
726+
"default": []
727+
},
728+
"tags": {
729+
"type": "array",
730+
"description": "List of tags to include when indexing. For a given repo, only the tags that exist on the repo's remote *and* match at least one of the provided `tags` will be indexed. Glob patterns are supported. A maximum of 64 tags can be indexed, with any additional tags being ignored.",
731+
"items": {
732+
"type": "string"
733+
},
734+
"examples": [
735+
[
736+
"latest",
737+
"v2.*.*"
738+
],
739+
[
740+
"**"
741+
]
742+
],
743+
"default": []
744+
}
745+
},
746+
"additionalProperties": false
706747
}
707748
},
708749
"required": [

docs/snippets/schemas/v3/gerrit.schema.mdx

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,47 @@
118118
}
119119
},
120120
"additionalProperties": false
121+
},
122+
"revisions": {
123+
"type": "object",
124+
"description": "The revisions (branches, tags) that should be included when indexing. The default branch (HEAD) is always indexed. A maximum of 64 revisions can be indexed, with any additional revisions being ignored.",
125+
"properties": {
126+
"branches": {
127+
"type": "array",
128+
"description": "List of branches to include when indexing. For a given repo, only the branches that exist on the repo's remote *and* match at least one of the provided `branches` will be indexed. The default branch (HEAD) is always indexed. Glob patterns are supported. A maximum of 64 branches can be indexed, with any additional branches being ignored.",
129+
"items": {
130+
"type": "string"
131+
},
132+
"examples": [
133+
[
134+
"main",
135+
"release/*"
136+
],
137+
[
138+
"**"
139+
]
140+
],
141+
"default": []
142+
},
143+
"tags": {
144+
"type": "array",
145+
"description": "List of tags to include when indexing. For a given repo, only the tags that exist on the repo's remote *and* match at least one of the provided `tags` will be indexed. Glob patterns are supported. A maximum of 64 tags can be indexed, with any additional tags being ignored.",
146+
"items": {
147+
"type": "string"
148+
},
149+
"examples": [
150+
[
151+
"latest",
152+
"v2.*.*"
153+
],
154+
[
155+
"**"
156+
]
157+
],
158+
"default": []
159+
}
160+
},
161+
"additionalProperties": false
121162
}
122163
},
123164
"required": [

0 commit comments

Comments
 (0)