@lobehub/chat 1.106.5 → 1.106.7
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 +50 -0
- package/changelog/v1.json +18 -0
- package/package.json +1 -1
- package/src/config/aiModels/qwen.ts +68 -15
- package/src/config/aiModels/siliconcloud.ts +18 -0
- package/src/features/ChatInput/ActionBar/Model/ControlsForm.tsx +1 -1
- package/src/libs/model-runtime/qwen/index.ts +11 -5
- package/src/services/chat.ts +6 -0
- package/src/app/[variants]/oauth/callback/layout.tsx +0 -12
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,56 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.106.7](https://github.com/lobehub/lobe-chat/compare/v1.106.6...v1.106.7)
|
6
|
+
|
7
|
+
<sup>Released on **2025-07-31**</sup>
|
8
|
+
|
9
|
+
#### 💄 Styles
|
10
|
+
|
11
|
+
- **misc**: Update Aliyun Bailian models.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Update Aliyun Bailian models, closes [#8612](https://github.com/lobehub/lobe-chat/issues/8612) ([433e679](https://github.com/lobehub/lobe-chat/commit/433e679))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
30
|
+
### [Version 1.106.6](https://github.com/lobehub/lobe-chat/compare/v1.106.5...v1.106.6)
|
31
|
+
|
32
|
+
<sup>Released on **2025-07-31**</sup>
|
33
|
+
|
34
|
+
#### 🐛 Bug Fixes
|
35
|
+
|
36
|
+
- **misc**: Fix oidc oauth callback pages 404.
|
37
|
+
|
38
|
+
<br/>
|
39
|
+
|
40
|
+
<details>
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
42
|
+
|
43
|
+
#### What's fixed
|
44
|
+
|
45
|
+
- **misc**: Fix oidc oauth callback pages 404, closes [#8620](https://github.com/lobehub/lobe-chat/issues/8620) ([d136b6e](https://github.com/lobehub/lobe-chat/commit/d136b6e))
|
46
|
+
|
47
|
+
</details>
|
48
|
+
|
49
|
+
<div align="right">
|
50
|
+
|
51
|
+
[](#readme-top)
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
5
55
|
### [Version 1.106.5](https://github.com/lobehub/lobe-chat/compare/v1.106.4...v1.106.5)
|
6
56
|
|
7
57
|
<sup>Released on **2025-07-30**</sup>
|
package/changelog/v1.json
CHANGED
@@ -1,4 +1,22 @@
|
|
1
1
|
[
|
2
|
+
{
|
3
|
+
"children": {
|
4
|
+
"improvements": [
|
5
|
+
"Update Aliyun Bailian models."
|
6
|
+
]
|
7
|
+
},
|
8
|
+
"date": "2025-07-31",
|
9
|
+
"version": "1.106.7"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"children": {
|
13
|
+
"fixes": [
|
14
|
+
"Fix oidc oauth callback pages 404."
|
15
|
+
]
|
16
|
+
},
|
17
|
+
"date": "2025-07-31",
|
18
|
+
"version": "1.106.6"
|
19
|
+
},
|
2
20
|
{
|
3
21
|
"children": {
|
4
22
|
"improvements": [
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.106.
|
3
|
+
"version": "1.106.7",
|
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
|
-
|
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: '通义千问代码模型开源版。',
|
@@ -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
|
-
...(
|
33
|
-
model.toLowerCase().includes(keyword),
|
34
|
-
)
|
32
|
+
...(model.includes('-thinking')
|
35
33
|
? {
|
36
|
-
enable_thinking:
|
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)
|
package/src/services/chat.ts
CHANGED
@@ -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 (
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { notFound } from 'next/navigation';
|
2
|
-
import { PropsWithChildren } from 'react';
|
3
|
-
|
4
|
-
import { oidcEnv } from '@/envs/oidc';
|
5
|
-
|
6
|
-
const Layout = ({ children }: PropsWithChildren) => {
|
7
|
-
if (!oidcEnv.ENABLE_OIDC) return notFound();
|
8
|
-
|
9
|
-
return children;
|
10
|
-
};
|
11
|
-
|
12
|
-
export default Layout;
|