@lobehub/chat 1.52.4 → 1.52.6
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/app/[variants]/@modal/(.)changelog/modal/layout.tsx +2 -0
- package/src/config/aiModels/zeroone.ts +16 -7
- package/src/config/modelProviders/zeroone.ts +13 -7
- package/src/middleware.ts +4 -1
- package/src/server/services/changelog/index.ts +8 -2
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,56 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.52.6](https://github.com/lobehub/lobe-chat/compare/v1.52.5...v1.52.6)
|
6
|
+
|
7
|
+
<sup>Released on **2025-02-08**</sup>
|
8
|
+
|
9
|
+
#### 💄 Styles
|
10
|
+
|
11
|
+
- **misc**: Update ZeroOne models.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Update ZeroOne models, closes [#5904](https://github.com/lobehub/lobe-chat/issues/5904) ([6e8d1a7](https://github.com/lobehub/lobe-chat/commit/6e8d1a7))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
30
|
+
### [Version 1.52.5](https://github.com/lobehub/lobe-chat/compare/v1.52.4...v1.52.5)
|
31
|
+
|
32
|
+
<sup>Released on **2025-02-08**</sup>
|
33
|
+
|
34
|
+
#### 🐛 Bug Fixes
|
35
|
+
|
36
|
+
- **misc**: Fix changelog modal.
|
37
|
+
|
38
|
+
<br/>
|
39
|
+
|
40
|
+
<details>
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
42
|
+
|
43
|
+
#### What's fixed
|
44
|
+
|
45
|
+
- **misc**: Fix changelog modal, closes [#5906](https://github.com/lobehub/lobe-chat/issues/5906) ([cbc5967](https://github.com/lobehub/lobe-chat/commit/cbc5967))
|
46
|
+
|
47
|
+
</details>
|
48
|
+
|
49
|
+
<div align="right">
|
50
|
+
|
51
|
+
[](#readme-top)
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
5
55
|
### [Version 1.52.4](https://github.com/lobehub/lobe-chat/compare/v1.52.3...v1.52.4)
|
6
56
|
|
7
57
|
<sup>Released on **2025-02-08**</sup>
|
package/changelog/v1.json
CHANGED
@@ -1,4 +1,22 @@
|
|
1
1
|
[
|
2
|
+
{
|
3
|
+
"children": {
|
4
|
+
"improvements": [
|
5
|
+
"Update ZeroOne models."
|
6
|
+
]
|
7
|
+
},
|
8
|
+
"date": "2025-02-08",
|
9
|
+
"version": "1.52.6"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"children": {
|
13
|
+
"fixes": [
|
14
|
+
"Fix changelog modal."
|
15
|
+
]
|
16
|
+
},
|
17
|
+
"date": "2025-02-08",
|
18
|
+
"version": "1.52.5"
|
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.52.
|
3
|
+
"version": "1.52.6",
|
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",
|
@@ -14,11 +14,26 @@ const zerooneChatModels: AIChatModelCard[] = [
|
|
14
14
|
},
|
15
15
|
type: 'chat',
|
16
16
|
},
|
17
|
+
{
|
18
|
+
abilities: {
|
19
|
+
vision: true,
|
20
|
+
},
|
21
|
+
contextWindowTokens: 16_384,
|
22
|
+
description: '复杂视觉任务模型,提供基于多张图片的高性能理解、分析能力。',
|
23
|
+
displayName: 'Yi Vision V2',
|
24
|
+
enabled: true,
|
25
|
+
id: 'yi-vision-v2',
|
26
|
+
pricing: {
|
27
|
+
currency: 'CNY',
|
28
|
+
input: 6,
|
29
|
+
output: 6,
|
30
|
+
},
|
31
|
+
type: 'chat',
|
32
|
+
},
|
17
33
|
{
|
18
34
|
contextWindowTokens: 16_384,
|
19
35
|
description: '小而精悍,轻量极速模型。提供强化数学运算和代码编写能力。',
|
20
36
|
displayName: 'Yi Spark',
|
21
|
-
enabled: true,
|
22
37
|
id: 'yi-spark',
|
23
38
|
pricing: {
|
24
39
|
currency: 'CNY',
|
@@ -31,7 +46,6 @@ const zerooneChatModels: AIChatModelCard[] = [
|
|
31
46
|
contextWindowTokens: 16_384,
|
32
47
|
description: '中型尺寸模型升级微调,能力均衡,性价比高。深度优化指令遵循能力。',
|
33
48
|
displayName: 'Yi Medium',
|
34
|
-
enabled: true,
|
35
49
|
id: 'yi-medium',
|
36
50
|
pricing: {
|
37
51
|
currency: 'CNY',
|
@@ -44,7 +58,6 @@ const zerooneChatModels: AIChatModelCard[] = [
|
|
44
58
|
contextWindowTokens: 200_000,
|
45
59
|
description: '200K 超长上下文窗口,提供长文本深度理解和生成能力。',
|
46
60
|
displayName: 'Yi Medium 200K',
|
47
|
-
enabled: true,
|
48
61
|
id: 'yi-medium-200k',
|
49
62
|
pricing: {
|
50
63
|
currency: 'CNY',
|
@@ -57,7 +70,6 @@ const zerooneChatModels: AIChatModelCard[] = [
|
|
57
70
|
contextWindowTokens: 16_384,
|
58
71
|
description: '超高性价比、卓越性能。根据性能和推理速度、成本,进行平衡性高精度调优。',
|
59
72
|
displayName: 'Yi Large Turbo',
|
60
|
-
enabled: true,
|
61
73
|
id: 'yi-large-turbo',
|
62
74
|
pricing: {
|
63
75
|
currency: 'CNY',
|
@@ -71,7 +83,6 @@ const zerooneChatModels: AIChatModelCard[] = [
|
|
71
83
|
description:
|
72
84
|
'基于 yi-large 超强模型的高阶服务,结合检索与生成技术提供精准答案,实时全网检索信息服务。',
|
73
85
|
displayName: 'Yi Large RAG',
|
74
|
-
enabled: true,
|
75
86
|
id: 'yi-large-rag',
|
76
87
|
pricing: {
|
77
88
|
currency: 'CNY',
|
@@ -88,7 +99,6 @@ const zerooneChatModels: AIChatModelCard[] = [
|
|
88
99
|
description:
|
89
100
|
'在 yi-large 模型的基础上支持并强化了工具调用的能力,适用于各种需要搭建 agent 或 workflow 的业务场景。',
|
90
101
|
displayName: 'Yi Large FC',
|
91
|
-
enabled: true,
|
92
102
|
id: 'yi-large-fc',
|
93
103
|
pricing: {
|
94
104
|
currency: 'CNY',
|
@@ -116,7 +126,6 @@ const zerooneChatModels: AIChatModelCard[] = [
|
|
116
126
|
contextWindowTokens: 16_384,
|
117
127
|
description: '复杂视觉任务模型,提供高性能图片理解、分析能力。',
|
118
128
|
displayName: 'Yi Vision',
|
119
|
-
enabled: true,
|
120
129
|
id: 'yi-vision',
|
121
130
|
pricing: {
|
122
131
|
currency: 'CNY',
|
@@ -15,11 +15,23 @@ const ZeroOne: ModelProviderCard = {
|
|
15
15
|
output: 0.99,
|
16
16
|
},
|
17
17
|
},
|
18
|
+
{
|
19
|
+
contextWindowTokens: 16_384,
|
20
|
+
description: '复杂视觉任务模型,提供基于多张图片的高性能理解、分析能力。',
|
21
|
+
displayName: 'Yi Vision V2',
|
22
|
+
enabled: true,
|
23
|
+
id: 'yi-vision-v2',
|
24
|
+
pricing: {
|
25
|
+
currency: 'CNY',
|
26
|
+
input: 6,
|
27
|
+
output: 6,
|
28
|
+
},
|
29
|
+
vision: true,
|
30
|
+
},
|
18
31
|
{
|
19
32
|
contextWindowTokens: 16_384,
|
20
33
|
description: '小而精悍,轻量极速模型。提供强化数学运算和代码编写能力。',
|
21
34
|
displayName: 'Yi Spark',
|
22
|
-
enabled: true,
|
23
35
|
id: 'yi-spark',
|
24
36
|
pricing: {
|
25
37
|
currency: 'CNY',
|
@@ -31,7 +43,6 @@ const ZeroOne: ModelProviderCard = {
|
|
31
43
|
contextWindowTokens: 16_384,
|
32
44
|
description: '中型尺寸模型升级微调,能力均衡,性价比高。深度优化指令遵循能力。',
|
33
45
|
displayName: 'Yi Medium',
|
34
|
-
enabled: true,
|
35
46
|
id: 'yi-medium',
|
36
47
|
pricing: {
|
37
48
|
currency: 'CNY',
|
@@ -43,7 +54,6 @@ const ZeroOne: ModelProviderCard = {
|
|
43
54
|
contextWindowTokens: 200_000,
|
44
55
|
description: '200K 超长上下文窗口,提供长文本深度理解和生成能力。',
|
45
56
|
displayName: 'Yi Medium 200K',
|
46
|
-
enabled: true,
|
47
57
|
id: 'yi-medium-200k',
|
48
58
|
pricing: {
|
49
59
|
currency: 'CNY',
|
@@ -55,7 +65,6 @@ const ZeroOne: ModelProviderCard = {
|
|
55
65
|
contextWindowTokens: 16_384,
|
56
66
|
description: '超高性价比、卓越性能。根据性能和推理速度、成本,进行平衡性高精度调优。',
|
57
67
|
displayName: 'Yi Large Turbo',
|
58
|
-
enabled: true,
|
59
68
|
id: 'yi-large-turbo',
|
60
69
|
pricing: {
|
61
70
|
currency: 'CNY',
|
@@ -68,7 +77,6 @@ const ZeroOne: ModelProviderCard = {
|
|
68
77
|
description:
|
69
78
|
'基于 yi-large 超强模型的高阶服务,结合检索与生成技术提供精准答案,实时全网检索信息服务。',
|
70
79
|
displayName: 'Yi Large RAG',
|
71
|
-
enabled: true,
|
72
80
|
id: 'yi-large-rag',
|
73
81
|
pricing: {
|
74
82
|
currency: 'CNY',
|
@@ -81,7 +89,6 @@ const ZeroOne: ModelProviderCard = {
|
|
81
89
|
description:
|
82
90
|
'在 yi-large 模型的基础上支持并强化了工具调用的能力,适用于各种需要搭建 agent 或 workflow 的业务场景。',
|
83
91
|
displayName: 'Yi Large FC',
|
84
|
-
enabled: true,
|
85
92
|
functionCall: true,
|
86
93
|
id: 'yi-large-fc',
|
87
94
|
pricing: {
|
@@ -105,7 +112,6 @@ const ZeroOne: ModelProviderCard = {
|
|
105
112
|
contextWindowTokens: 16_384,
|
106
113
|
description: '复杂视觉任务模型,提供高性能图片理解、分析能力。',
|
107
114
|
displayName: 'Yi Vision',
|
108
|
-
enabled: true,
|
109
115
|
id: 'yi-vision',
|
110
116
|
pricing: {
|
111
117
|
currency: 'CNY',
|
package/src/middleware.ts
CHANGED
@@ -81,8 +81,11 @@ const defaultMiddleware = (request: NextRequest) => {
|
|
81
81
|
});
|
82
82
|
|
83
83
|
const url = new URL(request.url);
|
84
|
-
|
84
|
+
|
85
|
+
// skip all api requests
|
86
|
+
if (['/api', '/trpc', '/webapi'].some((path) => url.pathname.startsWith(path))) {
|
85
87
|
return NextResponse.next();
|
88
|
+
}
|
86
89
|
|
87
90
|
// refs: https://github.com/lobehub/lobe-chat/pull/5866
|
88
91
|
// new handle segment rewrite: /${route}${originalPathname}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import dayjs from 'dayjs';
|
2
2
|
import matter from 'gray-matter';
|
3
|
+
import { template } from 'lodash-es';
|
3
4
|
import { markdownToTxt } from 'markdown-to-txt';
|
4
5
|
import semver from 'semver';
|
5
6
|
import urlJoin from 'url-join';
|
@@ -8,7 +9,7 @@ import { FetchCacheTag } from '@/const/cacheControl';
|
|
8
9
|
import { Locales } from '@/locales/resources';
|
9
10
|
import { ChangelogIndexItem } from '@/types/changelog';
|
10
11
|
|
11
|
-
const
|
12
|
+
const URL_TEMPLATE = 'https://raw.githubusercontent.com/{{user}}/{{repo}}/{{branch}}/{{path}}';
|
12
13
|
const LAST_MODIFIED = new Date().toISOString();
|
13
14
|
|
14
15
|
const docCdnPrefix = process.env.DOC_S3_PUBLIC_DOMAIN || '';
|
@@ -21,6 +22,7 @@ export interface ChangelogConfig {
|
|
21
22
|
majorVersion: number;
|
22
23
|
repo: string;
|
23
24
|
type: 'cloud' | 'community';
|
25
|
+
urlTemplate: string;
|
24
26
|
user: string;
|
25
27
|
}
|
26
28
|
|
@@ -36,6 +38,7 @@ export class ChangelogService {
|
|
36
38
|
majorVersion: 1,
|
37
39
|
repo: 'lobe-chat',
|
38
40
|
type: 'cloud',
|
41
|
+
urlTemplate: process.env.CHANGELOG_URL_TEMPLATE || URL_TEMPLATE,
|
39
42
|
user: 'lobehub',
|
40
43
|
};
|
41
44
|
|
@@ -178,7 +181,10 @@ export class ChangelogService {
|
|
178
181
|
}
|
179
182
|
|
180
183
|
private genUrl(path: string) {
|
181
|
-
|
184
|
+
// 自定义分隔符为 {{}}
|
185
|
+
const compiledTemplate = template(this.config.urlTemplate, { interpolate: /{{([\S\s]+?)}}/g });
|
186
|
+
|
187
|
+
return compiledTemplate({ ...this.config, path });
|
182
188
|
}
|
183
189
|
|
184
190
|
private extractHttpsLinks(text: string) {
|