@lobehub/chat 1.94.1 → 1.94.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,48 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.94.3](https://github.com/lobehub/lobe-chat/compare/v1.94.2...v1.94.3)
6
+
7
+ <sup>Released on **2025-06-11**</sup>
8
+
9
+ <br/>
10
+
11
+ <details>
12
+ <summary><kbd>Improvements and Fixes</kbd></summary>
13
+
14
+ </details>
15
+
16
+ <div align="right">
17
+
18
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
19
+
20
+ </div>
21
+
22
+ ### [Version 1.94.2](https://github.com/lobehub/lobe-chat/compare/v1.94.1...v1.94.2)
23
+
24
+ <sup>Released on **2025-06-11**</sup>
25
+
26
+ #### 🐛 Bug Fixes
27
+
28
+ - **misc**: Update Gemini range of thinkingBudget.
29
+
30
+ <br/>
31
+
32
+ <details>
33
+ <summary><kbd>Improvements and Fixes</kbd></summary>
34
+
35
+ #### What's fixed
36
+
37
+ - **misc**: Update Gemini range of thinkingBudget, closes [#8122](https://github.com/lobehub/lobe-chat/issues/8122) ([7331e8a](https://github.com/lobehub/lobe-chat/commit/7331e8a))
38
+
39
+ </details>
40
+
41
+ <div align="right">
42
+
43
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
44
+
45
+ </div>
46
+
5
47
  ### [Version 1.94.1](https://github.com/lobehub/lobe-chat/compare/v1.94.0...v1.94.1)
6
48
 
7
49
  <sup>Released on **2025-06-10**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,18 @@
1
1
  [
2
+ {
3
+ "children": {},
4
+ "date": "2025-06-11",
5
+ "version": "1.94.3"
6
+ },
7
+ {
8
+ "children": {
9
+ "fixes": [
10
+ "Update Gemini range of thinkingBudget."
11
+ ]
12
+ },
13
+ "date": "2025-06-11",
14
+ "version": "1.94.2"
15
+ },
2
16
  {
3
17
  "children": {
4
18
  "improvements": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.94.1",
3
+ "version": "1.94.3",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -346,7 +346,7 @@
346
346
  "semantic-release": "^21.1.2",
347
347
  "serwist": "^9.0.14",
348
348
  "stylelint": "^15.11.0",
349
- "tsx": "^4.19.4",
349
+ "tsx": "~4.19.4",
350
350
  "typescript": "^5.8.3",
351
351
  "unified": "^11.0.5",
352
352
  "unist-util-visit": "^5.0.0",
@@ -123,9 +123,17 @@ export class LobeGoogleAI implements LobeRuntimeAI {
123
123
  : undefined,
124
124
  thinkingBudget:
125
125
  thinking?.type === 'enabled'
126
- ? Math.min(thinking.budget_tokens, 24_576)
126
+ ? (() => {
127
+ const budget = thinking.budget_tokens;
128
+ if (model.includes('-2.5-flash')) {
129
+ return Math.min(budget, 24_576);
130
+ } else if (model.includes('-2.5-pro')) {
131
+ return Math.max(128, Math.min(budget, 32_768));
132
+ }
133
+ return Math.min(budget, 24_576);
134
+ })()
127
135
  : thinking?.type === 'disabled'
128
- ? 0
136
+ ? model.includes('-2.5-pro') ? 128 : 0
129
137
  : undefined,
130
138
  };
131
139