@lobehub/chat 1.20.5 → 1.20.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
CHANGED
@@ -2,6 +2,48 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.20.7](https://github.com/lobehub/lobe-chat/compare/v1.20.6...v1.20.7)
|
6
|
+
|
7
|
+
<sup>Released on **2024-09-29**</sup>
|
8
|
+
|
9
|
+
#### 💄 Styles
|
10
|
+
|
11
|
+
- **misc**: Update groq model list.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Update groq model list, closes [#4195](https://github.com/lobehub/lobe-chat/issues/4195) ([ef5164d](https://github.com/lobehub/lobe-chat/commit/ef5164d))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
30
|
+
### [Version 1.20.6](https://github.com/lobehub/lobe-chat/compare/v1.20.5...v1.20.6)
|
31
|
+
|
32
|
+
<sup>Released on **2024-09-29**</sup>
|
33
|
+
|
34
|
+
<br/>
|
35
|
+
|
36
|
+
<details>
|
37
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
38
|
+
|
39
|
+
</details>
|
40
|
+
|
41
|
+
<div align="right">
|
42
|
+
|
43
|
+
[](#readme-top)
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
5
47
|
### [Version 1.20.5](https://github.com/lobehub/lobe-chat/compare/v1.20.4...v1.20.5)
|
6
48
|
|
7
49
|
<sup>Released on **2024-09-29**</sup>
|
package/README.md
CHANGED
@@ -285,14 +285,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
|
|
285
285
|
|
286
286
|
<!-- AGENT LIST -->
|
287
287
|
|
288
|
-
| Recent Submits
|
289
|
-
|
|
290
|
-
| [
|
291
|
-
| [
|
292
|
-
| [
|
293
|
-
| [
|
294
|
-
|
295
|
-
> 📊 Total agents: [<kbd>**
|
288
|
+
| Recent Submits | Description |
|
289
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
290
|
+
| [Birthday Invitation Messages](https://chat-preview.lobehub.com/market?agent=birthday-invitation-message)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | Specializes in crafting engaging and personalized Birthday Invitation messages, catering to various themes and tones.<br/>`message-composition` `personalization` `tone-versatility` `event-detail-integration` `interaction-approach` |
|
291
|
+
| [Death Anniversary Messages](https://chat-preview.lobehub.com/market?agent=death-anniversary-message)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | Specializes in crafting sensitive and heartfelt Death Anniversary messages with compassion and empathy.<br/>`condolences` `message-composition` `grief-support` `cultural-awareness` `emotional-sensitivity` |
|
292
|
+
| [Flux Prompt Generator](https://chat-preview.lobehub.com/market?agent=flux-prompt-generator)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | Flux Prompt Generation Assistant: Expert in crafting detailed, creative prompts for high-quality image outputs from the Flux model.<br/>`prompt-generation` `image-generation` `art-style` `creativity` `crafting` |
|
293
|
+
| [God Bless You Messages](https://chat-preview.lobehub.com/market?agent=god-bless-you-message)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | Expert in crafting personalized "God Bless You" messages with spiritual sensitivity and language mastery.<br/>`message-composition` `personalization` `spiritual-sensitivity` `language-mastery` `interaction-approach` |
|
294
|
+
|
295
|
+
> 📊 Total agents: [<kbd>**403**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
296
296
|
|
297
297
|
<!-- AGENT LIST -->
|
298
298
|
|
package/README.zh-CN.md
CHANGED
@@ -273,14 +273,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
|
|
273
273
|
|
274
274
|
<!-- AGENT LIST -->
|
275
275
|
|
276
|
-
| 最近新增
|
277
|
-
|
|
278
|
-
| [
|
279
|
-
| [
|
280
|
-
| [
|
281
|
-
| [
|
282
|
-
|
283
|
-
> 📊 Total agents: [<kbd>**
|
276
|
+
| 最近新增 | 助手说明 |
|
277
|
+
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
278
|
+
| [生日邀请信息](https://chat-preview.lobehub.com/market?agent=birthday-invitation-message)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | 专注于制作引人入胜和个性化的生日邀请信息,适应各种主题和语气。<br/>`信息构成` `个性化` `语气多样性` `活动细节整合` `互动方式` |
|
279
|
+
| [忌日信息](https://chat-preview.lobehub.com/market?agent=death-anniversary-message)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | 专注于以同情和共情的方式撰写敏感且发自内心的忌日信息。<br/>`慰问` `信息撰写` `悲伤支持` `文化意识` `情感敏感性` |
|
280
|
+
| [Flux 提示生成器](https://chat-preview.lobehub.com/market?agent=flux-prompt-generator)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | Flux 提示生成助手:专注于为 Flux 模型生成高质量图像输出而创作详细、创意提示的专家。<br/>`提示生成` `图像生成` `艺术风格` `创意` `创作` |
|
281
|
+
| [上帝保佑你的信息](https://chat-preview.lobehub.com/market?agent=god-bless-you-message)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | 擅长以灵性敏感和语言掌握来创作个性化的 “上帝保佑你” 信息。<br/>`信息创作` `个性化` `灵性敏感` `语言掌握` `互动方式` |
|
282
|
+
|
283
|
+
> 📊 Total agents: [<kbd>**403**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
284
284
|
|
285
285
|
<!-- AGENT LIST -->
|
286
286
|
|
@@ -22,7 +22,8 @@ tags:
|
|
22
22
|
<Callout type="info">
|
23
23
|
本文已经假定你了解了 LobeChat 服务端数据库版本(下简称 DB
|
24
24
|
版)的部署基本原理和流程,因此只包含核心环境变量配置的内容。如果你还不了解 LobeChat DB
|
25
|
-
版的部署原理,请先查阅 [使用服务端数据库部署](/zh/docs/self-hosting/
|
25
|
+
版的部署原理,请先查阅 [使用服务端数据库部署](https://lobehub.com/zh/docs/self-hosting/advanced/s3/tencent-cloud) 。
|
26
|
+
此外,针对国内的腾讯云储存桶用户,可查询[配置腾讯云 COS 存储服务](https://lobehub.com/zh/docs/self-hosting/advanced/s3/tencent-cloud)。
|
26
27
|
</Callout>
|
27
28
|
|
28
29
|
<Callout type="warning">
|
@@ -83,9 +84,11 @@ AUTH0_ISSUER=https://lobe-chat-demo.us.auth0.com
|
|
83
84
|
# S3 相关
|
84
85
|
S3_ACCESS_KEY_ID=xxxxxxxxxx
|
85
86
|
S3_SECRET_ACCESS_KEY=xxxxxxxxxx
|
86
|
-
|
87
|
+
# 用于 S3 API 访问的域名
|
88
|
+
S3_ENDPOINT=https://xxxxxxxxxx.r2.cloudflarestorage.com
|
87
89
|
S3_BUCKET=lobechat
|
88
|
-
|
90
|
+
# 用于外网访问 S3 的公共域名,需配置 CORS
|
91
|
+
S3_PUBLIC_DOMAIN=https://s3-for-lobechat.your-domain.com
|
89
92
|
# S3_REGION=ap-chengdu # 如果需要指定地域
|
90
93
|
|
91
94
|
# 其他环境变量,视需求而定
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.20.
|
3
|
+
"version": "1.20.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",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
const dns = require('dns').promises;
|
2
|
-
const fs = require('fs');
|
2
|
+
const fs = require('fs').promises;
|
3
3
|
const tls = require('tls');
|
4
4
|
const { spawn } = require('child_process');
|
5
5
|
|
@@ -102,7 +102,8 @@ const resolveHostIP = async (host, version = 4) => {
|
|
102
102
|
|
103
103
|
return address;
|
104
104
|
} catch (err) {
|
105
|
-
console.error(`❌ DNS Error: Could not resolve ${host}. Check DNS server
|
105
|
+
console.error(`❌ DNS Error: Could not resolve ${host}. Check DNS server:`);
|
106
|
+
console.error(err);
|
106
107
|
process.exit(1);
|
107
108
|
}
|
108
109
|
};
|
@@ -136,7 +137,7 @@ tcp_read_time_out 15000
|
|
136
137
|
${protocol} ${ip} ${port}
|
137
138
|
`.trim();
|
138
139
|
|
139
|
-
fs.
|
140
|
+
await fs.writeFile(PROXYCHAINS_CONF_PATH, configContent);
|
140
141
|
console.log(`✅ ProxyChains: All outgoing traffic routed via ${protocol}://${ip}:${port}.`);
|
141
142
|
console.log('-------------------------------------');
|
142
143
|
};
|
@@ -168,10 +169,25 @@ const runServer = async () => {
|
|
168
169
|
|
169
170
|
if (process.env.DATABASE_DRIVER) {
|
170
171
|
try {
|
171
|
-
|
172
|
+
try {
|
173
|
+
await fs.access(DB_MIGRATION_SCRIPT_PATH);
|
174
|
+
|
175
|
+
await runScript(DB_MIGRATION_SCRIPT_PATH);
|
176
|
+
} catch (err) {
|
177
|
+
if (err.code === 'ENOENT') {
|
178
|
+
console.log(`⚠️ DB Migration: Not found ${DB_MIGRATION_SCRIPT_PATH}. Skipping DB migration. Ensure to migrate database manually.`);
|
179
|
+
console.log('-------------------------------------');
|
180
|
+
} else {
|
181
|
+
console.error('❌ Error during DB migration:');
|
182
|
+
console.error(err);
|
183
|
+
process.exit(1);
|
184
|
+
}
|
185
|
+
}
|
186
|
+
|
172
187
|
await checkTLSConnections();
|
173
188
|
} catch (err) {
|
174
|
-
console.error('❌ Error during
|
189
|
+
console.error('❌ Error during TLS connection check:');
|
190
|
+
console.error(err);
|
175
191
|
process.exit(1);
|
176
192
|
}
|
177
193
|
}
|
@@ -3,11 +3,39 @@ import { ModelProviderCard } from '@/types/llm';
|
|
3
3
|
// ref https://console.groq.com/docs/tool-use
|
4
4
|
const Groq: ModelProviderCard = {
|
5
5
|
chatModels: [
|
6
|
-
// TODO: During preview launch, Groq is limiting 3.
|
6
|
+
// TODO: During preview launch, Groq is limiting 3.2 models to max_tokens of 8k.
|
7
|
+
{
|
8
|
+
description:
|
9
|
+
'Llama 3.2 旨在处理结合视觉和文本数据的任务。它在图像描述和视觉问答等任务中表现出色,跨越了语言生成和视觉推理之间的鸿沟。',
|
10
|
+
displayName: 'Llama 3.2 11B Vision (Preview)',
|
11
|
+
enabled: true,
|
12
|
+
id: 'llama-3.2-11b-vision-preview',
|
13
|
+
maxOutput: 8192,
|
14
|
+
pricing: {
|
15
|
+
input: 0.05,
|
16
|
+
output: 0.08,
|
17
|
+
},
|
18
|
+
tokens: 8192,
|
19
|
+
vision: true,
|
20
|
+
},
|
21
|
+
{
|
22
|
+
description:
|
23
|
+
'Llama 3.2 旨在处理结合视觉和文本数据的任务。它在图像描述和视觉问答等任务中表现出色,跨越了语言生成和视觉推理之间的鸿沟。',
|
24
|
+
displayName: 'Llama 3.2 90B Vision (Preview)',
|
25
|
+
enabled: true,
|
26
|
+
id: 'llama-3.2-90b-vision-preview',
|
27
|
+
maxOutput: 8192,
|
28
|
+
pricing: {
|
29
|
+
input: 0.59,
|
30
|
+
output: 0.79,
|
31
|
+
},
|
32
|
+
tokens: 8192,
|
33
|
+
vision: true,
|
34
|
+
},
|
7
35
|
{
|
8
36
|
description:
|
9
37
|
'Llama 3.1 8B 是一款高效能模型,提供了快速的文本生成能力,非常适合需要大规模效率和成本效益的应用场景。',
|
10
|
-
displayName: 'Llama 3.1 8B
|
38
|
+
displayName: 'Llama 3.1 8B',
|
11
39
|
enabled: true,
|
12
40
|
functionCall: true,
|
13
41
|
id: 'llama-3.1-8b-instant',
|
@@ -21,7 +49,7 @@ const Groq: ModelProviderCard = {
|
|
21
49
|
{
|
22
50
|
description:
|
23
51
|
'Llama 3.1 70B 提供更强大的AI推理能力,适合复杂应用,支持超多的计算处理并保证高效和准确率。',
|
24
|
-
displayName: 'Llama 3.1 70B
|
52
|
+
displayName: 'Llama 3.1 70B',
|
25
53
|
enabled: true,
|
26
54
|
functionCall: true,
|
27
55
|
id: 'llama-3.1-70b-versatile',
|
@@ -35,7 +63,7 @@ const Groq: ModelProviderCard = {
|
|
35
63
|
/*
|
36
64
|
// Offline due to overwhelming demand! Stay tuned for updates.
|
37
65
|
{
|
38
|
-
displayName: 'Llama 3.1 405B
|
66
|
+
displayName: 'Llama 3.1 405B',
|
39
67
|
functionCall: true,
|
40
68
|
id: 'llama-3.1-405b-reasoning',
|
41
69
|
tokens: 8_192,
|
@@ -44,7 +72,6 @@ const Groq: ModelProviderCard = {
|
|
44
72
|
{
|
45
73
|
description: 'Llama 3 Groq 8B Tool Use 是针对高效工具使用优化的模型,支持快速并行计算。',
|
46
74
|
displayName: 'Llama 3 Groq 8B Tool Use (Preview)',
|
47
|
-
enabled: true,
|
48
75
|
functionCall: true,
|
49
76
|
id: 'llama3-groq-8b-8192-tool-use-preview',
|
50
77
|
pricing: {
|
@@ -56,7 +83,6 @@ const Groq: ModelProviderCard = {
|
|
56
83
|
{
|
57
84
|
description: 'Llama 3 Groq 70B Tool Use 提供强大的工具调用能力,支持复杂任务的高效处理。',
|
58
85
|
displayName: 'Llama 3 Groq 70B Tool Use (Preview)',
|
59
|
-
enabled: true,
|
60
86
|
functionCall: true,
|
61
87
|
id: 'llama3-groq-70b-8192-tool-use-preview',
|
62
88
|
pricing: {
|
@@ -124,13 +150,12 @@ const Groq: ModelProviderCard = {
|
|
124
150
|
{
|
125
151
|
description: 'LLaVA 1.5 7B 提供视觉处理能力融合,通过视觉信息输入生成复杂输出。',
|
126
152
|
displayName: 'LLaVA 1.5 7B',
|
127
|
-
enabled: true,
|
128
153
|
id: 'llava-v1.5-7b-4096-preview',
|
129
154
|
tokens: 4096,
|
130
155
|
vision: true,
|
131
156
|
},
|
132
157
|
],
|
133
|
-
checkModel: '
|
158
|
+
checkModel: 'llama-3.1-8b-instant',
|
134
159
|
description:
|
135
160
|
'Groq 的 LPU 推理引擎在最新的独立大语言模型(LLM)基准测试中表现卓越,以其惊人的速度和效率重新定义了 AI 解决方案的标准。Groq 是一种即时推理速度的代表,在基于云的部署中展现了良好的性能。',
|
136
161
|
id: 'groq',
|