@lobehub/chat 1.20.5 → 1.20.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
CHANGED
@@ -2,6 +2,23 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.20.6](https://github.com/lobehub/lobe-chat/compare/v1.20.5...v1.20.6)
|
6
|
+
|
7
|
+
<sup>Released on **2024-09-29**</sup>
|
8
|
+
|
9
|
+
<br/>
|
10
|
+
|
11
|
+
<details>
|
12
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
13
|
+
|
14
|
+
</details>
|
15
|
+
|
16
|
+
<div align="right">
|
17
|
+
|
18
|
+
[](#readme-top)
|
19
|
+
|
20
|
+
</div>
|
21
|
+
|
5
22
|
### [Version 1.20.5](https://github.com/lobehub/lobe-chat/compare/v1.20.4...v1.20.5)
|
6
23
|
|
7
24
|
<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.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",
|
@@ -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
|
}
|