@lobehub/chat 0.128.4 → 0.128.5
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 +25 -0
- package/contributing/Upstream-Sync.md +58 -0
- package/contributing/Upstream-Sync.zh-CN.md +58 -0
- package/package.json +1 -1
- package/src/const/url.ts +4 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.128.5](https://github.com/lobehub/lobe-chat/compare/v0.128.4...v0.128.5)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-02-18**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix the document url.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix the document url ([43b5677](https://github.com/lobehub/lobe-chat/commit/43b5677))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 0.128.4](https://github.com/lobehub/lobe-chat/compare/v0.128.3...v0.128.4)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2024-02-18**</sup>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Upstream Sync
|
|
2
|
+
|
|
3
|
+
English | [简体中文](https://github.com/lobehub/lobe-chat/wiki/Upstream-Sync.zh-CN)
|
|
4
|
+
|
|
5
|
+
## `A` Vercel / Zeabur Deployment
|
|
6
|
+
|
|
7
|
+
If you have deployed your own project following the one-click deployment steps in the README, you might encounter constant prompts indicating "updates available". This is because Vercel defaults to creating a new project instead of forking this one, resulting in an inability to accurately detect updates. We suggest you redeploy using the following steps:
|
|
8
|
+
|
|
9
|
+
- Remove the original repository;
|
|
10
|
+
- Use the <kbd>Fork</kbd> button at the top right corner of the page to fork this project;
|
|
11
|
+
- Re-select and deploy on `Vercel`.
|
|
12
|
+
|
|
13
|
+
## Enabling Automatic Updates
|
|
14
|
+
|
|
15
|
+
> \[!NOTE]
|
|
16
|
+
>
|
|
17
|
+
> If you encounter an error executing Upstream Sync, manually Sync Fork once
|
|
18
|
+
|
|
19
|
+
Once you have forked the project, due to Github restrictions, you will need to manually enable Workflows on the Actions page of your forked project and activate the Upstream Sync Action. Once enabled, you can set up hourly automatic updates.
|
|
20
|
+
|
|
21
|
+

|
|
22
|
+

|
|
23
|
+
|
|
24
|
+
## `B` Docker Deployment
|
|
25
|
+
|
|
26
|
+
Upgrading the Docker deployment version is very simple, just redeploy the latest image of LobeChat. Here are the instructions to perform these steps:
|
|
27
|
+
|
|
28
|
+
1. Stop and delete the currently running LobeChat container (assuming the name of the LobeChat container is `lobe-chat`):
|
|
29
|
+
|
|
30
|
+
```fish
|
|
31
|
+
docker stop lobe-chat
|
|
32
|
+
docker rm lobe-chat
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
2. Pull the latest Docker image of LobeChat:
|
|
36
|
+
|
|
37
|
+
```fish
|
|
38
|
+
docker pull lobehub/lobe-chat
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
3. Redeploy the LobeChat container using the newly pulled image:
|
|
42
|
+
|
|
43
|
+
```fish
|
|
44
|
+
docker run -d -p 3210:3210 \
|
|
45
|
+
-e OPENAI_API_KEY=sk-xxxx \
|
|
46
|
+
-e OPENAI_PROXY_URL=https://api-proxy.com/v1 \
|
|
47
|
+
-e ACCESS_CODE=lobe66 \
|
|
48
|
+
--name lobe-chat \
|
|
49
|
+
lobehub/lobe-chat
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Make sure you have sufficient permissions to stop and delete the container before executing these commands, and Docker has sufficient permissions to pull the new image.
|
|
53
|
+
|
|
54
|
+
> \[!NOTE]
|
|
55
|
+
>
|
|
56
|
+
> If I redeploy, will my local chat history be lost?
|
|
57
|
+
>
|
|
58
|
+
> Don't worry, all of LobeChat's chat history is stored in your local browser. Therefore, when you redeploy LobeChat using Docker, your chat history will not be lost.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# 自部署保持更新
|
|
2
|
+
|
|
3
|
+
[English](https://github.com/lobehub/lobe-chat/wiki/Upstream-Sync) | 简体中文
|
|
4
|
+
|
|
5
|
+
## `A` Vercel / Zeabur 部署
|
|
6
|
+
|
|
7
|
+
如果你根据 README 中的一键部署步骤部署了自己的项目,你可能会发现总是被提示 “有可用更新”。这是因为 Vercel 默认为你创建新项目而非 fork 本项目,这将导致无法准确检测更新。我们建议按照以下步骤重新部署:
|
|
8
|
+
|
|
9
|
+
- 删除原有的仓库;
|
|
10
|
+
- 使用页面右上角的 <kbd>Fork</kbd> 按钮,Fork 本项目;
|
|
11
|
+
- 在 `Vercel` 上重新选择并部署。
|
|
12
|
+
|
|
13
|
+
### 启动自动更新
|
|
14
|
+
|
|
15
|
+
> \[!NOTE]
|
|
16
|
+
>
|
|
17
|
+
> 如果你在执行 `Upstream Sync` 时遇到错误,请手动执再行一次
|
|
18
|
+
|
|
19
|
+
当你 Fork 了项目后,由于 Github 的限制,你需要手动在你 Fork 的项目的 Actions 页面启用 Workflows,并启动 Upstream Sync Action。启用后,你可以设置每小时进行一次自动更新。
|
|
20
|
+
|
|
21
|
+

|
|
22
|
+

|
|
23
|
+
|
|
24
|
+
## `B` Docker 部署
|
|
25
|
+
|
|
26
|
+
Docker 部署版本的升级非常简单,只需要重新部署 LobeChat 的最新镜像即可。 以下是执行这些步骤所需的指令:
|
|
27
|
+
|
|
28
|
+
1. 停止并删除当前运行的 LobeChat 容器(假设 LobeChat 容器的名称是 `lobe-chat`):
|
|
29
|
+
|
|
30
|
+
```fish
|
|
31
|
+
docker stop lobe-chat
|
|
32
|
+
docker rm lobe-chat
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
2. 拉取 LobeChat 的最新 Docker 镜像:
|
|
36
|
+
|
|
37
|
+
```fish
|
|
38
|
+
docker pull lobehub/lobe-chat
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
3. 使用新拉取的镜像重新部署 LobeChat 容器:
|
|
42
|
+
|
|
43
|
+
```fish
|
|
44
|
+
docker run -d -p 3210:3210 \
|
|
45
|
+
-e OPENAI_API_KEY=sk-xxxx \
|
|
46
|
+
-e OPENAI_PROXY_URL=https://api-proxy.com/v1 \
|
|
47
|
+
-e ACCESS_CODE=lobe66 \
|
|
48
|
+
--name lobe-chat \
|
|
49
|
+
lobehub/lobe-chat
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
确保在执行这些命令之前,您有足够的权限来停止和删除容器,并且 Docker 有足够的权限来拉取新的镜像。
|
|
53
|
+
|
|
54
|
+
> \[!NOTE]
|
|
55
|
+
>
|
|
56
|
+
> 重新部署的话,我本地的聊天记录会丢失吗?
|
|
57
|
+
>
|
|
58
|
+
> 放心,LobeChat 的聊天记录全部都存储在你的本地浏览器中。因此使用 Docker 重新部署 LobeChat 时,你的聊天记录并不会丢失。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.128.
|
|
3
|
+
"version": "0.128.5",
|
|
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",
|
package/src/const/url.ts
CHANGED
|
@@ -11,12 +11,11 @@ export const CHANGELOG = urlJoin(GITHUB, 'blob/master/CHANGELOG.md');
|
|
|
11
11
|
|
|
12
12
|
const { LOBE_CHAT_DOCS } = getClientConfig();
|
|
13
13
|
|
|
14
|
-
export const DOCUMENTS = !!LOBE_CHAT_DOCS
|
|
15
|
-
? urlJoin(LOBE_CHAT_DOCS, '/docs')
|
|
16
|
-
: 'https://chat-docs.lobehub.com';
|
|
14
|
+
export const DOCUMENTS = !!LOBE_CHAT_DOCS ? '/docs' : 'https://chat-docs.lobehub.com';
|
|
17
15
|
|
|
18
|
-
const
|
|
19
|
-
|
|
16
|
+
export const WIKI_PLUGIN_GUIDE = urlJoin(GITHUB, 'wiki', 'Plugin-Development');
|
|
17
|
+
|
|
18
|
+
export const MANUAL_UPGRADE_URL = urlJoin(GITHUB, 'wiki', 'Upstream-Sync');
|
|
20
19
|
|
|
21
20
|
export const ABOUT = pkg.homepage;
|
|
22
21
|
export const FEEDBACK = pkg.bugs.url;
|
|
@@ -32,6 +31,5 @@ export const AGENTS_INDEX_GITHUB_ISSUE = urlJoin(AGENTS_INDEX_GITHUB, 'issues/ne
|
|
|
32
31
|
|
|
33
32
|
export const SESSION_CHAT_URL = (id: string = INBOX_SESSION_ID, mobile?: boolean) =>
|
|
34
33
|
mobile ? `/chat/mobile?session=${id}` : `/chat?session=${id}`;
|
|
35
|
-
export const MANUAL_UPGRADE_URL = 'https://github.com/lobehub/lobe-chat/wiki/Upstream-Sync';
|
|
36
34
|
|
|
37
35
|
export const imageUrl = (filename: string) => withBasePath(`/images/${filename}`);
|