@lobehub/chat 1.52.7 → 1.52.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 +26 -0
- package/changelog/v1.json +9 -0
- package/package.json +1 -1
- package/scripts/vercelIgnoredBuildStep.js +41 -0
- package/src/config/aiModels/github.ts +12 -0
- package/src/config/aiModels/openrouter.ts +83 -0
- package/src/config/modelProviders/github.ts +9 -0
- package/src/config/modelProviders/openrouter.ts +66 -0
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,32 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.52.8](https://github.com/lobehub/lobe-chat/compare/v1.52.7...v1.52.8)
|
6
|
+
|
7
|
+
<sup>Released on **2025-02-09**</sup>
|
8
|
+
|
9
|
+
#### 💄 Styles
|
10
|
+
|
11
|
+
- **misc**: Update github model list, Update openrouter model list.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Update github model list, closes [#5920](https://github.com/lobehub/lobe-chat/issues/5920) ([0676d0a](https://github.com/lobehub/lobe-chat/commit/0676d0a))
|
21
|
+
- **misc**: Update openrouter model list, closes [#5919](https://github.com/lobehub/lobe-chat/issues/5919) ([8a185d3](https://github.com/lobehub/lobe-chat/commit/8a185d3))
|
22
|
+
|
23
|
+
</details>
|
24
|
+
|
25
|
+
<div align="right">
|
26
|
+
|
27
|
+
[](#readme-top)
|
28
|
+
|
29
|
+
</div>
|
30
|
+
|
5
31
|
### [Version 1.52.7](https://github.com/lobehub/lobe-chat/compare/v1.52.6...v1.52.7)
|
6
32
|
|
7
33
|
<sup>Released on **2025-02-09**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.52.
|
3
|
+
"version": "1.52.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",
|
@@ -0,0 +1,41 @@
|
|
1
|
+
const { execSync } = require('node:child_process');
|
2
|
+
|
3
|
+
// 获取当前分支名
|
4
|
+
const branchName = process.env.VERCEL_GIT_COMMIT_REF || '';
|
5
|
+
|
6
|
+
function shouldProceedBuild() {
|
7
|
+
// 如果是 lighthouse 分支或以 testgru 开头的分支,取消构建
|
8
|
+
if (branchName === 'lighthouse' || branchName.startsWith('testgru')) {
|
9
|
+
return false;
|
10
|
+
}
|
11
|
+
|
12
|
+
try {
|
13
|
+
// 检查文件变更,排除特定文件和目录
|
14
|
+
const diffCommand =
|
15
|
+
'git diff HEAD^ HEAD --quiet -- \
|
16
|
+
":!./*.md" \
|
17
|
+
":!./Dockerfile" \
|
18
|
+
":!./.github" \
|
19
|
+
":!./.husky" \
|
20
|
+
":!./scripts"';
|
21
|
+
|
22
|
+
execSync(diffCommand);
|
23
|
+
|
24
|
+
return false;
|
25
|
+
} catch {
|
26
|
+
return true;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
const shouldBuild = shouldProceedBuild();
|
31
|
+
|
32
|
+
console.log('shouldBuild:', shouldBuild);
|
33
|
+
if (shouldBuild) {
|
34
|
+
console.log('✅ - Build can proceed');
|
35
|
+
// eslint-disable-next-line unicorn/no-process-exit
|
36
|
+
process.exit(1);
|
37
|
+
} else {
|
38
|
+
console.log('🛑 - Build cancelled');
|
39
|
+
// eslint-disable-next-line unicorn/no-process-exit
|
40
|
+
process.exit(0);
|
41
|
+
}
|
@@ -188,6 +188,18 @@ const githubChatModels: AIChatModelCard[] = [
|
|
188
188
|
maxOutput: 4096,
|
189
189
|
type: 'chat',
|
190
190
|
},
|
191
|
+
{
|
192
|
+
abilities: {
|
193
|
+
functionCall: true,
|
194
|
+
},
|
195
|
+
contextWindowTokens: 32_768,
|
196
|
+
description:
|
197
|
+
'Llama 3.3 是 Llama 系列最先进的多语言开源大型语言模型,以极低成本体验媲美 405B 模型的性能。基于 Transformer 结构,并通过监督微调(SFT)和人类反馈强化学习(RLHF)提升有用性和安全性。其指令调优版本专为多语言对话优化,在多项行业基准上表现优于众多开源和封闭聊天模型。知识截止日期为 2023 年 12 月',
|
198
|
+
displayName: 'Llama 3.3 70B Instruct',
|
199
|
+
enabled: true,
|
200
|
+
id: 'llama-3.3-70b-instruct',
|
201
|
+
type: 'chat',
|
202
|
+
},
|
191
203
|
{
|
192
204
|
contextWindowTokens: 131_072,
|
193
205
|
description:
|
@@ -96,6 +96,26 @@ const openrouterChatModels: AIChatModelCard[] = [
|
|
96
96
|
releasedAt: '2024-03-07',
|
97
97
|
type: 'chat',
|
98
98
|
},
|
99
|
+
{
|
100
|
+
abilities: {
|
101
|
+
functionCall: true,
|
102
|
+
},
|
103
|
+
contextWindowTokens: 200_000,
|
104
|
+
description:
|
105
|
+
'Claude 3.5 Haiku 是 Anthropic 最快的下一代模型。与 Claude 3 Haiku 相比,Claude 3.5 Haiku 在各项技能上都有所提升,并在许多智力基准测试中超越了上一代最大的模型 Claude 3 Opus。',
|
106
|
+
displayName: 'Claude 3.5 Haiku',
|
107
|
+
enabled: true,
|
108
|
+
id: 'anthropic/claude-3.5-haiku',
|
109
|
+
maxOutput: 8192,
|
110
|
+
pricing: {
|
111
|
+
cachedInput: 0.1,
|
112
|
+
input: 1,
|
113
|
+
output: 5,
|
114
|
+
writeCacheInput: 1.25,
|
115
|
+
},
|
116
|
+
releasedAt: '2024-11-05',
|
117
|
+
type: 'chat',
|
118
|
+
},
|
99
119
|
{
|
100
120
|
abilities: {
|
101
121
|
functionCall: true,
|
@@ -155,6 +175,26 @@ const openrouterChatModels: AIChatModelCard[] = [
|
|
155
175
|
},
|
156
176
|
type: 'chat',
|
157
177
|
},
|
178
|
+
{
|
179
|
+
abilities: {
|
180
|
+
functionCall: true,
|
181
|
+
vision: true,
|
182
|
+
},
|
183
|
+
contextWindowTokens: 1_048_576 + 8192,
|
184
|
+
description:
|
185
|
+
'Gemini 2.0 Flash 提供下一代功能和改进,包括卓越的速度、原生工具使用、多模态生成和1M令牌上下文窗口。',
|
186
|
+
displayName: 'Gemini 2.0 Flash',
|
187
|
+
enabled: true,
|
188
|
+
id: 'google/gemini-2.0-flash-001',
|
189
|
+
maxOutput: 8192,
|
190
|
+
pricing: {
|
191
|
+
cachedInput: 0.025,
|
192
|
+
input: 0.1,
|
193
|
+
output: 0.4,
|
194
|
+
},
|
195
|
+
releasedAt: '2025-02-05',
|
196
|
+
type: 'chat',
|
197
|
+
},
|
158
198
|
{
|
159
199
|
abilities: {
|
160
200
|
functionCall: true,
|
@@ -221,6 +261,34 @@ const openrouterChatModels: AIChatModelCard[] = [
|
|
221
261
|
},
|
222
262
|
type: 'chat',
|
223
263
|
},
|
264
|
+
{
|
265
|
+
abilities: {
|
266
|
+
functionCall: true,
|
267
|
+
},
|
268
|
+
contextWindowTokens: 32_768,
|
269
|
+
description:
|
270
|
+
'Llama 3.3 是 Llama 系列最先进的多语言开源大型语言模型,以极低成本体验媲美 405B 模型的性能。基于 Transformer 结构,并通过监督微调(SFT)和人类反馈强化学习(RLHF)提升有用性和安全性。其指令调优版本专为多语言对话优化,在多项行业基准上表现优于众多开源和封闭聊天模型。知识截止日期为 2023 年 12 月',
|
271
|
+
displayName: 'Llama 3.3 70B Instruct',
|
272
|
+
enabled: true,
|
273
|
+
id: 'meta-llama/llama-3.3-70b-instruct',
|
274
|
+
pricing: {
|
275
|
+
input: 0.12,
|
276
|
+
output: 0.3,
|
277
|
+
},
|
278
|
+
type: 'chat',
|
279
|
+
},
|
280
|
+
{
|
281
|
+
abilities: {
|
282
|
+
functionCall: true,
|
283
|
+
},
|
284
|
+
contextWindowTokens: 32_768,
|
285
|
+
description:
|
286
|
+
'Llama 3.3 是 Llama 系列最先进的多语言开源大型语言模型,以极低成本体验媲美 405B 模型的性能。基于 Transformer 结构,并通过监督微调(SFT)和人类反馈强化学习(RLHF)提升有用性和安全性。其指令调优版本专为多语言对话优化,在多项行业基准上表现优于众多开源和封闭聊天模型。知识截止日期为 2023 年 12 月',
|
287
|
+
displayName: 'Llama 3.3 70B Instruct (Free)',
|
288
|
+
enabled: true,
|
289
|
+
id: 'meta-llama/llama-3.3-70b-instruct:free',
|
290
|
+
type: 'chat',
|
291
|
+
},
|
224
292
|
{
|
225
293
|
contextWindowTokens: 32_768,
|
226
294
|
description: 'Qwen2 是全新的大型语言模型系列,具有更强的理解和生成能力。',
|
@@ -245,6 +313,21 @@ const openrouterChatModels: AIChatModelCard[] = [
|
|
245
313
|
id: 'google/gemma-2-9b-it:free',
|
246
314
|
type: 'chat',
|
247
315
|
},
|
316
|
+
{
|
317
|
+
abilities: {
|
318
|
+
functionCall: true,
|
319
|
+
vision: true,
|
320
|
+
},
|
321
|
+
contextWindowTokens: 2_097_152 + 8192,
|
322
|
+
description:
|
323
|
+
'Gemini 2.0 Pro Experimental 是 Google 最新的实验性多模态AI模型,与历史版本相比有一定的质量提升,特别是对于世界知识、代码和长上下文。',
|
324
|
+
displayName: 'Gemini 2.0 Pro Experimental 02-05 (Free)',
|
325
|
+
enabled: true,
|
326
|
+
id: 'google/gemini-2.0-pro-exp-02-05:free',
|
327
|
+
maxOutput: 8192,
|
328
|
+
releasedAt: '2025-02-05',
|
329
|
+
type: 'chat',
|
330
|
+
},
|
248
331
|
];
|
249
332
|
|
250
333
|
export const allModels = [...openrouterChatModels];
|
@@ -140,6 +140,15 @@ const Github: ModelProviderCard = {
|
|
140
140
|
maxOutput: 4096,
|
141
141
|
vision: true,
|
142
142
|
},
|
143
|
+
{
|
144
|
+
contextWindowTokens: 32_768,
|
145
|
+
description:
|
146
|
+
'Llama 3.3 是 Llama 系列最先进的多语言开源大型语言模型,以极低成本体验媲美 405B 模型的性能。基于 Transformer 结构,并通过监督微调(SFT)和人类反馈强化学习(RLHF)提升有用性和安全性。其指令调优版本专为多语言对话优化,在多项行业基准上表现优于众多开源和封闭聊天模型。知识截止日期为 2023 年 12 月',
|
147
|
+
displayName: 'Llama 3.3 70B Instruct',
|
148
|
+
enabled: true,
|
149
|
+
functionCall: true,
|
150
|
+
id: 'llama-3.3-70b-instruct',
|
151
|
+
},
|
143
152
|
{
|
144
153
|
contextWindowTokens: 131_072,
|
145
154
|
description:
|
@@ -103,6 +103,23 @@ const OpenRouter: ModelProviderCard = {
|
|
103
103
|
releasedAt: '2024-03-07',
|
104
104
|
vision: true,
|
105
105
|
},
|
106
|
+
{
|
107
|
+
contextWindowTokens: 200_000,
|
108
|
+
description:
|
109
|
+
'Claude 3.5 Haiku 是 Anthropic 最快的下一代模型。与 Claude 3 Haiku 相比,Claude 3.5 Haiku 在各项技能上都有所提升,并在许多智力基准测试中超越了上一代最大的模型 Claude 3 Opus。',
|
110
|
+
displayName: 'Claude 3.5 Haiku',
|
111
|
+
enabled: true,
|
112
|
+
functionCall: true,
|
113
|
+
id: 'anthropic/claude-3.5-haiku',
|
114
|
+
maxOutput: 8192,
|
115
|
+
pricing: {
|
116
|
+
cachedInput: 0.1,
|
117
|
+
input: 1,
|
118
|
+
output: 5,
|
119
|
+
writeCacheInput: 1.25,
|
120
|
+
},
|
121
|
+
releasedAt: '2024-11-05',
|
122
|
+
},
|
106
123
|
{
|
107
124
|
contextWindowTokens: 200_000,
|
108
125
|
description:
|
@@ -153,6 +170,22 @@ const OpenRouter: ModelProviderCard = {
|
|
153
170
|
},
|
154
171
|
vision: true,
|
155
172
|
},
|
173
|
+
{
|
174
|
+
contextWindowTokens: 1_048_576 + 8192,
|
175
|
+
description: "Gemini 2.0 Flash 提供下一代功能和改进,包括卓越的速度、原生工具使用、多模态生成和1M令牌上下文窗口。",
|
176
|
+
displayName: "Gemini 2.0 Flash",
|
177
|
+
enabled: true,
|
178
|
+
functionCall: true,
|
179
|
+
id: "google/gemini-2.0-flash-001",
|
180
|
+
maxOutput: 8192,
|
181
|
+
pricing: {
|
182
|
+
cachedInput: 0.025,
|
183
|
+
input: 0.1,
|
184
|
+
output: 0.4
|
185
|
+
},
|
186
|
+
releasedAt: "2025-02-05",
|
187
|
+
vision: true
|
188
|
+
},
|
156
189
|
{
|
157
190
|
contextWindowTokens: 2_000_000 + 8192,
|
158
191
|
description: 'Gemini 1.5 Pro 结合最新优化技术,带来更高效的多模态数据处理能力。',
|
@@ -207,6 +240,28 @@ const OpenRouter: ModelProviderCard = {
|
|
207
240
|
},
|
208
241
|
vision: true,
|
209
242
|
},
|
243
|
+
{
|
244
|
+
contextWindowTokens: 32_768,
|
245
|
+
description:
|
246
|
+
'Llama 3.3 是 Llama 系列最先进的多语言开源大型语言模型,以极低成本体验媲美 405B 模型的性能。基于 Transformer 结构,并通过监督微调(SFT)和人类反馈强化学习(RLHF)提升有用性和安全性。其指令调优版本专为多语言对话优化,在多项行业基准上表现优于众多开源和封闭聊天模型。知识截止日期为 2023 年 12 月',
|
247
|
+
displayName: 'Llama 3.3 70B Instruct',
|
248
|
+
enabled: true,
|
249
|
+
functionCall: true,
|
250
|
+
id: 'meta-llama/llama-3.3-70b-instruct',
|
251
|
+
pricing: {
|
252
|
+
input: 0.12,
|
253
|
+
output: 0.3,
|
254
|
+
},
|
255
|
+
},
|
256
|
+
{
|
257
|
+
contextWindowTokens: 32_768,
|
258
|
+
description:
|
259
|
+
'Llama 3.3 是 Llama 系列最先进的多语言开源大型语言模型,以极低成本体验媲美 405B 模型的性能。基于 Transformer 结构,并通过监督微调(SFT)和人类反馈强化学习(RLHF)提升有用性和安全性。其指令调优版本专为多语言对话优化,在多项行业基准上表现优于众多开源和封闭聊天模型。知识截止日期为 2023 年 12 月',
|
260
|
+
displayName: 'Llama 3.3 70B Instruct (Free)',
|
261
|
+
enabled: true,
|
262
|
+
functionCall: true,
|
263
|
+
id: 'meta-llama/llama-3.3-70b-instruct:free',
|
264
|
+
},
|
210
265
|
{
|
211
266
|
contextWindowTokens: 32_768,
|
212
267
|
description: 'Qwen2 是全新的大型语言模型系列,具有更强的理解和生成能力。',
|
@@ -228,6 +283,17 @@ const OpenRouter: ModelProviderCard = {
|
|
228
283
|
enabled: true,
|
229
284
|
id: 'google/gemma-2-9b-it:free',
|
230
285
|
},
|
286
|
+
{
|
287
|
+
contextWindowTokens: 2_097_152 + 8192,
|
288
|
+
description: "Gemini 2.0 Pro Experimental 是 Google 最新的实验性多模态AI模型,与历史版本相比有一定的质量提升,特别是对于世界知识、代码和长上下文。",
|
289
|
+
displayName: "Gemini 2.0 Pro Experimental 02-05 (Free)",
|
290
|
+
enabled: true,
|
291
|
+
functionCall: true,
|
292
|
+
id: "google/gemini-2.0-pro-exp-02-05:free",
|
293
|
+
maxOutput: 8192,
|
294
|
+
releasedAt: "2025-02-05",
|
295
|
+
vision: true
|
296
|
+
},
|
231
297
|
],
|
232
298
|
checkModel: 'google/gemma-2-9b-it:free',
|
233
299
|
description:
|