@lobehub/chat 1.11.2 → 1.11.3
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/docs/self-hosting/server-database/vercel.mdx +78 -75
- package/docs/self-hosting/start.zh-CN.mdx +2 -2
- package/docs/usage/providers/siliconcloud.mdx +4 -3
- package/docs/usage/providers/siliconcloud.zh-CN.mdx +0 -1
- package/locales/ar/components.json +60 -0
- package/locales/bg-BG/components.json +60 -0
- package/locales/de-DE/components.json +60 -0
- package/locales/en-US/components.json +60 -0
- package/locales/es-ES/components.json +60 -0
- package/locales/fr-FR/components.json +60 -0
- package/locales/it-IT/components.json +60 -0
- package/locales/ja-JP/components.json +60 -0
- package/locales/ko-KR/components.json +60 -0
- package/locales/nl-NL/components.json +60 -0
- package/locales/pl-PL/components.json +60 -0
- package/locales/pt-BR/components.json +60 -0
- package/locales/ru-RU/components.json +60 -0
- package/locales/tr-TR/components.json +60 -0
- package/locales/vi-VN/components.json +60 -0
- package/locales/zh-CN/components.json +60 -0
- package/locales/zh-TW/components.json +60 -0
- package/package.json +1 -1
- package/src/app/(main)/settings/_layout/Desktop/SideBar.tsx +3 -22
- package/src/components/FileIcon/config.ts +12 -0
- package/src/components/FileIcon/index.tsx +30 -0
- package/src/components/FunctionModal/createModalHooks.ts +46 -0
- package/src/components/FunctionModal/index.ts +1 -0
- package/src/components/FunctionModal/style.tsx +39 -0
- package/src/components/GoBack/index.tsx +46 -0
- package/src/components/PanelTitle/index.tsx +41 -0
- package/src/components/RepoIcon/index.tsx +22 -0
- package/src/components/SidebarHeader/index.tsx +4 -2
- package/src/components/TipGuide/index.tsx +150 -0
- package/src/database/client/models/message.ts +5 -0
- package/src/features/Conversation/Messages/Default.tsx +1 -2
- package/src/libs/agent-runtime/AgentRuntime.ts +9 -2
- package/src/libs/agent-runtime/BaseAI.ts +14 -1
- package/src/libs/agent-runtime/qwen/index.ts +3 -4
- package/src/libs/agent-runtime/types/embeddings.ts +43 -0
- package/src/libs/agent-runtime/types/index.ts +1 -0
- package/src/libs/agent-runtime/utils/openaiCompatibleFactory/index.ts +25 -2
- package/src/libs/langchain/file.ts +29 -0
- package/src/libs/langchain/index.ts +1 -0
- package/src/libs/langchain/loaders/code/__tests__/index.test.ts +34 -0
- package/src/libs/langchain/loaders/code/__tests__/long.json +250 -0
- package/src/libs/langchain/loaders/code/__tests__/long.txt +885 -0
- package/src/libs/langchain/loaders/code/index.ts +15 -0
- package/src/libs/langchain/loaders/config.ts +6 -0
- package/src/libs/langchain/loaders/docx/index.ts +13 -0
- package/src/libs/langchain/loaders/index.ts +98 -0
- package/src/libs/langchain/loaders/markdown/__tests__/demo.mdx +325 -0
- package/src/libs/langchain/loaders/markdown/__tests__/index.test.ts +13 -0
- package/src/libs/langchain/loaders/markdown/index.ts +9 -0
- package/src/libs/langchain/loaders/pdf/index.ts +7 -0
- package/src/libs/langchain/loaders/pptx/index.ts +7 -0
- package/src/libs/langchain/loaders/txt/__tests__/index.test.ts +54 -0
- package/src/libs/langchain/loaders/txt/__tests__/long.json +38 -0
- package/src/libs/langchain/loaders/txt/__tests__/pg24022.txt +83 -0
- package/src/libs/langchain/loaders/txt/index.ts +9 -0
- package/src/libs/langchain/types.ts +1 -0
- package/src/libs/unstructured/__tests__/fixtures/image-parse/fast-partition-none-output.json +3258 -0
- package/src/libs/unstructured/__tests__/fixtures/image-parse/fast-partition-none-raw.json +3255 -0
- package/src/libs/unstructured/__tests__/fixtures/table-parse/auto-partition-basic-output.json +347 -0
- package/src/libs/unstructured/__tests__/fixtures/table-parse/auto-partition-basic-raw.json +131 -0
- package/src/libs/unstructured/__tests__/fixtures/table-parse/auto-partition-raw.json +276 -0
- package/src/libs/unstructured/__tests__/fixtures/table-parse/fast-partition-basic-output.json +1865 -0
- package/src/libs/unstructured/__tests__/fixtures/table-parse/fast-partition-basic-raw.json +111 -0
- package/src/libs/unstructured/__tests__/fixtures/table-parse/fast-partition-raw.json +1892 -0
- package/src/libs/unstructured/__tests__/index.test.ts +165 -0
- package/src/libs/unstructured/index.ts +166 -0
- package/src/locales/default/components.ts +62 -0
- package/src/utils/colorUtils.ts +19 -0
- package/src/utils/sleep.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 1.11.3](https://github.com/lobehub/lobe-chat/compare/v1.11.2...v1.11.3)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-08-17**</sup>
|
|
8
|
+
|
|
9
|
+
#### ♻ Code Refactoring
|
|
10
|
+
|
|
11
|
+
- **misc**: Refactor PanelTitle and move commit from file uploading.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Code refactoring
|
|
19
|
+
|
|
20
|
+
- **misc**: Refactor PanelTitle and move commit from file uploading, closes [#3491](https://github.com/lobehub/lobe-chat/issues/3491) ([d03d9f6](https://github.com/lobehub/lobe-chat/commit/d03d9f6))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 1.11.2](https://github.com/lobehub/lobe-chat/compare/v1.11.1...v1.11.2)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2024-08-17**</sup>
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Deploy LobeChat with database on Vercel
|
|
3
3
|
description: >-
|
|
4
|
-
Learn how to deploy LobeChat with database on Vercel with ease, including:
|
|
5
|
-
database, authentication and S3 storage service.
|
|
4
|
+
Learn how to deploy LobeChat with database on Vercel with ease, including: database, authentication and S3 storage service.
|
|
6
5
|
tags:
|
|
7
6
|
- Deploy LobeChat
|
|
8
7
|
- Vercel Deployment
|
|
@@ -44,55 +43,64 @@ In Vercel's deployment environment variables, add `DATABASE_URL` and other envir
|
|
|
44
43
|
|
|
45
44
|
<Tab>
|
|
46
45
|
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
<Callout type={'warning'}>
|
|
47
|
+
Please confirm the `Postgres` type provided by your vendor. If it is `Node Postgres`, switch to
|
|
48
|
+
the `Node Postgres` Tab.
|
|
49
49
|
</Callout>
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
Variables to be filled for Serverless Postgres are as follows:
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
```shell
|
|
54
|
+
# Serverless Postgres DB Url
|
|
55
|
+
DATABASE_URL=
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
# Specify service mode as server, otherwise it will not enter the server-side database
|
|
58
|
+
NEXT_PUBLIC_SERVICE_MODE=server
|
|
59
|
+
```
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
An example of filling in Vercel is as follows:
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
<Image
|
|
64
|
+
alt={'Add Serverless Postgres DATABASE_URL'}
|
|
65
|
+
src={'https://github.com/lobehub/lobe-chat/assets/28616219/d4a710cd-6404-4196-90d0-cd08ca385074'}
|
|
66
|
+
/>
|
|
64
67
|
|
|
65
68
|
</Tab>
|
|
66
69
|
|
|
67
70
|
<Tab>
|
|
68
71
|
Variables to be filled for Node Postgres are as follows:
|
|
69
72
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
+
```shell
|
|
74
|
+
# Node Postgres DB Url
|
|
75
|
+
DATABASE_URL=
|
|
73
76
|
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
# Specify Postgres database driver as node
|
|
78
|
+
DATABASE_DRIVER=node
|
|
76
79
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
# Specify service mode as server, otherwise it will not enter the server-side database
|
|
81
|
+
NEXT_PUBLIC_SERVICE_MODE=server
|
|
82
|
+
```
|
|
80
83
|
|
|
81
|
-
|
|
84
|
+
An example of filling in Vercel is as follows:
|
|
82
85
|
|
|
83
|
-
|
|
86
|
+
<Image
|
|
87
|
+
alt={'Add Node Postgres DATABASE_URL'}
|
|
88
|
+
src={'https://github.com/lobehub/lobe-chat/assets/28616219/1c689738-809b-4199-b305-ba5770d39da7'}
|
|
89
|
+
/>
|
|
84
90
|
|
|
85
91
|
</Tab>
|
|
86
92
|
|
|
87
93
|
</Tabs>
|
|
88
94
|
|
|
89
95
|
<Callout type={'info'}>
|
|
90
|
-
If you wish to enable SSL when connecting to the database, please refer to the
|
|
96
|
+
If you wish to enable SSL when connecting to the database, please refer to the
|
|
97
|
+
[link](https://stackoverflow.com/questions/14021998/using-psql-to-connect-to-postgresql-in-ssl-mode)
|
|
98
|
+
for setup instructions.
|
|
91
99
|
</Callout>
|
|
92
100
|
|
|
93
101
|
### Add the `KEY_VAULTS_SECRET` Environment Variable
|
|
94
102
|
|
|
95
|
-
After adding the
|
|
103
|
+
After adding the DATABASE_URL environment variable for the database, you need to add a `KEY_VAULTS_SECRET` environment variable. This variable is used to encrypt sensitive information such as apikeys stored by users. You can generate a random 32-character string as the key using `openssl rand -base64 32`.
|
|
96
104
|
|
|
97
105
|
```shell
|
|
98
106
|
KEY_VAULTS_SECRET=jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk=
|
|
@@ -110,10 +118,11 @@ The server-side database needs to be paired with a user authentication service t
|
|
|
110
118
|
|
|
111
119
|
### Prepare Clerk Authentication Service
|
|
112
120
|
|
|
113
|
-
Go to [Clerk](https://clerk.com?utm_source=lobehub
|
|
121
|
+
Go to [Clerk](https://clerk.com?utm_source=lobehub&utm_medium=docs) to register and create an application to obtain the corresponding Public Key and Secret Key.
|
|
114
122
|
|
|
115
123
|
<Callout type={'info'}>
|
|
116
|
-
If you are not familiar with Clerk, you can refer to [Authentication
|
|
124
|
+
If you are not familiar with Clerk, you can refer to [Authentication
|
|
125
|
+
Service-Clerk](/en/docs/self-hosting/advanced/authentication#clerk) for details on using Clerk.
|
|
117
126
|
</Callout>
|
|
118
127
|
|
|
119
128
|
### Add Public and Private Key Environment Variables in Vercel
|
|
@@ -121,11 +130,9 @@ If you are not familiar with Clerk, you can refer to [Authentication Service-Cle
|
|
|
121
130
|
In Vercel's deployment environment variables, add the `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` and `CLERK_SECRET_KEY` environment variables. You can click on "API Keys" in the menu, then copy the corresponding values and paste them into Vercel's environment variables.
|
|
122
131
|
|
|
123
132
|
<Image
|
|
124
|
-
alt={'Find the corresponding public and private key environment variables in Clerk'}
|
|
125
|
-
src={'https://github.com/lobehub/lobe-chat/assets/28616219/89883703-7a1a-4a11-b944-5d804544e57c'}
|
|
126
|
-
|
|
127
|
-
>
|
|
128
|
-
</Image>
|
|
133
|
+
alt={'Find the corresponding public and private key environment variables in Clerk'}
|
|
134
|
+
src={'https://github.com/lobehub/lobe-chat/assets/28616219/89883703-7a1a-4a11-b944-5d804544e57c'}
|
|
135
|
+
/>
|
|
129
136
|
|
|
130
137
|
The environment variables required for this step are as follows:
|
|
131
138
|
|
|
@@ -137,11 +144,9 @@ CLERK_SECRET_KEY=sk_live_xxxxxxxxxxxxxxxxxxxxxx
|
|
|
137
144
|
Add the above variables to Vercel:
|
|
138
145
|
|
|
139
146
|
<Image
|
|
140
|
-
alt={'Add Clerk public and private key environment variables in Vercel'}
|
|
141
|
-
src={'https://github.com/lobehub/lobe-chat/assets/28616219/2bfa13df-6e20-4768-97c0-4dad06c85a2f'}
|
|
142
|
-
|
|
143
|
-
>
|
|
144
|
-
</Image>
|
|
147
|
+
alt={'Add Clerk public and private key environment variables in Vercel'}
|
|
148
|
+
src={'https://github.com/lobehub/lobe-chat/assets/28616219/2bfa13df-6e20-4768-97c0-4dad06c85a2f'}
|
|
149
|
+
/>
|
|
145
150
|
|
|
146
151
|
### Create and Configure Webhook in Clerk
|
|
147
152
|
|
|
@@ -150,21 +155,22 @@ Since we let Clerk fully handle user authentication and management, we need Cler
|
|
|
150
155
|
We need to add an endpoint in Clerk's Webhooks to inform Clerk to send notifications to this endpoint when a user's information changes.
|
|
151
156
|
|
|
152
157
|
<Image
|
|
153
|
-
alt={'Add Webhooks endpoint in Clerk'}
|
|
154
|
-
src={'https://github.com/lobehub/lobe-chat/assets/28616219/f50f47fb-5e8e-4930-bf4e-8cf6f5b8afb9'}
|
|
155
|
-
|
|
156
|
-
>
|
|
157
|
-
</Image>
|
|
158
|
+
alt={'Add Webhooks endpoint in Clerk'}
|
|
159
|
+
src={'https://github.com/lobehub/lobe-chat/assets/28616219/f50f47fb-5e8e-4930-bf4e-8cf6f5b8afb9'}
|
|
160
|
+
/>
|
|
158
161
|
|
|
159
162
|
Fill in the endpoint with the URL of your Vercel project, such as `https://your-project.vercel.app/api/webhooks/clerk`. Then, subscribe to events by checking the three user events (`user.created`, `user.deleted`, `user.updated`), and click create.
|
|
160
163
|
|
|
161
|
-
<Callout type={'warning'}>
|
|
164
|
+
<Callout type={'warning'}>
|
|
165
|
+
The `https://` in the URL is essential to maintain the integrity of the URL.
|
|
166
|
+
</Callout>
|
|
162
167
|
|
|
163
168
|
<Image
|
|
164
169
|
alt={'Configure URL and user events when adding Clerk Webhooks'}
|
|
165
170
|
src={'https://github.com/lobehub/lobe-chat/assets/28616219/0249ea56-ab17-4aa9-a56c-9ebd556c2645'}>
|
|
166
171
|
|
|
167
172
|
>
|
|
173
|
+
|
|
168
174
|
</Image>
|
|
169
175
|
|
|
170
176
|
### Add Webhook Secret to Vercel Environment Variables
|
|
@@ -176,6 +182,7 @@ alt={'View Clerk Webhooks secret'}
|
|
|
176
182
|
src={'https://github.com/lobehub/lobe-chat/assets/28616219/fab4abb2-584b-49de-9340-813382951635'}>
|
|
177
183
|
|
|
178
184
|
>
|
|
185
|
+
|
|
179
186
|
</Image>
|
|
180
187
|
|
|
181
188
|
The environment variable corresponding to this secret is `CLERK_WEBHOOK_SECRET`:
|
|
@@ -187,11 +194,9 @@ CLERK_WEBHOOK_SECRET=whsec_xxxxxxxxxxxxxxxxxxxxxx
|
|
|
187
194
|
Add it to Vercel's environment variables:
|
|
188
195
|
|
|
189
196
|
<Image
|
|
190
|
-
alt={'Add Clerk Webhooks secret in Vercel'}
|
|
191
|
-
src={'https://github.com/lobehub/lobe-chat/assets/28616219/5fdc9479-007f-46ab-9d6e-a9603e949116'}
|
|
192
|
-
|
|
193
|
-
>
|
|
194
|
-
</Image>
|
|
197
|
+
alt={'Add Clerk Webhooks secret in Vercel'}
|
|
198
|
+
src={'https://github.com/lobehub/lobe-chat/assets/28616219/5fdc9479-007f-46ab-9d6e-a9603e949116'}
|
|
199
|
+
/>
|
|
195
200
|
|
|
196
201
|
</Steps>
|
|
197
202
|
|
|
@@ -202,7 +207,9 @@ By completing these steps, you have successfully configured the Clerk authentica
|
|
|
202
207
|
In the server-side database, we need to configure the S3 storage service to store files.
|
|
203
208
|
|
|
204
209
|
<Callout type={'info'}>
|
|
205
|
-
In this article, S3 refers to a compatible S3 storage solution, which supports object storage
|
|
210
|
+
In this article, S3 refers to a compatible S3 storage solution, which supports object storage
|
|
211
|
+
systems that comply with the Amazon S3 API. Common examples include Cloudflare R2, Alibaba Cloud
|
|
212
|
+
OSS, etc., all of which support S3-compatible APIs.
|
|
206
213
|
</Callout>
|
|
207
214
|
|
|
208
215
|
<Steps>
|
|
@@ -216,13 +223,14 @@ The interface of Cloudflare R2 is shown below:
|
|
|
216
223
|
<Image
|
|
217
224
|
alt={'Cloudflare R2 Storage Interface'}
|
|
218
225
|
src={'https://github.com/lobehub/lobe-chat/assets/28616219/41f7f677-0153-4a96-b849-5ac9b7ebefee'}
|
|
219
|
-
|
|
226
|
+
/>
|
|
220
227
|
|
|
221
228
|
When creating a storage bucket, specify its name and then click create.
|
|
229
|
+
|
|
222
230
|
<Image
|
|
223
231
|
alt={'Create Storage Bucket in R2'}
|
|
224
232
|
src={'https://github.com/lobehub/lobe-chat/assets/28616219/9c0d184c-3169-40fa-9115-011cfffb9ca7'}
|
|
225
|
-
|
|
233
|
+
/>
|
|
226
234
|
|
|
227
235
|
### Obtain Environment Variables for the Bucket
|
|
228
236
|
|
|
@@ -231,7 +239,7 @@ In the settings of the R2 storage bucket, you can view the bucket configuration
|
|
|
231
239
|
<Image
|
|
232
240
|
alt={'View Storage Bucket Information'}
|
|
233
241
|
src={'https://github.com/lobehub/lobe-chat/assets/28616219/2ceb210c-eca0-4439-ba27-8734d4ebb3ee'}
|
|
234
|
-
|
|
242
|
+
/>
|
|
235
243
|
|
|
236
244
|
The corresponding environment variables are:
|
|
237
245
|
|
|
@@ -244,7 +252,9 @@ S3_ENDPOINT=https://0b33a03b5c993fd2f453379dc36558e5.r2.cloudflarestorage.com
|
|
|
244
252
|
NEXT_PUBLIC_S3_DOMAIN=https://s3-for-lobechat.your-domain.com
|
|
245
253
|
```
|
|
246
254
|
|
|
247
|
-
<Callout type={'warning'}
|
|
255
|
+
<Callout type={'warning'}>
|
|
256
|
+
`S3_ENDPOINT` must have its path removed, otherwise uploaded files will not be accessible
|
|
257
|
+
</Callout>
|
|
248
258
|
|
|
249
259
|
### Obtain S3 Key Environment Variables
|
|
250
260
|
|
|
@@ -253,28 +263,28 @@ You need to obtain the access key for S3 so that the LobeChat server has permiss
|
|
|
253
263
|
<Image
|
|
254
264
|
alt={'View Storage Bucket Access Key'}
|
|
255
265
|
src={'https://github.com/lobehub/lobe-chat/assets/28616219/be0c95c0-6693-44ee-a490-7e8dfaa8b34d'}
|
|
256
|
-
|
|
266
|
+
/>
|
|
257
267
|
|
|
258
268
|
Click the button in the upper right corner to create an API token and enter the create API Token page.
|
|
259
269
|
|
|
260
270
|
<Image
|
|
261
271
|
alt={'Create Corresponding API Token'}
|
|
262
272
|
src={'https://github.com/lobehub/lobe-chat/assets/28616219/7b0ea46c-5157-40a8-888f-f47664a4884f'}
|
|
263
|
-
|
|
273
|
+
/>
|
|
264
274
|
|
|
265
275
|
Since our server-side database needs to read and write to the S3 storage service, the permission needs to be set to `Object Read and Write`, then click create.
|
|
266
276
|
|
|
267
277
|
<Image
|
|
268
278
|
alt={'Configure API Token Permissions'}
|
|
269
279
|
src={'https://github.com/lobehub/lobe-chat/assets/28616219/d6f5a918-7b50-4d6e-83a6-3894ab930ddf'}
|
|
270
|
-
|
|
280
|
+
/>
|
|
271
281
|
|
|
272
282
|
After creation, you can see the corresponding S3 API token.
|
|
273
283
|
|
|
274
284
|
<Image
|
|
275
285
|
alt={'Copy API Token'}
|
|
276
286
|
src={'https://github.com/lobehub/lobe-chat/assets/28616219/763b18f9-2b5f-44bb-a479-9b56d46f7397'}
|
|
277
|
-
|
|
287
|
+
/>
|
|
278
288
|
|
|
279
289
|
The corresponding environment variables are:
|
|
280
290
|
|
|
@@ -287,7 +297,9 @@ S3_SECRET_ACCESS_KEY=55af75d8eb6b99f189f6a35f855336ea62cd9c4751a5cf4337c53c1d3f4
|
|
|
287
297
|
|
|
288
298
|
The steps to obtain the required environment variables may vary for different S3 service providers, but the obtained environment variables should be consistent:
|
|
289
299
|
|
|
290
|
-
<Callout type={'warning'}>
|
|
300
|
+
<Callout type={'warning'}>
|
|
301
|
+
The `https://` in the URL is essential and must be maintained for the completeness of the URL.
|
|
302
|
+
</Callout>
|
|
291
303
|
|
|
292
304
|
```shell
|
|
293
305
|
# S3 Keys
|
|
@@ -310,7 +322,7 @@ Then, insert the above environment variables into Vercel's environment variables
|
|
|
310
322
|
<Image
|
|
311
323
|
alt={'Adding S3 environment variables in Vercel'}
|
|
312
324
|
src={'https://github.com/lobehub/lobe-chat/assets/28616219/cd74152d-0ae8-44fd-b815-3307c56a3c18'}
|
|
313
|
-
|
|
325
|
+
/>
|
|
314
326
|
|
|
315
327
|
### Configuring Cross-Origin Resource Sharing (CORS)
|
|
316
328
|
|
|
@@ -328,7 +340,7 @@ Add a CORS rule to allow requests from your domain (in this case, `https://your-
|
|
|
328
340
|
<Image
|
|
329
341
|
alt={'Configuring allowed site domain'}
|
|
330
342
|
src={'https://github.com/lobehub/lobe-chat/assets/28616219/dfcc2cb3-2958-4498-a8a4-51bec584fe7d'}
|
|
331
|
-
|
|
343
|
+
/>
|
|
332
344
|
|
|
333
345
|
Example configuration:
|
|
334
346
|
|
|
@@ -356,11 +368,9 @@ After completing the steps above, the configuration of the server-side database
|
|
|
356
368
|
After configuring the environment variables, you need to redeploy the latest commit and wait for the deployment to complete.
|
|
357
369
|
|
|
358
370
|
<Image
|
|
359
|
-
alt={'Redeploy the latest commit'}
|
|
360
|
-
src={'https://github.com/lobehub/lobe-chat/assets/28616219/b3a78112-adc8-4837-b4e3-48f67058f16e'}
|
|
361
|
-
|
|
362
|
-
>
|
|
363
|
-
</Image>
|
|
371
|
+
alt={'Redeploy the latest commit'}
|
|
372
|
+
src={'https://github.com/lobehub/lobe-chat/assets/28616219/b3a78112-adc8-4837-b4e3-48f67058f16e'}
|
|
373
|
+
/>
|
|
364
374
|
|
|
365
375
|
### Check if the features are working properly
|
|
366
376
|
|
|
@@ -368,18 +378,12 @@ If you click on the login button in the top left corner and the login popup appe
|
|
|
368
378
|
|
|
369
379
|
<Image
|
|
370
380
|
alt={'User login popup'}
|
|
371
|
-
src={'https://github.com/lobehub/lobe-chat/assets/28616219/da84edc3-46f7-4e2b-a0cd-dc33a98bf5cb'}
|
|
372
|
-
|
|
373
|
-
>
|
|
374
|
-
</Image>
|
|
381
|
+
src={'https://github.com/lobehub/lobe-chat/assets/28616219/da84edc3-46f7-4e2b-a0cd-dc33a98bf5cb'}/>
|
|
375
382
|
|
|
376
383
|
<Image
|
|
377
384
|
alt={'Login successful state'}
|
|
378
|
-
src={'https://github.com/lobehub/lobe-chat/assets/28616219/9cb5150d-6e1e-4c59-9a18-4e418dce1a5d'}
|
|
379
|
-
|
|
380
|
-
>
|
|
381
|
-
</Image>
|
|
382
|
-
|
|
385
|
+
src={'https://github.com/lobehub/lobe-chat/assets/28616219/9cb5150d-6e1e-4c59-9a18-4e418dce1a5d'}/>
|
|
386
|
+
|
|
383
387
|
</Steps>
|
|
384
388
|
|
|
385
389
|
## Appendix
|
|
@@ -415,4 +419,3 @@ NEXT_PUBLIC_S3_DOMAIN=https://s3-for-lobechat.your-domain.com
|
|
|
415
419
|
# Bucket region, such as us-west-1, generally not needed to add, but some service providers may require configuration
|
|
416
420
|
# S3_REGION=us-west-1
|
|
417
421
|
```
|
|
418
|
-
|
|
@@ -32,6 +32,6 @@ LobeChat 支持多种部署平台,包括 Vercel、Docker 和 Docker Compose
|
|
|
32
32
|
|
|
33
33
|
针对已经了解 LobeChat 的用户,或需要多端同步的用户,可以自行部署带有服务端数据库的版本,进而获得更完整、功能更强大的 LobeChat。
|
|
34
34
|
|
|
35
|
-
<Cards>
|
|
36
|
-
<Card href={'/zh/docs/self-hosting/server-database'} title={'服务端数据库部署指南'} />
|
|
35
|
+
<Cards rows={1}>
|
|
36
|
+
<Card href={'/zh/docs/self-hosting/server-database'} title={'服务端数据库部署指南'} />
|
|
37
37
|
</Cards>
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Using SiliconCloud API Key in LobeChat
|
|
3
|
-
description:
|
|
3
|
+
description: >-
|
|
4
|
+
Learn how to configure and use SiliconCloud's large language models in
|
|
5
|
+
LobeChat, get your API key, and start chatting.
|
|
4
6
|
tags:
|
|
5
7
|
- LobeChat
|
|
6
8
|
- SiliconCloud
|
|
@@ -10,7 +12,6 @@ tags:
|
|
|
10
12
|
|
|
11
13
|
# Using SiliconCloud in LobeChat
|
|
12
14
|
|
|
13
|
-
|
|
14
15
|
[SiliconCloud](https://siliconflow.cn/zh-cn/siliconcloud) is a cost-effective large model service provider, offering various services such as text generation and image generation.
|
|
15
16
|
|
|
16
17
|
This document will guide you on how to use SiliconCloud in LobeChat:
|
|
@@ -43,4 +44,4 @@ This document will guide you on how to use SiliconCloud in LobeChat:
|
|
|
43
44
|
|
|
44
45
|
</Steps>
|
|
45
46
|
|
|
46
|
-
Now you can use the models provided by SiliconCloud for conversation in LobeChat.
|
|
47
|
+
Now you can use the models provided by SiliconCloud for conversation in LobeChat.
|
|
@@ -5,6 +5,66 @@
|
|
|
5
5
|
"dragFileTitle": "تحميل الملفات",
|
|
6
6
|
"dragTitle": "تحميل الصور"
|
|
7
7
|
},
|
|
8
|
+
"FileManager": {
|
|
9
|
+
"actions": {
|
|
10
|
+
"addToKnowledgeBase": "إضافة إلى قاعدة المعرفة",
|
|
11
|
+
"addToOtherKnowledgeBase": "إضافة إلى قاعدة معرفة أخرى",
|
|
12
|
+
"batchChunking": "تقسيم دفعي",
|
|
13
|
+
"chunking": "تقسيم",
|
|
14
|
+
"chunkingTooltip": "قم بتقسيم الملف إلى عدة كتل نصية وتحويلها إلى متجهات، يمكن استخدامها في البحث الدلالي والمحادثة حول الملفات",
|
|
15
|
+
"confirmDelete": "سيتم حذف هذا الملف، ولن يمكن استعادته بعد الحذف، يرجى تأكيد العملية",
|
|
16
|
+
"confirmDeleteMultiFiles": "سيتم حذف {{count}} ملفًا محددًا، ولن يمكن استعادته بعد الحذف، يرجى تأكيد العملية",
|
|
17
|
+
"confirmRemoveFromKnowledgeBase": "سيتم إزالة {{count}} ملفًا محددًا من قاعدة المعرفة، لا يزال بإمكانك رؤية الملفات في جميع الملفات، يرجى تأكيد العملية",
|
|
18
|
+
"copyUrl": "نسخ الرابط",
|
|
19
|
+
"copyUrlSuccess": "تم نسخ عنوان الملف بنجاح",
|
|
20
|
+
"createChunkingTask": "جارٍ التحضير...",
|
|
21
|
+
"deleteSuccess": "تم حذف الملف بنجاح",
|
|
22
|
+
"downloading": "جارٍ تحميل الملف...",
|
|
23
|
+
"removeFromKnowledgeBase": "إزالة من قاعدة المعرفة",
|
|
24
|
+
"removeFromKnowledgeBaseSuccess": "تمت إزالة الملف بنجاح"
|
|
25
|
+
},
|
|
26
|
+
"bottom": "لقد وصلت إلى النهاية",
|
|
27
|
+
"config": {
|
|
28
|
+
"showFilesInKnowledgeBase": "عرض المحتوى في قاعدة المعرفة"
|
|
29
|
+
},
|
|
30
|
+
"emptyStatus": {
|
|
31
|
+
"actions": {
|
|
32
|
+
"file": "رفع ملف",
|
|
33
|
+
"folder": "رفع مجلد",
|
|
34
|
+
"knowledgeBase": "إنشاء قاعدة معرفة جديدة"
|
|
35
|
+
},
|
|
36
|
+
"or": "أو",
|
|
37
|
+
"title": "قم بسحب الملف أو المجلد هنا"
|
|
38
|
+
},
|
|
39
|
+
"title": {
|
|
40
|
+
"createdAt": "تاريخ الإنشاء",
|
|
41
|
+
"size": "الحجم",
|
|
42
|
+
"title": "ملف"
|
|
43
|
+
},
|
|
44
|
+
"total": {
|
|
45
|
+
"fileCount": "إجمالي {{count}} عنصر",
|
|
46
|
+
"selectedCount": "تم تحديد {{count}} عنصر"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"FileParsingStatus": {
|
|
50
|
+
"chunks": {
|
|
51
|
+
"embeddingStatus": {
|
|
52
|
+
"empty": "لم يتم تحويل كتل النص بالكامل إلى متجهات، مما سيؤدي إلى عدم توفر وظيفة البحث الدلالي، لتحسين جودة البحث، يرجى تحويل كتل النص إلى متجهات",
|
|
53
|
+
"processing": "يتم تحويل كتل النص إلى متجهات، يرجى الانتظار",
|
|
54
|
+
"success": "تم تحويل جميع كتل النص الحالية إلى متجهات"
|
|
55
|
+
},
|
|
56
|
+
"embeddings": "تحويل إلى متجهات",
|
|
57
|
+
"status": {
|
|
58
|
+
"error": "فشل في التقسيم",
|
|
59
|
+
"errorResult": "فشل في التقسيم، يرجى التحقق والمحاولة مرة أخرى. سبب الفشل:",
|
|
60
|
+
"processing": "جارٍ التقسيم",
|
|
61
|
+
"processingTip": "الخادم يقوم بتقسيم كتل النص، إغلاق الصفحة لا يؤثر على تقدم التقسيم"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"GoBack": {
|
|
66
|
+
"back": "عودة"
|
|
67
|
+
},
|
|
8
68
|
"ModelSelect": {
|
|
9
69
|
"featureTag": {
|
|
10
70
|
"custom": "نموذج مخصص، الإعداد الافتراضي يدعم الاستدعاء الوظيفي والتعرف البصري، يرجى التحقق من قدرة النموذج على القيام بذلك بناءً على الحالة الفعلية",
|
|
@@ -5,6 +5,66 @@
|
|
|
5
5
|
"dragFileTitle": "Качване на файл",
|
|
6
6
|
"dragTitle": "Качване на изображение"
|
|
7
7
|
},
|
|
8
|
+
"FileManager": {
|
|
9
|
+
"actions": {
|
|
10
|
+
"addToKnowledgeBase": "Добави в базата знания",
|
|
11
|
+
"addToOtherKnowledgeBase": "Добави в друга база знания",
|
|
12
|
+
"batchChunking": "Партидно разделяне",
|
|
13
|
+
"chunking": "Разделяне",
|
|
14
|
+
"chunkingTooltip": "Разделете файла на множество текстови блокове и ги векторизирайте, за да се използват за семантично търсене и диалог с файла",
|
|
15
|
+
"confirmDelete": "Ще изтриете този файл. След изтриването му няма да може да бъде възстановен. Моля, потвърдете действието си.",
|
|
16
|
+
"confirmDeleteMultiFiles": "Ще изтриете избраните {{count}} файла. След изтриването им няма да могат да бъдат възстановени. Моля, потвърдете действието си.",
|
|
17
|
+
"confirmRemoveFromKnowledgeBase": "Ще премахнете избраните {{count}} файла от базата знания. След премахването им файловете все още могат да бъдат видяни в списъка с всички файлове. Моля, потвърдете действието си.",
|
|
18
|
+
"copyUrl": "Копирай линк",
|
|
19
|
+
"copyUrlSuccess": "Адресът на файла е копиран успешно",
|
|
20
|
+
"createChunkingTask": "Подготовка...",
|
|
21
|
+
"deleteSuccess": "Файлът е изтрит успешно",
|
|
22
|
+
"downloading": "Изтегляне на файла...",
|
|
23
|
+
"removeFromKnowledgeBase": "Премахни от базата знания",
|
|
24
|
+
"removeFromKnowledgeBaseSuccess": "Файлът е премахнат успешно"
|
|
25
|
+
},
|
|
26
|
+
"bottom": "Достигнахте края",
|
|
27
|
+
"config": {
|
|
28
|
+
"showFilesInKnowledgeBase": "Покажи съдържанието в базата знания"
|
|
29
|
+
},
|
|
30
|
+
"emptyStatus": {
|
|
31
|
+
"actions": {
|
|
32
|
+
"file": "Качи файл",
|
|
33
|
+
"folder": "Качи папка",
|
|
34
|
+
"knowledgeBase": "Създай нова база знания"
|
|
35
|
+
},
|
|
36
|
+
"or": "или",
|
|
37
|
+
"title": "Плъзнете файл или папка тук"
|
|
38
|
+
},
|
|
39
|
+
"title": {
|
|
40
|
+
"createdAt": "Дата на създаване",
|
|
41
|
+
"size": "Размер",
|
|
42
|
+
"title": "Файл"
|
|
43
|
+
},
|
|
44
|
+
"total": {
|
|
45
|
+
"fileCount": "Общо {{count}} елемента",
|
|
46
|
+
"selectedCount": "Избрани {{count}} елемента"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"FileParsingStatus": {
|
|
50
|
+
"chunks": {
|
|
51
|
+
"embeddingStatus": {
|
|
52
|
+
"empty": "Текстовите блокове все още не са напълно векторизирани, което ще доведе до недостъпност на семантичното търсене. За подобряване на качеството на търсенето, моля, векторизирайте текстовите блокове.",
|
|
53
|
+
"processing": "Текстовите блокове се векторизират, моля, бъдете търпеливи.",
|
|
54
|
+
"success": "Текущите текстови блокове са напълно векторизирани."
|
|
55
|
+
},
|
|
56
|
+
"embeddings": "Векторизация",
|
|
57
|
+
"status": {
|
|
58
|
+
"error": "Разделянето е неуспешно",
|
|
59
|
+
"errorResult": "Разделянето е неуспешно, моля, проверете и опитайте отново. Причина за неуспеха:",
|
|
60
|
+
"processing": "Разделяне на блокове",
|
|
61
|
+
"processingTip": "Сървърът в момента разделя текстовите блокове, затварянето на страницата не влияе на напредъка на разделянето."
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"GoBack": {
|
|
66
|
+
"back": "Назад"
|
|
67
|
+
},
|
|
8
68
|
"ModelSelect": {
|
|
9
69
|
"featureTag": {
|
|
10
70
|
"custom": "Потребителски модел, по подразбиране поддържа функционалност за функционални обаждания и визуално разпознаване, моля, потвърдете наличието на тези възможности спрямо реалните условия",
|
|
@@ -5,6 +5,66 @@
|
|
|
5
5
|
"dragFileTitle": "Dateien hochladen",
|
|
6
6
|
"dragTitle": "Bilder hochladen"
|
|
7
7
|
},
|
|
8
|
+
"FileManager": {
|
|
9
|
+
"actions": {
|
|
10
|
+
"addToKnowledgeBase": "Zur Wissensdatenbank hinzufügen",
|
|
11
|
+
"addToOtherKnowledgeBase": "Zur anderen Wissensdatenbank hinzufügen",
|
|
12
|
+
"batchChunking": "Batch-Zerteilung",
|
|
13
|
+
"chunking": "Zerteilung",
|
|
14
|
+
"chunkingTooltip": "Teilen Sie die Datei in mehrere Textblöcke und vektorisieren Sie sie, um sie für die semantische Suche und Dateidialoge zu verwenden.",
|
|
15
|
+
"confirmDelete": "Die Datei wird gelöscht. Nach dem Löschen kann sie nicht wiederhergestellt werden. Bitte bestätigen Sie Ihre Aktion.",
|
|
16
|
+
"confirmDeleteMultiFiles": "Die ausgewählten {{count}} Dateien werden gelöscht. Nach dem Löschen können sie nicht wiederhergestellt werden. Bitte bestätigen Sie Ihre Aktion.",
|
|
17
|
+
"confirmRemoveFromKnowledgeBase": "Die ausgewählten {{count}} Dateien werden aus der Wissensdatenbank entfernt. Die Dateien sind weiterhin in allen Dateien sichtbar. Bitte bestätigen Sie Ihre Aktion.",
|
|
18
|
+
"copyUrl": "Link kopieren",
|
|
19
|
+
"copyUrlSuccess": "Dateiadresse erfolgreich kopiert",
|
|
20
|
+
"createChunkingTask": "Wird vorbereitet...",
|
|
21
|
+
"deleteSuccess": "Datei erfolgreich gelöscht",
|
|
22
|
+
"downloading": "Datei wird heruntergeladen...",
|
|
23
|
+
"removeFromKnowledgeBase": "Aus der Wissensdatenbank entfernen",
|
|
24
|
+
"removeFromKnowledgeBaseSuccess": "Datei erfolgreich entfernt"
|
|
25
|
+
},
|
|
26
|
+
"bottom": "Das Ende ist erreicht",
|
|
27
|
+
"config": {
|
|
28
|
+
"showFilesInKnowledgeBase": "In der Wissensdatenbank angezeigte Inhalte"
|
|
29
|
+
},
|
|
30
|
+
"emptyStatus": {
|
|
31
|
+
"actions": {
|
|
32
|
+
"file": "Datei hochladen",
|
|
33
|
+
"folder": "Ordner hochladen",
|
|
34
|
+
"knowledgeBase": "Neue Wissensdatenbank erstellen"
|
|
35
|
+
},
|
|
36
|
+
"or": "oder",
|
|
37
|
+
"title": "Ziehen Sie Dateien oder Ordner hierher"
|
|
38
|
+
},
|
|
39
|
+
"title": {
|
|
40
|
+
"createdAt": "Erstellungsdatum",
|
|
41
|
+
"size": "Größe",
|
|
42
|
+
"title": "Datei"
|
|
43
|
+
},
|
|
44
|
+
"total": {
|
|
45
|
+
"fileCount": "Insgesamt {{count}} Elemente",
|
|
46
|
+
"selectedCount": "Ausgewählt {{count}} Elemente"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"FileParsingStatus": {
|
|
50
|
+
"chunks": {
|
|
51
|
+
"embeddingStatus": {
|
|
52
|
+
"empty": "Textblöcke sind noch nicht vollständig vektorisiert, was die Funktion der semantischen Suche beeinträchtigen kann. Um die Suchqualität zu verbessern, vektorisieren Sie die Textblöcke.",
|
|
53
|
+
"processing": "Textblöcke werden vektorisiert, bitte haben Sie Geduld.",
|
|
54
|
+
"success": "Alle aktuellen Textblöcke sind vektorisiert."
|
|
55
|
+
},
|
|
56
|
+
"embeddings": "Vektorisierung",
|
|
57
|
+
"status": {
|
|
58
|
+
"error": "Zerteilung fehlgeschlagen",
|
|
59
|
+
"errorResult": "Zerteilung fehlgeschlagen, bitte überprüfen Sie und versuchen Sie es erneut. Grund für das Scheitern:",
|
|
60
|
+
"processing": "Zerteilung läuft",
|
|
61
|
+
"processingTip": "Der Server zerteilt die Textblöcke. Das Schließen der Seite hat keinen Einfluss auf den Zerteilungsfortschritt."
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"GoBack": {
|
|
66
|
+
"back": "Zurück"
|
|
67
|
+
},
|
|
8
68
|
"ModelSelect": {
|
|
9
69
|
"featureTag": {
|
|
10
70
|
"custom": "Benutzerdefiniertes Modell, standardmäßig unterstützt es sowohl Funktionsaufrufe als auch visuelle Erkennung. Bitte überprüfen Sie die Verfügbarkeit dieser Fähigkeiten basierend auf den tatsächlichen Gegebenheiten.",
|