@lobehub/chat 1.106.6 → 1.106.8

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,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.106.8](https://github.com/lobehub/lobe-chat/compare/v1.106.7...v1.106.8)
6
+
7
+ <sup>Released on **2025-07-31**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Support SenseNova V6.5 models.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Support SenseNova V6.5 models, closes [#8569](https://github.com/lobehub/lobe-chat/issues/8569) ([411ed7e](https://github.com/lobehub/lobe-chat/commit/411ed7e))
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
+
30
+ ### [Version 1.106.7](https://github.com/lobehub/lobe-chat/compare/v1.106.6...v1.106.7)
31
+
32
+ <sup>Released on **2025-07-31**</sup>
33
+
34
+ #### 💄 Styles
35
+
36
+ - **misc**: Update Aliyun Bailian models.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### Styles
44
+
45
+ - **misc**: Update Aliyun Bailian models, closes [#8612](https://github.com/lobehub/lobe-chat/issues/8612) ([433e679](https://github.com/lobehub/lobe-chat/commit/433e679))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ### [Version 1.106.6](https://github.com/lobehub/lobe-chat/compare/v1.106.5...v1.106.6)
6
56
 
7
57
  <sup>Released on **2025-07-31**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Support SenseNova V6.5 models."
6
+ ]
7
+ },
8
+ "date": "2025-07-31",
9
+ "version": "1.106.8"
10
+ },
11
+ {
12
+ "children": {
13
+ "improvements": [
14
+ "Update Aliyun Bailian models."
15
+ ]
16
+ },
17
+ "date": "2025-07-31",
18
+ "version": "1.106.7"
19
+ },
2
20
  {
3
21
  "children": {
4
22
  "fixes": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.106.6",
3
+ "version": "1.106.8",
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",
@@ -5,7 +5,7 @@ import { AIChatModelCard, AIImageModelCard } from '@/types/aiModel';
5
5
  const qwenChatModels: AIChatModelCard[] = [
6
6
  {
7
7
  abilities: {
8
- functionCall: true,
8
+ search: true,
9
9
  },
10
10
  contextWindowTokens: 131_072,
11
11
  description:
@@ -21,6 +21,9 @@ const qwenChatModels: AIChatModelCard[] = [
21
21
  output: 16,
22
22
  },
23
23
  releasedAt: '2025-07-17',
24
+ settings: {
25
+ searchImpl: 'params',
26
+ },
24
27
  type: 'chat',
25
28
  },
26
29
  {
@@ -45,6 +48,23 @@ const qwenChatModels: AIChatModelCard[] = [
45
48
  releasedAt: '2025-07-23',
46
49
  type: 'chat',
47
50
  },
51
+ {
52
+ abilities: {
53
+ functionCall: true,
54
+ },
55
+ contextWindowTokens: 262_144,
56
+ description: '通义千问代码模型开源版。最新的 qwen3-coder-480b-a35b-instruct 是基于 Qwen3 的代码生成模型,具有强大的Coding Agent能力,擅长工具调用和环境交互,能够实现自主编程、代码能力卓越的同时兼具通用能力。',
57
+ displayName: 'Qwen3 Coder 480B A35B',
58
+ id: 'qwen3-coder-480b-a35b-instruct',
59
+ maxOutput: 65_536,
60
+ organization: 'Qwen',
61
+ pricing: {
62
+ currency: 'CNY',
63
+ input: 9, // tokens 32K ~ 128K
64
+ output: 36,
65
+ },
66
+ type: 'chat',
67
+ },
48
68
  {
49
69
  abilities: {
50
70
  functionCall: true,
@@ -64,6 +84,9 @@ const qwenChatModels: AIChatModelCard[] = [
64
84
  output: 20,
65
85
  },
66
86
  releasedAt: '2025-07-25',
87
+ settings: {
88
+ extendParams: ['reasoningBudgetToken'],
89
+ },
67
90
  type: 'chat',
68
91
  },
69
92
  {
@@ -86,6 +109,50 @@ const qwenChatModels: AIChatModelCard[] = [
86
109
  releasedAt: '2025-07-22',
87
110
  type: 'chat',
88
111
  },
112
+ {
113
+ abilities: {
114
+ functionCall: true,
115
+ reasoning: true,
116
+ },
117
+ contextWindowTokens: 131_072,
118
+ description:
119
+ '基于Qwen3的思考模式开源模型,相较上一版本(通义千问3-30B-A3B)逻辑能力、通用能力、知识增强及创作能力均有大幅提升,适用于高难度强推理场景。',
120
+ displayName: 'Qwen3 30B A3B Thinking 2507',
121
+ enabled: true,
122
+ id: 'qwen3-30b-a3b-thinking-2507',
123
+ maxOutput: 32_768,
124
+ organization: 'Qwen',
125
+ pricing: {
126
+ currency: 'CNY',
127
+ input: 0.75,
128
+ output: 7.5,
129
+ },
130
+ releasedAt: '2025-07-30',
131
+ settings: {
132
+ extendParams: ['reasoningBudgetToken'],
133
+ },
134
+ type: 'chat',
135
+ },
136
+ {
137
+ abilities: {
138
+ functionCall: true,
139
+ },
140
+ contextWindowTokens: 131_072,
141
+ description:
142
+ '相较上一版本(Qwen3-30B-A3B)中英文和多语言整体通用能力有大幅提升。主观开放类任务专项优化,显著更加符合用户偏好,能够提供更有帮助性的回复。',
143
+ displayName: 'Qwen3 30B A3B Instruct 2507',
144
+ enabled: true,
145
+ id: 'qwen3-30b-a3b-instruct-2507',
146
+ maxOutput: 32_768,
147
+ organization: 'Qwen',
148
+ pricing: {
149
+ currency: 'CNY',
150
+ input: 0.75,
151
+ output: 3,
152
+ },
153
+ releasedAt: '2025-07-29',
154
+ type: 'chat',
155
+ },
89
156
  {
90
157
  abilities: {
91
158
  functionCall: true,
@@ -797,20 +864,6 @@ const qwenChatModels: AIChatModelCard[] = [
797
864
  releasedAt: '2025-07-23',
798
865
  type: 'chat',
799
866
  },
800
- {
801
- contextWindowTokens: 262_144,
802
- description: '通义千问代码模型开源版。最新的 qwen3-coder-480b-a35b-instruct 是基于 Qwen3 的代码生成模型,具有强大的Coding Agent能力,擅长工具调用和环境交互,能够实现自主编程、代码能力卓越的同时兼具通用能力。',
803
- displayName: 'Qwen3 Coder 480B A35B',
804
- id: 'qwen3-coder-480b-a35b-instruct',
805
- maxOutput: 65_536,
806
- organization: 'Qwen',
807
- pricing: {
808
- currency: 'CNY',
809
- input: 9, // tokens 32K ~ 128K
810
- output: 36,
811
- },
812
- type: 'chat',
813
- },
814
867
  {
815
868
  contextWindowTokens: 131_072,
816
869
  description: '通义千问代码模型开源版。',
@@ -4,6 +4,88 @@ import { AIChatModelCard } from '@/types/aiModel';
4
4
  // https://www.sensecore.cn/help/docs/model-as-a-service/nova/release
5
5
 
6
6
  const sensenovaChatModels: AIChatModelCard[] = [
7
+ {
8
+ abilities: {
9
+ reasoning: true,
10
+ vision: true,
11
+ },
12
+ contextWindowTokens: 131_072,
13
+ description: '通过对多模态、语言及推理数据的全面更新与训练策略的优化,新模型在多模态推理和泛化指令跟随能力上实现了显著提升,支持高达128k的上下文窗口,并在OCR与文旅IP识别等专项任务中表现卓越。',
14
+ displayName: 'SenseNova V6.5 Pro',
15
+ enabled: true,
16
+ id: 'SenseNova-V6-5-Pro',
17
+ pricing: {
18
+ currency: 'CNY',
19
+ input: 3,
20
+ output: 9,
21
+ },
22
+ releasedAt: '2025-07-23',
23
+ settings: {
24
+ extendParams: ['enableReasoning'],
25
+ },
26
+ type: 'chat',
27
+ },
28
+ {
29
+ abilities: {
30
+ reasoning: true,
31
+ vision: true,
32
+ },
33
+ contextWindowTokens: 131_072,
34
+ description: '通过对多模态、语言及推理数据的全面更新与训练策略的优化,新模型在多模态推理和泛化指令跟随能力上实现了显著提升,支持高达128k的上下文窗口,并在OCR与文旅IP识别等专项任务中表现卓越。',
35
+ displayName: 'SenseNova V6.5 Turbo',
36
+ enabled: true,
37
+ id: 'SenseNova-V6-5-Turbo',
38
+ pricing: {
39
+ currency: 'CNY',
40
+ input: 1.5,
41
+ output: 4.5,
42
+ },
43
+ releasedAt: '2025-07-23',
44
+ settings: {
45
+ extendParams: ['enableReasoning'],
46
+ },
47
+ type: 'chat',
48
+ },
49
+ {
50
+ abilities: {
51
+ reasoning: true,
52
+ },
53
+ contextWindowTokens: 32_768,
54
+ description: 'Qwen3-235B-A22B,MoE(混合专家模型)模型,引入了“混合推理模式”,支持用户在“思考模式”和“非思考模式”之间无缝切换,支持119种语言和方言理解与推理,并具备强大的工具调用能力,在综合能力、代码与数学、多语言能力、知识与推理等多项基准测试中,都能与DeepSeek R1、OpenAI o1、o3-mini、Grok 3和谷歌Gemini 2.5 Pro等目前市场上的主流大模型竞争。',
55
+ displayName: 'Qwen3 235B A22B',
56
+ id: 'Qwen3-235B',
57
+ organization: 'Qwen',
58
+ pricing: {
59
+ currency: 'CNY',
60
+ input: 0,
61
+ output: 0,
62
+ },
63
+ releasedAt: '2025-05-27',
64
+ settings: {
65
+ extendParams: ['enableReasoning'],
66
+ },
67
+ type: 'chat',
68
+ },
69
+ {
70
+ abilities: {
71
+ reasoning: true,
72
+ },
73
+ contextWindowTokens: 32_768,
74
+ description: 'Qwen3-32B,稠密模型(Dense Model),引入了“混合推理模式”,支持用户在“思考模式”和“非思考模式”之间无缝切换,由于模型架构改进、训练数据增加以及更有效的训练方法,整体性能与Qwen2.5-72B表现相当。',
75
+ displayName: 'Qwen3 32B',
76
+ id: 'Qwen3-32B',
77
+ organization: 'Qwen',
78
+ pricing: {
79
+ currency: 'CNY',
80
+ input: 0,
81
+ output: 0,
82
+ },
83
+ releasedAt: '2025-05-27',
84
+ settings: {
85
+ extendParams: ['enableReasoning'],
86
+ },
87
+ type: 'chat',
88
+ },
7
89
  {
8
90
  abilities: {
9
91
  reasoning: true,
@@ -12,7 +94,6 @@ const sensenovaChatModels: AIChatModelCard[] = [
12
94
  contextWindowTokens: 32_768,
13
95
  description: '兼顾视觉、语言深度推理,实现慢思考和深度推理,呈现完整的思维链过程。',
14
96
  displayName: 'SenseNova V6 Reasoner',
15
- enabled: true,
16
97
  id: 'SenseNova-V6-Reasoner',
17
98
  pricing: {
18
99
  currency: 'CNY',
@@ -30,7 +111,6 @@ const sensenovaChatModels: AIChatModelCard[] = [
30
111
  description:
31
112
  '实现图片、文本、视频能力的原生统一,突破传统多模态分立局限,在多模基础能力、语言基础能力等核心维度全面领先,文理兼修,在多项测评中多次位列国内外第一梯队水平。',
32
113
  displayName: 'SenseNova V6 Turbo',
33
- enabled: true,
34
114
  id: 'SenseNova-V6-Turbo',
35
115
  pricing: {
36
116
  currency: 'CNY',
@@ -48,7 +128,6 @@ const sensenovaChatModels: AIChatModelCard[] = [
48
128
  description:
49
129
  '实现图片、文本、视频能力的原生统一,突破传统多模态分立局限,在OpenCompass和SuperCLUE评测中斩获双冠军。',
50
130
  displayName: 'SenseNova V6 Pro',
51
- enabled: true,
52
131
  id: 'SenseNova-V6-Pro',
53
132
  pricing: {
54
133
  currency: 'CNY',
@@ -202,6 +202,24 @@ const siliconcloudChatModels: AIChatModelCard[] = [
202
202
  releasedAt: '2025-07-21',
203
203
  type: 'chat',
204
204
  },
205
+ {
206
+ abilities: {
207
+ functionCall: true,
208
+ },
209
+ contextWindowTokens: 262_144,
210
+ description:
211
+ 'Qwen3-30B-A3B-Instruct-2507 是 Qwen3-30B-A3B 非思考模式的更新版本。这是一个拥有 305 亿总参数和 33 亿激活参数的混合专家(MoE)模型。该模型在多个方面进行了关键增强,包括显著提升了指令遵循、逻辑推理、文本理解、数学、科学、编码和工具使用等通用能力。同时,它在多语言的长尾知识覆盖范围上取得了实质性进展,并能更好地与用户在主观和开放式任务中的偏好对齐,从而能够生成更有帮助的回复和更高质量的文本。此外,该模型的长文本理解能力也增强到了 256K。此模型仅支持非思考模式,其输出中不会生成 `<think></think>` 标签。',
212
+ displayName: 'Qwen3 30B A3B Instruct 2507',
213
+ id: 'Qwen/Qwen3-30B-A3B-Instruct-2507',
214
+ organization: 'Qwen',
215
+ pricing: {
216
+ currency: 'CNY',
217
+ input: 0.7,
218
+ output: 2.8,
219
+ },
220
+ releasedAt: '2025-07-29',
221
+ type: 'chat',
222
+ },
205
223
  {
206
224
  abilities: {
207
225
  functionCall: true,
@@ -74,7 +74,7 @@ const ControlsForm = memo(() => {
74
74
  minWidth: undefined,
75
75
  name: 'enableReasoning',
76
76
  },
77
- enableReasoning && {
77
+ (enableReasoning || modelExtendParams?.includes('reasoningBudgetToken')) && {
78
78
  children: <ReasoningTokenSlider />,
79
79
  label: t('extendParams.reasoningBudgetToken.title'),
80
80
  layout: 'vertical',
@@ -29,15 +29,21 @@ export const LobeQwenAI = createOpenAICompatibleRuntime({
29
29
 
30
30
  return {
31
31
  ...rest,
32
- ...(['qwen3', 'qwen-turbo', 'qwen-plus'].some((keyword) =>
33
- model.toLowerCase().includes(keyword),
34
- )
32
+ ...(model.includes('-thinking')
35
33
  ? {
36
- enable_thinking: thinking !== undefined ? thinking.type === 'enabled' : false,
34
+ enable_thinking: true,
37
35
  thinking_budget:
38
36
  thinking?.budget_tokens === 0 ? 0 : thinking?.budget_tokens || undefined,
39
37
  }
40
- : {}),
38
+ : ['qwen3', 'qwen-turbo', 'qwen-plus'].some((keyword) =>
39
+ model.toLowerCase().includes(keyword),
40
+ )
41
+ ? {
42
+ enable_thinking: thinking !== undefined ? thinking.type === 'enabled' : false,
43
+ thinking_budget:
44
+ thinking?.budget_tokens === 0 ? 0 : thinking?.budget_tokens || undefined,
45
+ }
46
+ : {}),
41
47
  frequency_penalty: undefined,
42
48
  model,
43
49
  presence_penalty: QwenLegacyModels.has(model)
@@ -12,7 +12,7 @@ export const LobeSenseNovaAI = createOpenAICompatibleRuntime({
12
12
  baseURL: 'https://api.sensenova.cn/compatible-mode/v1',
13
13
  chatCompletion: {
14
14
  handlePayload: (payload) => {
15
- const { frequency_penalty, max_tokens, messages, model, temperature, top_p, ...rest } =
15
+ const { frequency_penalty, max_tokens, messages, model, temperature, thinking, top_p, ...rest } =
16
16
  payload;
17
17
 
18
18
  return {
@@ -33,6 +33,9 @@ export const LobeSenseNovaAI = createOpenAICompatibleRuntime({
33
33
  temperature !== undefined && temperature > 0 && temperature <= 2
34
34
  ? temperature
35
35
  : undefined,
36
+ thinking: thinking
37
+ ? (model && model.includes('-V6-5-') && thinking.type === 'enabled' ? { enabled: true } : { enabled: false })
38
+ : undefined,
36
39
  top_p: top_p !== undefined && top_p > 0 && top_p < 1 ? top_p : undefined,
37
40
  } as any;
38
41
  },
@@ -263,6 +263,12 @@ class ChatService {
263
263
  type: 'disabled',
264
264
  };
265
265
  }
266
+ } else if (modelExtendParams!.includes('reasoningBudgetToken')) {
267
+ // For models that only have reasoningBudgetToken without enableReasoning
268
+ extendParams.thinking = {
269
+ budget_tokens: chatConfig.reasoningBudgetToken || 1024,
270
+ type: 'enabled',
271
+ };
266
272
  }
267
273
 
268
274
  if (