Skip to content

Commit a5741d1

Browse files
author
blake
committed
Merge remote-tracking branch 'upstream/main' into fix/sort-refs-before-cap
# Conflicts: # CHANGELOG.md
2 parents 4fc2710 + 0dbc7f1 commit a5741d1

7 files changed

Lines changed: 152 additions & 124 deletions

File tree

CHANGELOG.md

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

1212
- Fixed revision selection so the 64-revision cap prefers the newest matching branches and tags instead of pruning by ref-name order. [#1122](https://github.com/sourcebot-dev/sourcebot/pull/1122)
1313

14+
## [4.16.10] - 2026-04-16
15+
16+
### Changed
17+
- Bumped AI SDK and associated packages version. [#1126](https://github.com/sourcebot-dev/sourcebot/pull/1126)
18+
19+
### Fixed
20+
- Fixed issue where claude-opus-4-7 was returning "error occurred "thinking.type.enabled" is not supported for this model". [#1123](https://github.com/sourcebot-dev/sourcebot/issues/1123)
21+
1422
## [4.16.9] - 2026-04-15
1523

1624
### Added

docs/api-reference/sourcebot-public.openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"openapi": "3.0.3",
33
"info": {
44
"title": "Sourcebot Public API",
5-
"version": "v4.16.9",
5+
"version": "v4.16.10",
66
"description": "OpenAPI description for the public Sourcebot REST endpoints used for search, repository listing, and file browsing. Authentication is instance-dependent: API keys are the standard integration mechanism, OAuth bearer tokens are EE-only, and some instances may allow anonymous access."
77
},
88
"tags": [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"brace-expansion@npm:^5.0.2": "^5.0.5",
5050
"brace-expansion@npm:^1.1.7": "^1.1.13",
5151
"@react-email/preview-server/next": "^16.2.3",
52-
"@modelcontextprotocol/sdk/hono": "^4.12.12",
52+
"@modelcontextprotocol/sdk/hono": "^4.12.14",
5353
"@modelcontextprotocol/sdk/@hono/node-server": "^1.19.13",
5454
"langsmith@npm:>=0.5.0 <1.0.0": "^0.5.19",
5555
"markdown-it@npm:^14.1.0": "^14.1.1",

packages/shared/src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// This file is auto-generated by .github/workflows/release-sourcebot.yml
2-
export const SOURCEBOT_VERSION = "v4.16.9";
2+
export const SOURCEBOT_VERSION = "v4.16.10";

packages/web/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
"tool:decrypt-jwe": "tsx tools/decryptJWE.ts"
1515
},
1616
"dependencies": {
17-
"@ai-sdk/amazon-bedrock": "^4.0.69",
18-
"@ai-sdk/anthropic": "^3.0.50",
19-
"@ai-sdk/azure": "^3.0.38",
20-
"@ai-sdk/deepseek": "^2.0.21",
21-
"@ai-sdk/google": "^3.0.34",
22-
"@ai-sdk/google-vertex": "^4.0.68",
23-
"@ai-sdk/mistral": "^3.0.21",
24-
"@ai-sdk/openai": "^3.0.37",
25-
"@ai-sdk/openai-compatible": "^2.0.31",
26-
"@ai-sdk/react": "^3.0.107",
27-
"@ai-sdk/xai": "^3.0.60",
17+
"@ai-sdk/amazon-bedrock": "^4.0.94",
18+
"@ai-sdk/anthropic": "^3.0.70",
19+
"@ai-sdk/azure": "^3.0.54",
20+
"@ai-sdk/deepseek": "^2.0.29",
21+
"@ai-sdk/google": "^3.0.64",
22+
"@ai-sdk/google-vertex": "^4.0.111",
23+
"@ai-sdk/mistral": "^3.0.30",
24+
"@ai-sdk/openai": "^3.0.53",
25+
"@ai-sdk/openai-compatible": "^2.0.41",
26+
"@ai-sdk/react": "^3.0.169",
27+
"@ai-sdk/xai": "^3.0.83",
2828
"@auth/prisma-adapter": "^2.11.1",
2929
"@aws-sdk/credential-providers": "^3.1023.0",
3030
"@codemirror/commands": "^6.6.0",
@@ -95,7 +95,7 @@
9595
"@replit/codemirror-vim": "^6.2.1",
9696
"@sentry/nextjs": "^10.40.0",
9797
"@shopify/lang-jsonc": "^1.0.0",
98-
"@sourcebot/codemirror-lang-tcl": "^1.0.12",
98+
"@sourcebot/codemirror-lang-tcl": "^1.0.13",
9999
"@sourcebot/db": "workspace:*",
100100
"@sourcebot/query-language": "workspace:*",
101101
"@sourcebot/schemas": "workspace:*",
@@ -111,7 +111,7 @@
111111
"@vercel/otel": "^1.13.0",
112112
"@viz-js/lang-dot": "^1.0.4",
113113
"@xiechao/codemirror-lang-handlebars": "^1.0.4",
114-
"ai": "^6.0.105",
114+
"ai": "^6.0.167",
115115
"ajv": "^8.17.1",
116116
"bcryptjs": "^3.0.2",
117117
"class-variance-authority": "^0.7.0",

packages/web/src/features/chat/utils.server.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,17 @@ export const getAISDKLanguageModelAndOptions = async (config: LanguageModel): Pr
210210
: undefined,
211211
});
212212

213+
const isAdaptiveThinkingSupported =
214+
modelId.startsWith('claude-opus-4-7');
215+
213216
return {
214217
model: anthropic(modelId),
215218
providerOptions: {
216219
anthropic: {
217-
thinking: {
220+
thinking: isAdaptiveThinkingSupported ? {
221+
type: "adaptive",
222+
display: "summarized"
223+
} : {
218224
type: "enabled",
219225
budgetTokens: env.ANTHROPIC_THINKING_BUDGET_TOKENS,
220226
}

0 commit comments

Comments
 (0)