@lobehub/chat 1.96.14 → 1.96.15

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,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.96.15](https://github.com/lobehub/lobe-chat/compare/v1.96.14...v1.96.15)
6
+
7
+ <sup>Released on **2025-07-02**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Wrong Gemini 2.5 Pro thinkbudget.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Wrong Gemini 2.5 Pro thinkbudget, closes [#8296](https://github.com/lobehub/lobe-chat/issues/8296) ([18920c5](https://github.com/lobehub/lobe-chat/commit/18920c5))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ### [Version 1.96.14](https://github.com/lobehub/lobe-chat/compare/v1.96.13...v1.96.14)
6
31
 
7
32
  <sup>Released on **2025-07-01**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Wrong Gemini 2.5 Pro thinkbudget."
6
+ ]
7
+ },
8
+ "date": "2025-07-02",
9
+ "version": "1.96.15"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "improvements": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.96.14",
3
+ "version": "1.96.15",
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",
@@ -2,6 +2,64 @@ import { AIChatModelCard } from '@/types/aiModel';
2
2
 
3
3
  // https://novita.ai/pricing
4
4
  const novitaChatModels: AIChatModelCard[] = [
5
+ {
6
+ contextWindowTokens: 120_000,
7
+ displayName: 'ERNIE 4.5 0.3B',
8
+ id: 'baidu/ernie-4.5-0.3b',
9
+ pricing: {
10
+ input: 0,
11
+ output: 0,
12
+ },
13
+ type: 'chat',
14
+ },
15
+ {
16
+ contextWindowTokens: 120_000,
17
+ displayName: 'ERNIE 4.5 21B A3B',
18
+ id: 'baidu/ernie-4.5-21B-a3b',
19
+ pricing: {
20
+ input: 0,
21
+ output: 0,
22
+ },
23
+ type: 'chat',
24
+ },
25
+ {
26
+ contextWindowTokens: 123_000,
27
+ displayName: 'ERNIE 4.5 300B A47B Paddle',
28
+ id: 'baidu/ernie-4.5-300b-a47b-paddle',
29
+ pricing: {
30
+ input: 0.3,
31
+ output: 1,
32
+ },
33
+ type: 'chat',
34
+ },
35
+ {
36
+ abilities: {
37
+ reasoning: true,
38
+ vision: true,
39
+ },
40
+ contextWindowTokens: 30_000,
41
+ displayName: 'ERNIE 4.5 VL 28B A3B',
42
+ id: 'baidu/ernie-4.5-vl-28b-a3b',
43
+ pricing: {
44
+ input: 0,
45
+ output: 0,
46
+ },
47
+ type: 'chat',
48
+ },
49
+ {
50
+ abilities: {
51
+ reasoning: true,
52
+ vision: true,
53
+ },
54
+ contextWindowTokens: 123_000,
55
+ displayName: 'ERNIE 4.5 VL 424B A47B',
56
+ id: 'baidu/ernie-4.5-vl-424b-a47b',
57
+ pricing: {
58
+ input: 0.42,
59
+ output: 1.25,
60
+ },
61
+ type: 'chat',
62
+ },
5
63
  {
6
64
  abilities: {
7
65
  reasoning: true,
@@ -255,7 +313,7 @@ const novitaChatModels: AIChatModelCard[] = [
255
313
  abilities: {
256
314
  functionCall: true,
257
315
  },
258
- contextWindowTokens: 128_000,
316
+ contextWindowTokens: 163_840,
259
317
  displayName: 'Deepseek V3 0324',
260
318
  enabled: true,
261
319
  id: 'deepseek/deepseek-v3-0324',
@@ -270,7 +328,7 @@ const novitaChatModels: AIChatModelCard[] = [
270
328
  functionCall: true,
271
329
  reasoning: true,
272
330
  },
273
- contextWindowTokens: 128_000,
331
+ contextWindowTokens: 163_840,
274
332
  displayName: 'Deepseek R1 0528',
275
333
  enabled: true,
276
334
  id: 'deepseek/deepseek-r1-0528',
@@ -2,6 +2,40 @@ import { AIChatModelCard } from '@/types/aiModel';
2
2
 
3
3
  // https://siliconflow.cn/zh-cn/models
4
4
  const siliconcloudChatModels: AIChatModelCard[] = [
5
+ {
6
+ abilities: {
7
+ reasoning: true,
8
+ },
9
+ contextWindowTokens: 131_072,
10
+ description:
11
+ 'Kimi-Dev-72B 是一款开源代码大模型,经过大规模强化学习优化,能输出稳健、可直接投产的补丁。该模型在 SWE-bench Verified 上取得 60.4 % 的新高分,刷新了开源模型在缺陷修复、代码评审等自动化软件工程任务上的纪录。',
12
+ displayName: 'Kimi Dev 72B',
13
+ id: 'moonshotai/Kimi-Dev-72B',
14
+ pricing: {
15
+ currency: 'CNY',
16
+ input: 2,
17
+ output: 8,
18
+ },
19
+ releasedAt: '2025-06-17',
20
+ type: 'chat',
21
+ },
22
+ {
23
+ abilities: {
24
+ reasoning: true,
25
+ },
26
+ contextWindowTokens: 131_072,
27
+ description:
28
+ 'Hunyuan-A13B-Instruct 参数量800 亿,激活 130 亿参数即可对标更大模型,支持“快思考/慢思考”混合推理;长文理解稳定;经 BFCL-v3 与 τ-Bench 验证,Agent 能力领先;结合 GQA 与多量化格式,实现高效推理。',
29
+ displayName: 'Hunyuan A13B Instruct',
30
+ id: 'tencent/Hunyuan-A13B-Instruct',
31
+ pricing: {
32
+ currency: 'CNY',
33
+ input: 1,
34
+ output: 4,
35
+ },
36
+ releasedAt: '2025-06-27',
37
+ type: 'chat',
38
+ },
5
39
  {
6
40
  abilities: {
7
41
  reasoning: true,
@@ -134,7 +134,7 @@ export class LobeGoogleAI implements LobeRuntimeAI {
134
134
  } else if (model.includes('-2.5-flash')) {
135
135
  return Math.min(thinkingBudget, 24_576);
136
136
  } else if (model.includes('-2.5-pro')) {
137
- return Math.max(128, Math.min(thinkingBudget, 32_768));
137
+ return thinkingBudget === -1 ? -1 : Math.max(128, Math.min(thinkingBudget, 32_768));
138
138
  }
139
139
  return Math.min(thinkingBudget, 24_576);
140
140
  }