@lobehub/chat 1.78.0 → 1.79.1
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/.github/workflows/sync-database-schema.yml +1 -1
- package/.github/workflows/wiki-sync.yml +2 -2
- package/CHANGELOG.md +50 -0
- package/changelog/v1.json +18 -0
- package/{contributing/Basic/Add-New-Authentication-Providers.md → docs/development/basic/add-new-authentication-providers.mdx} +0 -10
- package/{contributing/Basic/Add-New-Authentication-Providers.zh-CN.md → docs/development/basic/add-new-authentication-providers.zh-CN.mdx} +0 -10
- package/{contributing/Basic/Architecture.md → docs/development/basic/architecture.mdx} +0 -10
- package/{contributing/Basic/Architecture.zh-CN.md → docs/development/basic/architecture.zh-CN.mdx} +0 -10
- package/{contributing/Basic/Chat-API.md → docs/development/basic/chat-api.mdx} +6 -12
- package/{contributing/Basic/Chat-API.zh-CN.md → docs/development/basic/chat-api.zh-CN.mdx} +6 -12
- package/{contributing/Basic/Contributing-Guidelines.md → docs/development/basic/contributing-guidelines.mdx} +0 -14
- package/{contributing/Basic/Contributing-Guidelines.zh-CN.md → docs/development/basic/contributing-guidelines.zh-CN.mdx} +0 -14
- package/{contributing/Basic/Feature-Development-Frontend.md → docs/development/basic/feature-development-frontend.mdx} +0 -8
- package/{contributing/Basic/Feature-Development-Frontend.zh-CN.md → docs/development/basic/feature-development-frontend.zh-CN.mdx} +0 -8
- package/{contributing/Basic/Feature-Development.md → docs/development/basic/feature-development.mdx} +9 -10
- package/{contributing/Basic/Feature-Development.zh-CN.md → docs/development/basic/feature-development.zh-CN.mdx} +14 -15
- package/{contributing/Basic/Resources.md → docs/development/basic/resources.mdx} +0 -6
- package/{contributing/Basic/Resources.zh-CN.md → docs/development/basic/resources.zh-CN.mdx} +0 -6
- package/{contributing/Basic/Setup-Development.md → docs/development/basic/setup-development.mdx} +0 -7
- package/{contributing/Basic/Setup-Development.zh-CN.md → docs/development/basic/setup-development.zh-CN.mdx} +0 -7
- package/{contributing/Basic/Test.md → docs/development/basic/test.mdx} +3 -11
- package/{contributing/Basic/Test.zh-CN.md → docs/development/basic/test.zh-CN.mdx} +3 -11
- package/{contributing/Internationalization/Add-New-Locale.md → docs/development/internationalization/add-new-locale.mdx} +0 -8
- package/{contributing/Internationalization/Add-New-Locale.zh-CN.md → docs/development/internationalization/add-new-locale.zh-CN.mdx} +0 -8
- package/{contributing/Internationalization/Internationalization-Implementation.md → docs/development/internationalization/internationalization-implementation.mdx} +3 -11
- package/{contributing/Internationalization/Internationalization-Implementation.zh-CN.md → docs/development/internationalization/internationalization-implementation.zh-CN.mdx} +3 -11
- package/{contributing/Others/Lighthouse.md → docs/development/others/lighthouse.mdx} +8 -13
- package/{contributing/Others/Lighthouse.zh-CN.md → docs/development/others/lighthouse.zh-CN.mdx} +8 -13
- package/{contributing/Basic/Intro.md → docs/development/start.mdx} +6 -15
- package/{contributing/Basic/Intro.zh-CN.md → docs/development/start.zh-CN.mdx} +6 -15
- package/{contributing/State-Management/State-Management-Intro.md → docs/development/state-management/state-management-intro.mdx} +4 -9
- package/{contributing/State-Management/State-Management-Intro.zh-CN.md → docs/development/state-management/state-management-intro.zh-CN.mdx} +11 -16
- package/docs/wiki/HOME.md +11 -0
- package/package.json +2 -2
- package/scripts/dbmlWorkflow/index.ts +1 -1
- package/src/libs/agent-runtime/xai/index.test.ts +4 -0
- package/src/libs/agent-runtime/xai/index.ts +4 -0
- package/src/locales/default/tool.ts +10 -10
- package/src/server/modules/SearXNG.ts +7 -4
- package/src/server/routers/tools/search.ts +7 -5
- package/src/services/search.ts +1 -1
- package/src/store/chat/slices/builtinTool/actions/searXNG.test.ts +9 -9
- package/src/store/chat/slices/builtinTool/actions/searXNG.ts +7 -3
- package/src/tools/web-browsing/components/CategoryAvatar.tsx +1 -1
- package/src/tools/web-browsing/components/SearchBar.tsx +1 -3
- package/src/tools/web-browsing/const.ts +11 -11
- package/src/tools/web-browsing/index.ts +2 -2
- package/src/types/tool/search.ts +1 -1
- package/contributing/Home.md +0 -87
- package/contributing/Upstream-Sync.md +0 -58
- package/contributing/Upstream-Sync.zh-CN.md +0 -58
- package/contributing/_Footer.md +0 -1
- package/contributing/_Sidebar.md +0 -48
- /package/{contributing/Basic/Folder-Structure.md → docs/development/basic/folder-structure.mdx} +0 -0
- /package/{contributing/Basic/Folder-Structure.zh-CN.md → docs/development/basic/folder-structure.zh-CN.mdx} +0 -0
- /package/docs/{developer → development}/database-schema.dbml +0 -0
- /package/{contributing/State-Management/State-Management-Selectors.md → docs/development/state-management/state-management-selectors.mdx} +0 -0
- /package/{contributing/State-Management/State-Management-Selectors.zh-CN.md → docs/development/state-management/state-management-selectors.zh-CN.mdx} +0 -0
@@ -90,8 +90,8 @@ describe('searXNG actions', () => {
|
|
90
90
|
},
|
91
91
|
];
|
92
92
|
|
93
|
-
expect(
|
94
|
-
searchEngines: [
|
93
|
+
expect(searchService.search).toHaveBeenCalledWith('test query', {
|
94
|
+
searchEngines: ['google'],
|
95
95
|
});
|
96
96
|
expect(result.current.searchLoading[messageId]).toBe(false);
|
97
97
|
expect(result.current.internal_updateMessageContent).toHaveBeenCalledWith(
|
@@ -158,20 +158,20 @@ describe('searXNG actions', () => {
|
|
158
158
|
});
|
159
159
|
|
160
160
|
expect(searchService.search).toHaveBeenCalledTimes(3);
|
161
|
-
expect(searchService.search).toHaveBeenNthCalledWith(1,
|
162
|
-
|
163
|
-
|
161
|
+
expect(searchService.search).toHaveBeenNthCalledWith(1, 'test query', {
|
162
|
+
searchEngines: ['custom-engine'],
|
163
|
+
searchTimeRange: 'year',
|
164
164
|
});
|
165
|
-
expect(searchService.search).toHaveBeenNthCalledWith(2,
|
166
|
-
|
165
|
+
expect(searchService.search).toHaveBeenNthCalledWith(2, 'test query', {
|
166
|
+
searchTimeRange: 'year',
|
167
167
|
});
|
168
168
|
expect(result.current.updatePluginArguments).toHaveBeenCalledWith(messageId, {
|
169
169
|
optionalParams: {
|
170
|
-
|
170
|
+
searchTimeRange: 'year',
|
171
171
|
},
|
172
172
|
query: 'test query',
|
173
173
|
});
|
174
|
-
expect(searchService.search).toHaveBeenNthCalledWith(3,
|
174
|
+
expect(searchService.search).toHaveBeenNthCalledWith(3, 'test query');
|
175
175
|
expect(result.current.updatePluginArguments).toHaveBeenCalledWith(messageId, {
|
176
176
|
optionalParams: undefined,
|
177
177
|
query: 'test query',
|
@@ -146,13 +146,17 @@ export const searchSlice: StateCreator<
|
|
146
146
|
data = await searchService.search(params.query, params.optionalParams);
|
147
147
|
|
148
148
|
// 如果没有搜索到结果,则执行第一次重试(移除搜索引擎限制)
|
149
|
-
if (
|
149
|
+
if (
|
150
|
+
data?.results.length === 0 &&
|
151
|
+
params.optionalParams?.searchEngines &&
|
152
|
+
params.optionalParams?.searchEngines?.length > 0
|
153
|
+
) {
|
150
154
|
const paramsExcludeSearchEngines = {
|
151
155
|
...params,
|
152
156
|
optionalParams: {
|
153
157
|
...params.optionalParams,
|
154
|
-
searchEngines: undefined
|
155
|
-
}
|
158
|
+
searchEngines: undefined,
|
159
|
+
},
|
156
160
|
};
|
157
161
|
data = await searchService.search(params.query, paramsExcludeSearchEngines.optionalParams);
|
158
162
|
get().updatePluginArguments(id, paramsExcludeSearchEngines);
|
@@ -191,9 +191,7 @@ const SearchBar = memo<SearchBarProps>(
|
|
191
191
|
)}
|
192
192
|
|
193
193
|
<Flexbox align={'center'} gap={16} horizontal wrap={'wrap'}>
|
194
|
-
<Typography.Text type={'secondary'}>
|
195
|
-
{t('search.searchTimeRange.title')}
|
196
|
-
</Typography.Text>
|
194
|
+
<Typography.Text type={'secondary'}>{t('search.searchTimeRange.title')}</Typography.Text>
|
197
195
|
<Radio.Group
|
198
196
|
onChange={(e) => setTimeRange(e.target.value)}
|
199
197
|
optionType="button"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import {
|
2
2
|
CodeIcon,
|
3
3
|
FileIcon,
|
4
4
|
FlaskConicalIcon,
|
@@ -12,16 +12,16 @@ import {
|
|
12
12
|
} from 'lucide-react';
|
13
13
|
|
14
14
|
export const CATEGORY_ICON_MAP: Record<string, any> = {
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
15
|
+
files: FileIcon,
|
16
|
+
general: SearchIcon,
|
17
|
+
images: ImageIcon,
|
18
|
+
it: CodeIcon,
|
19
|
+
map: MapIcon,
|
20
|
+
music: MusicIcon,
|
21
|
+
news: NewspaperIcon,
|
22
|
+
science: FlaskConicalIcon,
|
23
|
+
social_media: Share2Icon,
|
24
|
+
videos: VideoIcon,
|
25
25
|
};
|
26
26
|
|
27
27
|
export const ENGINE_ICON_MAP: Record<string, string> = {
|
@@ -19,7 +19,7 @@ export const WebBrowsingManifest: BuiltinToolManifest = {
|
|
19
19
|
parameters: {
|
20
20
|
properties: {
|
21
21
|
optionalParams: {
|
22
|
-
description:
|
22
|
+
description: 'The optional parameters for search query',
|
23
23
|
properties: {
|
24
24
|
searchCategories: {
|
25
25
|
description: 'The search categories you can set:',
|
@@ -68,7 +68,7 @@ export const WebBrowsingManifest: BuiltinToolManifest = {
|
|
68
68
|
type: 'array',
|
69
69
|
},
|
70
70
|
searchTimeRange: {
|
71
|
-
description:
|
71
|
+
description: 'The time range you can set:',
|
72
72
|
enum: ['anytime', 'day', 'week', 'month', 'year'],
|
73
73
|
type: 'string',
|
74
74
|
},
|
package/src/types/tool/search.ts
CHANGED
package/contributing/Home.md
DELETED
@@ -1,87 +0,0 @@
|
|
1
|
-
<div align="center">
|
2
|
-
|
3
|
-
<img height="120" src="https://registry.npmmirror.com/@lobehub/assets-logo/1.0.0/files/assets/logo-3d.webp">
|
4
|
-
<img height="120" src="https://gw.alipayobjects.com/zos/kitchen/qJ3l3EPsdW/split.svg">
|
5
|
-
<img height="120" src="https://registry.npmmirror.com/@lobehub/assets-emoji/1.3.0/files/assets/robot.webp">
|
6
|
-
|
7
|
-
<h1>Lobe Chat Contributing Wiki</h1>
|
8
|
-
|
9
|
-
LobeChat is an open-source, extensible ([Function Calling][fc-url]), high-performance chatbot framework. <br/> It supports one-click free deployment of your private ChatGPT/LLM web application.
|
10
|
-
|
11
|
-
[Usage Documents](https://lobehub.com/docs) | [使用指南](https://lobehub.com/docs)
|
12
|
-
|
13
|
-
</div>
|
14
|
-
|
15
|
-

|
16
|
-
|
17
|
-
<!-- DOCS LIST -->
|
18
|
-
|
19
|
-
### 🤯 Basic
|
20
|
-
|
21
|
-
- [Architecture Design](https://github.com/lobehub/lobe-chat/wiki/Architecture) | [架构设计](https://github.com/lobehub/lobe-chat/wiki/Architecture.zh-CN)
|
22
|
-
- [Development Environment Setup Guide](https://github.com/lobehub/lobe-chat/wiki/Setup-Development) | [配置开发环境指南](https://github.com/lobehub/lobe-chat/wiki/Setup-Development.zh-CN)
|
23
|
-
- [Project Directory Structure](https://github.com/lobehub/lobe-chat/wiki/Folder-Structure) | [项目目录架构](https://github.com/lobehub/lobe-chat/wiki/Folder-Structure.zh-CN)
|
24
|
-
- [Technical Development Getting Started Guide](https://github.com/lobehub/lobe-chat/wiki/Intro) | [技术开发上手指南](https://github.com/lobehub/lobe-chat/wiki/Intro.zh-CN)
|
25
|
-
- [Code Style and Contribution Guidelines](https://github.com/lobehub/lobe-chat/wiki/Contributing-Guidelines) | [代码风格与贡献指南](https://github.com/lobehub/lobe-chat/wiki/Contributing-Guidelines.zh-CN)
|
26
|
-
- [How to Develop a New Feature](https://github.com/lobehub/lobe-chat/wiki/Feature-Development-Frontend) | [如何开发一个新功能:前端实现](https://github.com/lobehub/lobe-chat/wiki/Feature-Development-Frontend.zh-CN)
|
27
|
-
- [Complete Guide to LobeChat Feature Development](https://github.com/lobehub/lobe-chat/wiki/Feature-Development) | [LobeChat 功能开发完全指南](https://github.com/lobehub/lobe-chat/wiki/Feature-Development.zh-CN)
|
28
|
-
- [Conversation API Implementation Logic](https://github.com/lobehub/lobe-chat/wiki/Chat-API) | [会话 API 实现逻辑](https://github.com/lobehub/lobe-chat/wiki/Chat-API.zh-CN)
|
29
|
-
- [New Authentication Provider Guide](https://github.com/lobehub/lobe-chat/wiki/Add-New-Authentication-Providers) | [新身份验证方式开发指南](https://github.com/lobehub/lobe-chat/wiki/Add-New-Authentication-Providers.zh-CN)
|
30
|
-
- [Testing Guide](https://github.com/lobehub/lobe-chat/wiki/Test) | [测试指南](https://github.com/lobehub/lobe-chat/wiki/Test.zh-CN)
|
31
|
-
- [Resources and References](https://github.com/lobehub/lobe-chat/wiki/Resources) | [资源与参考](https://github.com/lobehub/lobe-chat/wiki/Resources.zh-CN)
|
32
|
-
|
33
|
-
<br/>
|
34
|
-
|
35
|
-
### 🌎 Internationalization
|
36
|
-
|
37
|
-
- [Internationalization Implementation Guide](https://github.com/lobehub/lobe-chat/wiki/Internationalization-Implementation) | [国际化实现指南](https://github.com/lobehub/lobe-chat/wiki/Internationalization-Implementation.zh-CN)
|
38
|
-
- [New Locale Guide](https://github.com/lobehub/lobe-chat/wiki/Add-New-Locale) | [新语种添加指南](https://github.com/lobehub/lobe-chat/wiki/Add-New-Locale.zh-CN)
|
39
|
-
|
40
|
-
<br/>
|
41
|
-
|
42
|
-
### ⌨️ State Management
|
43
|
-
|
44
|
-
- [Best Practices for State Management](https://github.com/lobehub/lobe-chat/wiki/State-Management-Intro) | [状态管理最佳实践](https://github.com/lobehub/lobe-chat/wiki/State-Management-Intro.zh-CN)
|
45
|
-
- [Data Store Selector](https://github.com/lobehub/lobe-chat/wiki/State-Management-Selectors) | [数据存储取数模块](https://github.com/lobehub/lobe-chat/wiki/State-Management-Selectors.zh-CN)
|
46
|
-
|
47
|
-
<br/>
|
48
|
-
|
49
|
-
### 🤖 Agents
|
50
|
-
|
51
|
-
- [Agent Index and Submit](https://github.com/lobehub/lobe-chat-agents) | [助手索引与提交](https://github.com/lobehub/lobe-chat-agents/blob/main/README.zh-CN.md)
|
52
|
-
|
53
|
-
<br/>
|
54
|
-
|
55
|
-
### 🧩 Plugins
|
56
|
-
|
57
|
-
- [Plugin Index and Submit](https://github.com/lobehub/lobe-chat-plugins) | [插件索引与提交](https://github.com/lobehub/lobe-chat-plugins/blob/main/README.zh-CN.md)
|
58
|
-
- [Plugin SDK Docs](https://chat-plugin-sdk.lobehub.com) | [插件 SDK 文档](https://chat-plugin-sdk.lobehub.com)
|
59
|
-
|
60
|
-
<br/>
|
61
|
-
|
62
|
-
### 📊 Others
|
63
|
-
|
64
|
-
- [Lighthouse Reports](https://github.com/lobehub/lobe-chat/wiki/Lighthouse) | [Lighthouse 测试报告](https://github.com/lobehub/lobe-chat/wiki/Lighthouse.zh-CN)
|
65
|
-
|
66
|
-
<br/>
|
67
|
-
|
68
|
-
<!-- DOCS LIST -->
|
69
|
-
|
70
|
-
---
|
71
|
-
|
72
|
-
<details><summary><h4>📝 License</h4></summary>
|
73
|
-
|
74
|
-
[![][fossa-license-shield]][fossa-license-url]
|
75
|
-
|
76
|
-
</details>
|
77
|
-
|
78
|
-
Copyright © 2023 [LobeHub][profile-url]. <br />
|
79
|
-
This project is [MIT][license-url] licensed.
|
80
|
-
|
81
|
-
<!-- LINK GROUP -->
|
82
|
-
|
83
|
-
[fc-url]: https://sspai.com/post/81986
|
84
|
-
[fossa-license-shield]: https://app.fossa.com/api/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat.svg?type=large
|
85
|
-
[fossa-license-url]: https://app.fossa.com/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat
|
86
|
-
[license-url]: https://github.com/lobehub/lobe-chat/blob/main/LICENSE
|
87
|
-
[profile-url]: https://github.com/lobehub
|
@@ -1,58 +0,0 @@
|
|
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.
|
@@ -1,58 +0,0 @@
|
|
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/contributing/_Footer.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
This is the **🤯 / 🤖 Lobe Chat** wiki. [Wiki Home](https://github.com/lobehub/lobe-chat/wiki)
|
package/contributing/_Sidebar.md
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
## Lobe Chat Contributing Wiki
|
2
|
-
|
3
|
-
#### 🏠 Home
|
4
|
-
|
5
|
-
- [TOC](Home.md) | [目录](Home.md)
|
6
|
-
|
7
|
-
<!-- DOCS LIST -->
|
8
|
-
|
9
|
-
#### 🤯 Basic
|
10
|
-
|
11
|
-
- [Architecture Design](https://github.com/lobehub/lobe-chat/wiki/Architecture) | [架构设计](https://github.com/lobehub/lobe-chat/wiki/Architecture.zh-CN)
|
12
|
-
- [Code Style and Contribution Guidelines](https://github.com/lobehub/lobe-chat/wiki/Contributing-Guidelines) | [代码风格与贡献指南](https://github.com/lobehub/lobe-chat/wiki/Contributing-Guidelines.zh-CN)
|
13
|
-
- [Complete Guide to LobeChat Feature Development](https://github.com/lobehub/lobe-chat/wiki/Feature-Development) | [LobeChat 功能开发完全指南](https://github.com/lobehub/lobe-chat/wiki/Feature-Development.zh-CN)
|
14
|
-
- [Conversation API Implementation Logic](https://github.com/lobehub/lobe-chat/wiki/Chat-API) | [会话 API 实现逻辑](https://github.com/lobehub/lobe-chat/wiki/Chat-API.zh-CN)
|
15
|
-
- [Directory Structure](https://github.com/lobehub/lobe-chat/wiki/Folder-Structure) | [目录架构](https://github.com/lobehub/lobe-chat/wiki/Folder-Structure.zh-CN)
|
16
|
-
- [Environment Setup Guide](https://github.com/lobehub/lobe-chat/wiki/Setup-Development) | [环境设置指南](https://github.com/lobehub/lobe-chat/wiki/Setup-Development.zh-CN)
|
17
|
-
- [How to Develop a New Feature](https://github.com/lobehub/lobe-chat/wiki/Feature-Development-Frontend) | [如何开发一个新功能:前端实现](https://github.com/lobehub/lobe-chat/wiki/Feature-Development-Frontend.zh-CN)
|
18
|
-
- [New Authentication Provider Guide](https://github.com/lobehub/lobe-chat/wiki/Add-New-Authentication-Providers) | [新身份验证方式开发指南](https://github.com/lobehub/lobe-chat/wiki/Add-New-Authentication-Providers.zh-CN)
|
19
|
-
- [Resources and References](https://github.com/lobehub/lobe-chat/wiki/Resources) | [资源与参考](https://github.com/lobehub/lobe-chat/wiki/Resources.zh-CN)
|
20
|
-
- [Technical Development Getting Started Guide](https://github.com/lobehub/lobe-chat/wiki/Intro) | [技术开发上手指南](https://github.com/lobehub/lobe-chat/wiki/Intro.zh-CN)
|
21
|
-
- [Testing Guide](https://github.com/lobehub/lobe-chat/wiki/Test) | [测试指南](https://github.com/lobehub/lobe-chat/wiki/Test.zh-CN)
|
22
|
-
|
23
|
-
#### 🌎 Internationalization
|
24
|
-
|
25
|
-
- [Internationalization Implementation Guide](https://github.com/lobehub/lobe-chat/wiki/Internationalization-Implementation) | [国际化实现指南](https://github.com/lobehub/lobe-chat/wiki/Internationalization-Implementation.zh-CN)
|
26
|
-
- [New Locale Guide](https://github.com/lobehub/lobe-chat/wiki/Add-New-Locale) | [新语种添加指南](https://github.com/lobehub/lobe-chat/wiki/Add-New-Locale.zh-CN)
|
27
|
-
|
28
|
-
#### ⌨️ State Management
|
29
|
-
|
30
|
-
- [Best Practices for State Management](https://github.com/lobehub/lobe-chat/wiki/State-Management-Intro) | [状态管理最佳实践](https://github.com/lobehub/lobe-chat/wiki/State-Management-Intro.zh-CN)
|
31
|
-
- [Data Store Selector](https://github.com/lobehub/lobe-chat/wiki/State-Management-Selectors) | [数据存储取数模块](https://github.com/lobehub/lobe-chat/wiki/State-Management-Selectors.zh-CN)
|
32
|
-
|
33
|
-
#### 🤖 Agents
|
34
|
-
|
35
|
-
- [Agent Index and Submit](https://github.com/lobehub/lobe-chat-agents) | [助手索引与提交](https://github.com/lobehub/lobe-chat-agents/blob/main/README.zh-CN.md)
|
36
|
-
|
37
|
-
#### 🧩 Plugins
|
38
|
-
|
39
|
-
- [Plugin Index and Submit](https://github.com/lobehub/lobe-chat-plugins) | [插件索引与提交](https://github.com/lobehub/lobe-chat-plugins/blob/main/README.zh-CN.md)
|
40
|
-
- [Plugin SDK Docs](https://chat-plugin-sdk.lobehub.com) | [插件 SDK 文档](https://chat-plugin-sdk.lobehub.com)
|
41
|
-
|
42
|
-
#### 📊 Others
|
43
|
-
|
44
|
-
- [Lighthouse Reports](https://github.com/lobehub/lobe-chat/wiki/Lighthouse) | [Lighthouse 测试报告](https://github.com/lobehub/lobe-chat/wiki/Lighthouse.zh-CN)
|
45
|
-
|
46
|
-
<!-- DOCS LIST -->
|
47
|
-
|
48
|
-
<!-- LINK GROUP -->
|
/package/{contributing/Basic/Folder-Structure.md → docs/development/basic/folder-structure.mdx}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|