@lobehub/chat 1.15.1 → 1.15.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.
Files changed (62) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/Dockerfile +2 -2
  3. package/Dockerfile.database +2 -2
  4. package/README.md +45 -24
  5. package/README.zh-CN.md +45 -24
  6. package/docker-compose/local/.env.example +1 -1
  7. package/docker-compose/production/.env.example +36 -15
  8. package/docker-compose/production/.env.zh-CN.example +34 -14
  9. package/docs/self-hosting/advanced/auth/next-auth/authelia.zh-CN.mdx +1 -1
  10. package/docs/self-hosting/advanced/auth/next-auth/authentik.zh-CN.mdx +1 -1
  11. package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx +1 -1
  12. package/docs/self-hosting/advanced/auth/next-auth/github.zh-CN.mdx +1 -1
  13. package/docs/self-hosting/advanced/auth/next-auth/logto.zh-CN.mdx +1 -1
  14. package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.zh-CN.mdx +1 -1
  15. package/docs/self-hosting/advanced/auth/next-auth/zitadel.zh-CN.mdx +1 -1
  16. package/docs/self-hosting/advanced/knowledge-base.mdx +53 -0
  17. package/docs/self-hosting/advanced/knowledge-base.zh-CN.mdx +10 -4
  18. package/docs/self-hosting/advanced/model-list.mdx +3 -1
  19. package/docs/self-hosting/advanced/model-list.zh-CN.mdx +3 -1
  20. package/docs/self-hosting/advanced/s3/cloudflare-r2.zh-CN.mdx +54 -52
  21. package/docs/self-hosting/advanced/s3/tencent-cloud.mdx +66 -0
  22. package/docs/self-hosting/advanced/s3/tencent-cloud.zh-CN.mdx +82 -0
  23. package/docs/self-hosting/advanced/s3.mdx +2 -1
  24. package/docs/self-hosting/advanced/s3.zh-CN.mdx +1 -0
  25. package/docs/self-hosting/environment-variables/model-provider.zh-CN.mdx +2 -2
  26. package/docs/self-hosting/environment-variables/s3.mdx +82 -0
  27. package/docs/self-hosting/environment-variables/s3.zh-CN.mdx +81 -0
  28. package/docs/self-hosting/environment-variables.mdx +1 -0
  29. package/docs/self-hosting/environment-variables.zh-CN.mdx +1 -0
  30. package/docs/self-hosting/examples/azure-openai.mdx +1 -1
  31. package/docs/self-hosting/examples/azure-openai.zh-CN.mdx +1 -1
  32. package/docs/self-hosting/examples/ollama.zh-CN.mdx +1 -1
  33. package/docs/self-hosting/platform/docker.zh-CN.mdx +1 -1
  34. package/docs/self-hosting/platform/netlify.zh-CN.mdx +1 -1
  35. package/docs/self-hosting/platform/vercel.zh-CN.mdx +1 -1
  36. package/docs/self-hosting/server-database/docker-compose.mdx +116 -57
  37. package/docs/self-hosting/server-database/docker-compose.zh-CN.mdx +114 -59
  38. package/docs/self-hosting/server-database/docker.mdx +1 -1
  39. package/docs/self-hosting/server-database/zeabur.mdx +6 -2
  40. package/docs/self-hosting/server-database/zeabur.zh-CN.mdx +2 -2
  41. package/docs/self-hosting/server-database.mdx +2 -2
  42. package/docs/self-hosting/start.mdx +1 -1
  43. package/docs/usage/agents/custom-agent.zh-CN.mdx +2 -2
  44. package/docs/usage/features/local-llm.zh-CN.mdx +2 -2
  45. package/docs/usage/features/multi-ai-providers.zh-CN.mdx +3 -3
  46. package/docs/usage/features/plugin-system.mdx +1 -1
  47. package/docs/usage/features/plugin-system.zh-CN.mdx +2 -2
  48. package/docs/usage/foundation/basic.mdx +5 -5
  49. package/docs/usage/foundation/basic.zh-CN.mdx +5 -5
  50. package/docs/usage/foundation/text2image.mdx +1 -1
  51. package/docs/usage/foundation/text2image.zh-CN.mdx +1 -1
  52. package/docs/usage/plugins/custom-plugin.zh-CN.mdx +1 -1
  53. package/docs/usage/providers/ollama/gemma.zh-CN.mdx +2 -2
  54. package/docs/usage/providers/ollama/qwen.zh-CN.mdx +2 -2
  55. package/docs/usage/tools-calling/openai.mdx +1 -1
  56. package/package.json +2 -2
  57. package/src/config/llm.ts +4 -0
  58. package/src/config/modelProviders/anthropic.ts +1 -1
  59. package/src/config/modelProviders/google.ts +14 -14
  60. package/src/config/modelProviders/qwen.ts +12 -12
  61. package/src/config/modelProviders/stepfun.ts +12 -7
  62. package/src/server/globalConfig/index.ts +23 -2
package/CHANGELOG.md CHANGED
@@ -2,6 +2,58 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.15.3](https://github.com/lobehub/lobe-chat/compare/v1.15.2...v1.15.3)
6
+
7
+ <sup>Released on **2024-09-01**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Add `*_MODEL_LIST` for Qwen and ZeroOne, fix model info, update Claude 3.5 Sonnet maxOutput vaule.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Add `*_MODEL_LIST` for Qwen and ZeroOne, closes [#3704](https://github.com/lobehub/lobe-chat/issues/3704) ([05419dc](https://github.com/lobehub/lobe-chat/commit/05419dc))
21
+ - **misc**: Fix model info, closes [#3696](https://github.com/lobehub/lobe-chat/issues/3696) ([4d98037](https://github.com/lobehub/lobe-chat/commit/4d98037))
22
+ - **misc**: Update Claude 3.5 Sonnet maxOutput vaule, closes [#3705](https://github.com/lobehub/lobe-chat/issues/3705) ([685bd74](https://github.com/lobehub/lobe-chat/commit/685bd74))
23
+
24
+ </details>
25
+
26
+ <div align="right">
27
+
28
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
29
+
30
+ </div>
31
+
32
+ ### [Version 1.15.2](https://github.com/lobehub/lobe-chat/compare/v1.15.1...v1.15.2)
33
+
34
+ <sup>Released on **2024-08-30**</sup>
35
+
36
+ #### 💄 Styles
37
+
38
+ - **misc**: Update Qwen and Gemini models info.
39
+
40
+ <br/>
41
+
42
+ <details>
43
+ <summary><kbd>Improvements and Fixes</kbd></summary>
44
+
45
+ #### Styles
46
+
47
+ - **misc**: Update Qwen and Gemini models info, closes [#3693](https://github.com/lobehub/lobe-chat/issues/3693) ([ba01641](https://github.com/lobehub/lobe-chat/commit/ba01641))
48
+
49
+ </details>
50
+
51
+ <div align="right">
52
+
53
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
54
+
55
+ </div>
56
+
5
57
  ### [Version 1.15.1](https://github.com/lobehub/lobe-chat/compare/v1.15.0...v1.15.1)
6
58
 
7
59
  <sup>Released on **2024-08-30**</sup>
package/Dockerfile CHANGED
@@ -137,7 +137,7 @@ ENV \
137
137
  # Perplexity
138
138
  PERPLEXITY_API_KEY="" PERPLEXITY_PROXY_URL="" \
139
139
  # Qwen
140
- QWEN_API_KEY="" \
140
+ QWEN_API_KEY="" QWEN_MODEL_LIST="" \
141
141
  # SiliconCloud
142
142
  SILICONCLOUD_API_KEY="" SILICONCLOUD_MODEL_LIST="" SILICONCLOUD_PROXY_URL="" \
143
143
  # Stepfun
@@ -149,7 +149,7 @@ ENV \
149
149
  # Upstage
150
150
  UPSTAGE_API_KEY="" \
151
151
  # 01.AI
152
- ZEROONE_API_KEY="" \
152
+ ZEROONE_API_KEY="" ZEROONE_MODEL_LIST="" \
153
153
  # Zhipu
154
154
  ZHIPU_API_KEY="" ZHIPU_MODEL_LIST=""
155
155
 
@@ -169,7 +169,7 @@ ENV \
169
169
  # Perplexity
170
170
  PERPLEXITY_API_KEY="" PERPLEXITY_PROXY_URL="" \
171
171
  # Qwen
172
- QWEN_API_KEY="" \
172
+ QWEN_API_KEY="" QWEN_MODEL_LIST="" \
173
173
  # SiliconCloud
174
174
  SILICONCLOUD_API_KEY="" SILICONCLOUD_MODEL_LIST="" SILICONCLOUD_PROXY_URL="" \
175
175
  # Stepfun
@@ -181,7 +181,7 @@ ENV \
181
181
  # Upstage
182
182
  UPSTAGE_API_KEY="" \
183
183
  # 01.AI
184
- ZEROONE_API_KEY="" \
184
+ ZEROONE_API_KEY="" ZEROONE_MODEL_LIST="" \
185
185
  # Zhipu
186
186
  ZHIPU_API_KEY=""
187
187
 
package/README.md CHANGED
@@ -52,18 +52,19 @@ One-click **FREE** deployment of your private OpenAI ChatGPT/Claude/Gemini/Groq/
52
52
 
53
53
  - [👋🏻 Getting Started & Join Our Community](#-getting-started--join-our-community)
54
54
  - [✨ Features](#-features)
55
- - [`1` Multi-Model Service Provider Support](#1-multi-model-service-provider-support)
56
- - [`2` Local Large Language Model (LLM) Support](#2-local-large-language-model-llm-support)
57
- - [`3` Model Visual Recognition](#3-model-visual-recognition)
58
- - [`4` TTS & STT Voice Conversation](#4-tts--stt-voice-conversation)
59
- - [`5` Text to Image Generation](#5-text-to-image-generation)
60
- - [`6` Plugin System (Function Calling)](#6-plugin-system-function-calling)
61
- - [`7` Agent Market (GPTs)](#7-agent-market-gpts)
62
- - [`8` Support Local / Remote Database](#8-support-local--remote-database)
63
- - [`9` Support Multi-User Management](#9-support-multi-user-management)
64
- - [`10` Progressive Web App (PWA)](#10-progressive-web-app-pwa)
65
- - [`11` Mobile Device Adaptation](#11-mobile-device-adaptation)
66
- - [`12` Custom Themes](#12-custom-themes)
55
+ - [`1` File Upload/Knowledge Base](#1-file-uploadknowledge-base)
56
+ - [`2` Multi-Model Service Provider Support](#2-multi-model-service-provider-support)
57
+ - [`3` Local Large Language Model (LLM) Support](#3-local-large-language-model-llm-support)
58
+ - [`4` Model Visual Recognition](#4-model-visual-recognition)
59
+ - [`5` TTS & STT Voice Conversation](#5-tts--stt-voice-conversation)
60
+ - [`6` Text to Image Generation](#6-text-to-image-generation)
61
+ - [`7` Plugin System (Function Calling)](#7-plugin-system-function-calling)
62
+ - [`8` Agent Market (GPTs)](#8-agent-market-gpts)
63
+ - [`9` Support Local / Remote Database](#9-support-local--remote-database)
64
+ - [`10` Support Multi-User Management](#10-support-multi-user-management)
65
+ - [`11` Progressive Web App (PWA)](#11-progressive-web-app-pwa)
66
+ - [`12` Mobile Device Adaptation](#12-mobile-device-adaptation)
67
+ - [`13` Custom Themes](#13-custom-themes)
67
68
  - [`*` What's more](#-whats-more)
68
69
  - [⚡️ Performance](#️-performance)
69
70
  - [🛳 Self Hosting](#-self-hosting)
@@ -110,9 +111,27 @@ Whether for users or professional developers, LobeHub will be your AI Agent play
110
111
 
111
112
  ## ✨ Features
112
113
 
114
+ [![][image-feat-knowledgebase]][docs-feat-knowledgebase]
115
+
116
+ ### `1` [File Upload/Knowledge Base][docs-feat-knowledgebase]
117
+
118
+ LobeChat supports file upload and knowledge base functionality. You can upload various types of files including documents, images, audio, and video, as well as create knowledge bases, making it convenient for users to manage and search for files. Additionally, you can utilize files and knowledge base features during conversations, enabling a richer dialogue experience.
119
+
120
+ <https://github.com/user-attachments/assets/faa8cf67-e743-4590-8bf6-ebf6ccc34175>
121
+
122
+ > \[!TIP]
123
+ >
124
+ > Learn more on [📘 LobeChat Knowledge Base Launch — From Now On, Every Step Counts](https://lobehub.com/blog/knowledge-base)
125
+
126
+ <div align="right">
127
+
128
+ [![][back-to-top]](#readme-top)
129
+
130
+ </div>
131
+
113
132
  [![][image-feat-privoder]][docs-feat-provider]
114
133
 
115
- ### `1` [Multi-Model Service Provider Support][docs-feat-provider]
134
+ ### `2` [Multi-Model Service Provider Support][docs-feat-provider]
116
135
 
117
136
  In the continuous development of LobeChat, we deeply understand the importance of diversity in model service providers for meeting the needs of the community when providing AI conversation services. Therefore, we have expanded our support to multiple model service providers, rather than being limited to a single one, in order to offer users a more diverse and rich selection of conversations.
118
137
 
@@ -146,7 +165,7 @@ At the same time, we are also planning to support more model service providers,
146
165
 
147
166
  [![][image-feat-local]][docs-feat-local]
148
167
 
149
- ### `2` [Local Large Language Model (LLM) Support][docs-feat-local]
168
+ ### `3` [Local Large Language Model (LLM) Support][docs-feat-local]
150
169
 
151
170
  To meet the specific needs of users, LobeChat also supports the use of local models based on [Ollama](https://ollama.ai), allowing users to flexibly use their own or third-party models.
152
171
 
@@ -162,7 +181,7 @@ To meet the specific needs of users, LobeChat also supports the use of local mod
162
181
 
163
182
  [![][image-feat-vision]][docs-feat-vision]
164
183
 
165
- ### `3` [Model Visual Recognition][docs-feat-vision]
184
+ ### `4` [Model Visual Recognition][docs-feat-vision]
166
185
 
167
186
  LobeChat now supports OpenAI's latest [`gpt-4-vision`](https://platform.openai.com/docs/guides/vision) model with visual recognition capabilities,
168
187
  a multimodal intelligence that can perceive visuals. Users can easily upload or drag and drop images into the dialogue box,
@@ -180,7 +199,7 @@ Whether it's sharing images in daily use or interpreting images within specific
180
199
 
181
200
  [![][image-feat-tts]][docs-feat-tts]
182
201
 
183
- ### `4` [TTS & STT Voice Conversation][docs-feat-tts]
202
+ ### `5` [TTS & STT Voice Conversation][docs-feat-tts]
184
203
 
185
204
  LobeChat supports Text-to-Speech (TTS) and Speech-to-Text (STT) technologies, enabling our application to convert text messages into clear voice outputs,
186
205
  allowing users to interact with our conversational agent as if they were talking to a real person. Users can choose from a variety of voices to pair with the agent.
@@ -197,7 +216,7 @@ Users can choose the voice that suits their personal preferences or specific sce
197
216
 
198
217
  [![][image-feat-t2i]][docs-feat-t2i]
199
218
 
200
- ### `5` [Text to Image Generation][docs-feat-t2i]
219
+ ### `6` [Text to Image Generation][docs-feat-t2i]
201
220
 
202
221
  With support for the latest text-to-image generation technology, LobeChat now allows users to invoke image creation tools directly within conversations with the agent. By leveraging the capabilities of AI tools such as [`DALL-E 3`](https://openai.com/dall-e-3), [`MidJourney`](https://www.midjourney.com/), and [`Pollinations`](https://pollinations.ai/), the agents are now equipped to transform your ideas into images.
203
222
 
@@ -211,7 +230,7 @@ This enables a more private and immersive creative process, allowing for the sea
211
230
 
212
231
  [![][image-feat-plugin]][docs-feat-plugin]
213
232
 
214
- ### `6` [Plugin System (Function Calling)][docs-feat-plugin]
233
+ ### `7` [Plugin System (Function Calling)][docs-feat-plugin]
215
234
 
216
235
  The plugin ecosystem of LobeChat is an important extension of its core functionality, greatly enhancing the practicality and flexibility of the LobeChat assistant.
217
236
 
@@ -246,7 +265,7 @@ In addition, these plugins are not limited to news aggregation, but can also ext
246
265
 
247
266
  [![][image-feat-agent]][docs-feat-agent]
248
267
 
249
- ### `7` [Agent Market (GPTs)][docs-feat-agent]
268
+ ### `8` [Agent Market (GPTs)][docs-feat-agent]
250
269
 
251
270
  In LobeChat Agent Marketplace, creators can discover a vibrant and innovative community that brings together a multitude of well-designed agents,
252
271
  which not only play an important role in work scenarios but also offer great convenience in learning processes.
@@ -291,7 +310,7 @@ Please tell me what issue you would like to explore?<br/>`backtracking-questions
291
310
 
292
311
  [![][image-feat-database]][docs-feat-database]
293
312
 
294
- ### `8` [Support Local / Remote Database][docs-feat-database]
313
+ ### `9` [Support Local / Remote Database][docs-feat-database]
295
314
 
296
315
  LobeChat supports the use of both server-side and local databases. Depending on your needs, you can choose the appropriate deployment solution:
297
316
 
@@ -308,7 +327,7 @@ Regardless of which database you choose, LobeChat can provide you with an excell
308
327
 
309
328
  [![][image-feat-auth]][docs-feat-auth]
310
329
 
311
- ### `9` [Support Multi-User Management][docs-feat-auth]
330
+ ### `10` [Support Multi-User Management][docs-feat-auth]
312
331
 
313
332
  LobeChat supports multi-user management and provides two main user authentication and management solutions to meet different needs:
314
333
 
@@ -326,7 +345,7 @@ Regardless of which user management solution you choose, LobeChat can provide yo
326
345
 
327
346
  [![][image-feat-pwa]][docs-feat-pwa]
328
347
 
329
- ### `10` [Progressive Web App (PWA)][docs-feat-pwa]
348
+ ### `11` [Progressive Web App (PWA)][docs-feat-pwa]
330
349
 
331
350
  We deeply understand the importance of providing a seamless experience for users in today's multi-device environment.
332
351
  Therefore, we have adopted Progressive Web Application ([PWA](https://support.google.com/chrome/answer/9658361)) technology,
@@ -353,7 +372,7 @@ providing smooth animations, responsive layouts, and adapting to different devic
353
372
 
354
373
  [![][image-feat-mobile]][docs-feat-mobile]
355
374
 
356
- ### `11` [Mobile Device Adaptation][docs-feat-mobile]
375
+ ### `12` [Mobile Device Adaptation][docs-feat-mobile]
357
376
 
358
377
  We have carried out a series of optimization designs for mobile devices to enhance the user's mobile experience. Currently, we are iterating on the mobile user experience to achieve smoother and more intuitive interactions. If you have any suggestions or ideas, we welcome you to provide feedback through GitHub Issues or Pull Requests.
359
378
 
@@ -365,7 +384,7 @@ We have carried out a series of optimization designs for mobile devices to enhan
365
384
 
366
385
  [![][image-feat-theme]][docs-feat-theme]
367
386
 
368
- ### `12` [Custom Themes][docs-feat-theme]
387
+ ### `13` [Custom Themes][docs-feat-theme]
369
388
 
370
389
  As a design-engineering-oriented application, LobeChat places great emphasis on users' personalized experiences,
371
390
  hence introducing flexible and diverse theme modes, including a light mode for daytime and a dark mode for nighttime.
@@ -712,6 +731,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
712
731
  [docs-feat-agent]: https://lobehub.com/docs/usage/features/agent-market
713
732
  [docs-feat-auth]: https://lobehub.com/docs/usage/features/auth
714
733
  [docs-feat-database]: https://lobehub.com/docs/usage/features/database
734
+ [docs-feat-knowledgebase]: https://lobehub.com/blog/knowledge-base
715
735
  [docs-feat-local]: https://lobehub.com/docs/usage/features/local-llm
716
736
  [docs-feat-mobile]: https://lobehub.com/docs/usage/features/mobile
717
737
  [docs-feat-plugin]: https://lobehub.com/docs/usage/features/plugin-system
@@ -755,6 +775,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
755
775
  [image-feat-agent]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670869-f1ffbf66-42b6-42cf-a937-9ce1f8328514.png
756
776
  [image-feat-auth]: https://github.com/lobehub/lobe-chat/assets/17870709/8ce70e15-40df-451e-b700-66090fe5b8c2
757
777
  [image-feat-database]: https://github.com/lobehub/lobe-chat/assets/17870709/c27a0234-a4e9-40e5-8bcb-42d5ce7e40f9
778
+ [image-feat-knowledgebase]: https://github.com/user-attachments/assets/77e58e1c-c82f-4341-b159-f4eeede9967f
758
779
  [image-feat-local]: https://github.com/lobehub/lobe-chat/assets/28616219/ca9a21bc-ea6c-4c90-bf4a-fa53b4fb2b5c
759
780
  [image-feat-mobile]: https://gw.alipayobjects.com/zos/kitchen/R441AuFS4W/mobile.webp
760
781
  [image-feat-plugin]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670883-33c43a5c-a512-467e-855c-fa299548cce5.png
package/README.zh-CN.md CHANGED
@@ -52,18 +52,19 @@
52
52
 
53
53
  - [👋🏻 开始使用 & 交流](#-开始使用--交流)
54
54
  - [✨ 特性一览](#-特性一览)
55
- - [`1` 多模型服务商支持](#1-多模型服务商支持)
56
- - [`2` 支持本地大语言模型 (LLM)](#2-支持本地大语言模型-llm)
57
- - [`3` 模型视觉识别 (Model Visual)](#3-模型视觉识别-model-visual)
58
- - [`4` TTS & STT 语音会话](#4-tts--stt-语音会话)
59
- - [`5` Text to Image 文生图](#5-text-to-image-文生图)
60
- - [`6` 插件系统 (Function Calling)](#6-插件系统-function-calling)
61
- - [`7` 助手市场 (GPTs)](#7-助手市场-gpts)
62
- - [`8` 支持本地 / 远程数据库](#8-支持本地--远程数据库)
63
- - [`9` 支持多用户管理](#9-支持多用户管理)
64
- - [`10` 渐进式 Web 应用 (PWA)](#10-渐进式-web-应用-pwa)
65
- - [`11` 移动设备适配](#11-移动设备适配)
66
- - [`12` 自定义主题](#12-自定义主题)
55
+ - [`1` 文件上传 / 知识库](#1-文件上传--知识库)
56
+ - [`2` 多模型服务商支持](#2-多模型服务商支持)
57
+ - [`3` 支持本地大语言模型 (LLM)](#3-支持本地大语言模型-llm)
58
+ - [`4` 模型视觉识别 (Model Visual)](#4-模型视觉识别-model-visual)
59
+ - [`5` TTS & STT 语音会话](#5-tts--stt-语音会话)
60
+ - [`6` Text to Image 文生图](#6-text-to-image-文生图)
61
+ - [`7` 插件系统 (Tools Calling)](#7-插件系统-tools-calling)
62
+ - [`8` 助手市场 (GPTs)](#8-助手市场-gpts)
63
+ - [`9` 支持本地 / 远程数据库](#9-支持本地--远程数据库)
64
+ - [`10` 支持多用户管理](#10-支持多用户管理)
65
+ - [`11` 渐进式 Web 应用 (PWA)](#11-渐进式-web-应用-pwa)
66
+ - [`12` 移动设备适配](#12-移动设备适配)
67
+ - [`13` 自定义主题](#13-自定义主题)
67
68
  - [更多特性](#更多特性)
68
69
  - [⚡️ 性能测试](#️-性能测试)
69
70
  - [🛳 开箱即用](#-开箱即用)
@@ -110,9 +111,27 @@
110
111
 
111
112
  ## ✨ 特性一览
112
113
 
114
+ [![][image-feat-knowledgebase]][docs-feat-knowledgebase]
115
+
116
+ ### `1` [文件上传 / 知识库][docs-feat-knowledgebase]
117
+
118
+ LobeChat 支持文件上传与知识库功能,你可以上传文件、图片、音频、视频等多种类型的文件,以及创建知识库,方便用户管理和查找文件。同时在对话中使用文件和知识库功能,实现更加丰富的对话体验。
119
+
120
+ <https://github.com/user-attachments/assets/faa8cf67-e743-4590-8bf6-ebf6ccc34175>
121
+
122
+ > \[!TIP]
123
+ >
124
+ > 查阅 [📘 LobeChat 知识库上线 —— 此刻起,跬步千里](https://lobehub.com/zh/blog/knowledge-base) 了解详情。
125
+
126
+ <div align="right">
127
+
128
+ [![][back-to-top]](#readme-top)
129
+
130
+ </div>
131
+
113
132
  [![][image-feat-privoder]][docs-feat-provider]
114
133
 
115
- ### `1` [多模型服务商支持][docs-feat-provider]
134
+ ### `2` [多模型服务商支持][docs-feat-provider]
116
135
 
117
136
  在 LobeChat 的不断发展过程中,我们深刻理解到在提供 AI 会话服务时模型服务商的多样性对于满足社区需求的重要性。因此,我们不再局限于单一的模型服务商,而是拓展了对多种模型服务商的支持,以便为用户提供更为丰富和多样化的会话选择。
118
137
 
@@ -145,7 +164,7 @@
145
164
 
146
165
  [![][image-feat-local]][docs-feat-local]
147
166
 
148
- ### `2` [支持本地大语言模型 (LLM)][docs-feat-local]
167
+ ### `3` [支持本地大语言模型 (LLM)][docs-feat-local]
149
168
 
150
169
  为了满足特定用户的需求,LobeChat 还基于 [Ollama](https://ollama.ai) 支持了本地模型的使用,让用户能够更灵活地使用自己的或第三方的模型。
151
170
 
@@ -161,7 +180,7 @@
161
180
 
162
181
  [![][image-feat-vision]][docs-feat-vision]
163
182
 
164
- ### `3` [模型视觉识别 (Model Visual)][docs-feat-vision]
183
+ ### `4` [模型视觉识别 (Model Visual)][docs-feat-vision]
165
184
 
166
185
  LobeChat 已经支持 OpenAI 最新的 [`gpt-4-vision`](https://platform.openai.com/docs/guides/vision) 支持视觉识别的模型,这是一个具备视觉识别能力的多模态应用。
167
186
  用户可以轻松上传图片或者拖拽图片到对话框中,助手将能够识别图片内容,并在此基础上进行智能对话,构建更智能、更多元化的聊天场景。
@@ -176,7 +195,7 @@ LobeChat 已经支持 OpenAI 最新的 [`gpt-4-vision`](https://platform.openai.
176
195
 
177
196
  [![][image-feat-tts]][docs-feat-tts]
178
197
 
179
- ### `4` [TTS & STT 语音会话][docs-feat-tts]
198
+ ### `5` [TTS & STT 语音会话][docs-feat-tts]
180
199
 
181
200
  LobeChat 支持文字转语音(Text-to-Speech,TTS)和语音转文字(Speech-to-Text,STT)技术,这使得我们的应用能够将文本信息转化为清晰的语音输出,用户可以像与真人交谈一样与我们的对话助手进行交流。
182
201
  用户可以从多种声音中选择,给助手搭配合适的音源。 同时,对于那些倾向于听觉学习或者想要在忙碌中获取信息的用户来说,TTS 提供了一个极佳的解决方案。
@@ -191,7 +210,7 @@ LobeChat 支持文字转语音(Text-to-Speech,TTS)和语音转文字(Spe
191
210
 
192
211
  [![][image-feat-t2i]][docs-feat-t2i]
193
212
 
194
- ### `5` [Text to Image 文生图][docs-feat-t2i]
213
+ ### `6` [Text to Image 文生图][docs-feat-t2i]
195
214
 
196
215
  支持最新的文本到图片生成技术,LobeChat 现在能够让用户在与助手对话中直接调用文生图工具进行创作。
197
216
  通过利用 [`DALL-E 3`](https://openai.com/dall-e-3)、[`MidJourney`](https://www.midjourney.com/) 和 [`Pollinations`](https://pollinations.ai/) 等 AI 工具的能力, 助手们现在可以将你的想法转化为图像。
@@ -205,7 +224,7 @@ LobeChat 支持文字转语音(Text-to-Speech,TTS)和语音转文字(Spe
205
224
 
206
225
  [![][image-feat-plugin]][docs-feat-plugin]
207
226
 
208
- ### `6` [插件系统 (Function Calling)][docs-feat-plugin]
227
+ ### `7` [插件系统 (Tools Calling)][docs-feat-plugin]
209
228
 
210
229
  LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地增强了 ChatGPT 的实用性和灵活性。
211
230
 
@@ -238,7 +257,7 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
238
257
 
239
258
  [![][image-feat-agent]][docs-feat-agent]
240
259
 
241
- ### `7` [助手市场 (GPTs)][docs-feat-agent]
260
+ ### `8` [助手市场 (GPTs)][docs-feat-agent]
242
261
 
243
262
  在 LobeChat 的助手市场中,创作者们可以发现一个充满活力和创新的社区,它汇聚了众多精心设计的助手,这些助手不仅在工作场景中发挥着重要作用,也在学习过程中提供了极大的便利。
244
263
  我们的市场不仅是一个展示平台,更是一个协作的空间。在这里,每个人都可以贡献自己的智慧,分享个人开发的助手。
@@ -279,7 +298,7 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
279
298
 
280
299
  [![][image-feat-database]][docs-feat-database]
281
300
 
282
- ### `8` [支持本地 / 远程数据库][docs-feat-database]
301
+ ### `9` [支持本地 / 远程数据库][docs-feat-database]
283
302
 
284
303
  LobeChat 支持同时使用服务端数据库和本地数据库。根据您的需求,您可以选择合适的部署方案:
285
304
 
@@ -296,7 +315,7 @@ LobeChat 支持同时使用服务端数据库和本地数据库。根据您的
296
315
 
297
316
  [![][image-feat-auth]][docs-feat-auth]
298
317
 
299
- ### `9` [支持多用户管理][docs-feat-auth]
318
+ ### `10` [支持多用户管理][docs-feat-auth]
300
319
 
301
320
  LobeChat 支持多用户管理,提供了两种主要的用户认证和管理方案,以满足不同需求:
302
321
 
@@ -314,7 +333,7 @@ LobeChat 支持多用户管理,提供了两种主要的用户认证和管理
314
333
 
315
334
  [![][image-feat-pwa]][docs-feat-pwa]
316
335
 
317
- ### `10` [渐进式 Web 应用 (PWA)][docs-feat-pwa]
336
+ ### `11` [渐进式 Web 应用 (PWA)][docs-feat-pwa]
318
337
 
319
338
  我们深知在当今多设备环境下为用户提供无缝体验的重要性。为此,我们采用了渐进式 Web 应用 [PWA](https://support.google.com/chrome/answer/9658361) 技术,
320
339
  这是一种能够将网页应用提升至接近原生应用体验的现代 Web 技术。通过 PWA,LobeChat 能够在桌面和移动设备上提供高度优化的用户体验,同时保持轻量级和高性能的特点。
@@ -337,7 +356,7 @@ LobeChat 支持多用户管理,提供了两种主要的用户认证和管理
337
356
 
338
357
  [![][image-feat-mobile]][docs-feat-mobile]
339
358
 
340
- ### `11` [移动设备适配][docs-feat-mobile]
359
+ ### `12` [移动设备适配][docs-feat-mobile]
341
360
 
342
361
  针对移动设备进行了一系列的优化设计,以提升用户的移动体验。目前,我们正在对移动端的用户体验进行版本迭代,以实现更加流畅和直观的交互。如果您有任何建议或想法,我们非常欢迎您通过 GitHub Issues 或者 Pull Requests 提供反馈。
343
362
 
@@ -349,7 +368,7 @@ LobeChat 支持多用户管理,提供了两种主要的用户认证和管理
349
368
 
350
369
  [![][image-feat-theme]][docs-feat-theme]
351
370
 
352
- ### `12` [自定义主题][docs-feat-theme]
371
+ ### `13` [自定义主题][docs-feat-theme]
353
372
 
354
373
  作为设计工程师出身,LobeChat 在界面设计上充分考虑用户的个性化体验,因此引入了灵活多变的主题模式,其中包括日间的亮色模式和夜间的深色模式。
355
374
  除了主题模式的切换,还提供了一系列的颜色定制选项,允许用户根据自己的喜好来调整应用的主题色彩。无论是想要沉稳的深蓝,还是希望活泼的桃粉,或者是专业的灰白,用户都能够在 LobeChat 中找到匹配自己风格的颜色选择。
@@ -733,6 +752,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
733
752
  [docs-feat-agent]: https://lobehub.com/docs/usage/features/agent-market
734
753
  [docs-feat-auth]: https://lobehub.com/docs/usage/features/auth
735
754
  [docs-feat-database]: https://lobehub.com/docs/usage/features/database
755
+ [docs-feat-knowledgebase]: https://lobehub.com/blog/knowledge-base
736
756
  [docs-feat-local]: https://lobehub.com/docs/usage/features/local-llm
737
757
  [docs-feat-mobile]: https://lobehub.com/docs/usage/features/mobile
738
758
  [docs-feat-plugin]: https://lobehub.com/docs/usage/features/plugin-system
@@ -778,6 +798,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
778
798
  [image-feat-agent]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670869-f1ffbf66-42b6-42cf-a937-9ce1f8328514.png
779
799
  [image-feat-auth]: https://github.com/lobehub/lobe-chat/assets/17870709/8ce70e15-40df-451e-b700-66090fe5b8c2
780
800
  [image-feat-database]: https://github.com/lobehub/lobe-chat/assets/17870709/c27a0234-a4e9-40e5-8bcb-42d5ce7e40f9
801
+ [image-feat-knowledgebase]: https://github.com/user-attachments/assets/77e58e1c-c82f-4341-b159-f4eeede9967f
781
802
  [image-feat-local]: https://github.com/lobehub/lobe-chat/assets/28616219/ca9a21bc-ea6c-4c90-bf4a-fa53b4fb2b5c
782
803
  [image-feat-mobile]: https://gw.alipayobjects.com/zos/kitchen/R441AuFS4W/mobile.webp
783
804
  [image-feat-plugin]: https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670883-33c43a5c-a512-467e-855c-fa299548cce5.png
@@ -6,7 +6,7 @@ LOGTO_CLIENT_SECRET=
6
6
  MINIO_ROOT_USER=YOUR_MINIO_USER
7
7
  MINIO_ROOT_PASSWORD=YOUR_MINIO_PASSWORD
8
8
 
9
- # 在下方配置 minio 中添加的桶
9
+ # Configure the bucket information of MinIO
10
10
  MINIO_LOBE_BUCKET=lobe
11
11
  S3_ACCESS_KEY_ID=
12
12
  S3_SECRET_ACCESS_KEY=
@@ -1,35 +1,56 @@
1
- # LobeChat domain
1
+ # Required: LobeChat domain for tRPC calls
2
+ # Ensure this domain is whitelisted in your NextAuth providers and S3 service CORS settings
2
3
  APP_URL=https://lobe.example.com/
3
4
 
4
- # Postgres related, which are the necessary environment variables for DB
5
- # Key used to encrypt sensitive information; can be generated using openssl rand -base64 32
5
+ # Postgres related environment variables
6
+ # Required: Secret key for encrypting sensitive information. Generate with: openssl rand -base64 32
6
7
  KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
7
- # Postgres database connection string
8
- # Format: postgres://username:password@host:port/dbname; if your pg instance is a Docker container, use the container name
8
+ # Required: Postgres database connection string
9
+ # Format: postgresql://username:password@host:port/dbname
10
+ # If using Docker, you can use the container name as the host
9
11
  DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/postgres
10
12
 
11
- # NEXT_AUTH related; can use auth0, Azure AD, GitHub, Authentik, Zitadel, Logto, etc. If you have other integration requests, feel free to submit a PR.
12
- # Here we take Logto as an example
13
+ # NEXT_AUTH related environment variables
14
+ # Supports auth0, Azure AD, GitHub, Authentik, Zitadel, Logto, etc.
15
+ # For supported providers, see: https://lobehub.com/docs/self-hosting/advanced/auth#next-auth
16
+ # If you have ACCESS_CODE, please remove it. We use NEXT_AUTH as the sole authentication source
17
+ # Required: NextAuth secret key. Generate with: openssl rand -base64 32
13
18
  NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
19
+ # Required: Specify the authentication provider (e.g., Logto)
14
20
  NEXT_AUTH_SSO_PROVIDERS=logto
21
+ # Required: NextAuth URL for callbacks
15
22
  NEXTAUTH_URL=https://lobe.example.com/api/auth
23
+
24
+ # NextAuth providers configuration (example using Logto)
25
+ # For other providers, see: https://lobehub.com/docs/self-hosting/environment-variables/auth
16
26
  LOGTO_CLIENT_ID=YOUR_LOGTO_CLIENT_ID
17
27
  LOGTO_CLIENT_SECRET=YOUR_LOGTO_CLIENT_SECRET
18
28
  LOGTO_ISSUER=https://lobe-auth-api.example.com/oidc
19
- # Note: If you have ACCESS_CODE, be sure to clear it. We use NEXT_AUTH as the only authentication source.
20
- # Proxy, if you need it (e.g., if you use GitHub as an authentication service provider)
29
+
30
+ # Proxy settings (if needed, e.g., when using GitHub as an auth provider)
21
31
  # HTTP_PROXY=http://localhost:7890
22
32
  # HTTPS_PROXY=http://localhost:7890
23
33
 
24
- # MinIO S3 configuration
25
- S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID # Invalid until manually created in MinIO UI
26
- S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY # Invalid until manually created in MinIO UI
34
+ # S3 related environment variables (example using MinIO)
35
+ # Required: S3 Access Key ID (for MinIO, invalid until manually created in MinIO UI)
36
+ S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID
37
+ # Required: S3 Secret Access Key (for MinIO, invalid until manually created in MinIO UI)
38
+ S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY
39
+ # Required: S3 Endpoint for server/client connections to S3 API
27
40
  S3_ENDPOINT=https://lobe-s3-api.example.com
28
- S3_BUCKET=lobe # Invalid until manually created in MinIO UI
41
+ # Required: S3 Bucket (invalid until manually created in MinIO UI)
42
+ S3_BUCKET=lobe
43
+ # Required: S3 Public Domain for client access to unstructured data
29
44
  S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com
45
+ # Optional: S3 Enable Path Style
46
+ # Use 0 for mainstream S3 cloud providers; use 1 for self-hosted MinIO
47
+ # See: https://lobehub.com/docs/self-hosting/advanced/s3#s-3-enable-path-style
30
48
  S3_ENABLE_PATH_STYLE=1
31
49
 
32
- # Other environment variables, as needed. You can refer to the environment variables configuration for the client version, making sure not to have ACCESS_CODE.
50
+ # Other basic environment variables (as needed)
51
+ # See: https://lobehub.com/docs/self-hosting/environment-variables/basic
52
+ # Note: For server versions, the API must support embedding models (OpenAI text-embedding-3-small) for file processing
53
+ # You don't need to specify this model in OPENAI_MODEL_LIST
33
54
  # OPEANAI_API_KEY=sk-xxxx
34
55
  # OPENAI_PROXY_URL=https://api.openai.com/v1
35
- # OPENAI_MODEL_LIST=...
56
+ # OPENAI_MODEL_LIST=...
@@ -1,35 +1,55 @@
1
- # LobeChat 域名
1
+ # 必填,LobeChat 域名,用于 tRPC 调用
2
+ # 请保证此域名在你的 NextAuth 鉴权服务提供商、S3 服务商的 CORS 白名单中
2
3
  APP_URL=https://lobe.example.com/
3
4
 
4
- # Postgres 相关,也即 DB 必须的环境变量
5
- # 用于加密敏感信息的密钥,可以使用 openssl rand -base64 32 生成
5
+ # Postgres 相关,也即 DB 必需的环境变量
6
+ # 必填,用于加密敏感信息的密钥,可以使用 openssl rand -base64 32 生成
6
7
  KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
7
- # Postgres 数据库连接字符串
8
- # 格式:postgres://username:password@host:port/dbname,如果你的 pg 实例为 Docker 容器,请使用容器名
8
+ # 必填,Postgres 数据库连接字符串,用于连接到数据库
9
+ # 格式:postgresql://username:password@host:port/dbname,如果你的 pg 实例为 Docker 容器且位于同一 docker-compose 文件中,亦可使用容器名作为 host
9
10
  DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/postgres
10
11
 
11
- # NEXT_AUTH 相关,可以使用 auth0、Azure AD、GitHub、Authentik、Zitadel、Logto 等,如有其他接入诉求欢迎提 PR
12
- # 这里以 Logto 为例
12
+ # NEXT_AUTH 相关,也即鉴权服务必需的环境变量
13
+ # 可以使用 auth0、Azure AD、GitHub、Authentik、Zitadel、Logto 等,如有其他接入诉求欢迎提 PR
14
+ # 目前支持的鉴权服务提供商请参考:https://lobehub.com/zh/docs/self-hosting/advanced/auth#next-auth
15
+ # 如果你有 ACCESS_CODE,请务必清空,我们以 NEXT_AUTH 作为唯一鉴权来源
16
+ # 必填,用于 NextAuth 的密钥,可以使用 openssl rand -base64 32 生成
13
17
  NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
18
+ # 必填,指定鉴权服务提供商,这里以 Logto 为例
14
19
  NEXT_AUTH_SSO_PROVIDERS=logto
20
+ # 必填,NextAuth 的 URL,用于 NextAuth 的回调
15
21
  NEXTAUTH_URL=https://lobe.example.com/api/auth
22
+
23
+ # NextAuth 鉴权服务提供商部分,以 Logto 为例
24
+ # 其他鉴权服务提供商所需的环境变量,请参考:https://lobehub.com/zh/docs/self-hosting/environment-variables/auth
16
25
  LOGTO_CLIENT_ID=YOUR_LOGTO_CLIENT_ID
17
26
  LOGTO_CLIENT_SECRET=YOUR_LOGTO_CLIENT_SECRET
18
27
  LOGTO_ISSUER=https://lobe-auth-api.example.com/oidc
19
- # 注:如果你有 ACCESS_CODE,请务必清空,我们以 NEXT_AUTH 作为唯一鉴权来源
20
- # Proxy,如果你需要的话(比如你使用 GitHub 作为鉴权服务提供商)
28
+
29
+ # 代理相关,如果你需要的话(比如你使用 GitHub 作为鉴权服务提供商)
21
30
  # HTTP_PROXY=http://localhost:7890
22
31
  # HTTPS_PROXY=http://localhost:7890
23
32
 
24
- # MinIO S3 配置
25
- S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID # 直到在 MinIO UI 中手动创建之前都是无效的
26
- S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY # 直到在 MinIO UI 中手动创建之前都是无效的
33
+ # S3 相关,也即非结构化数据(文件、图片等)存储必需的环境变量
34
+ # 这里以 MinIO 为例
35
+ # 必填,S3 的 Access Key ID,对于 MinIO 来说,直到在 MinIO UI 中手动创建之前都是无效的
36
+ S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID
37
+ # 必填,S3 的 Secret Access Key,对于 MinIO 来说,直到在 MinIO UI 中手动创建之前都是无效的
38
+ S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY
39
+ # 必填,S3 的 Endpoint,用于服务端/客户端连接到 S3 API
27
40
  S3_ENDPOINT=https://lobe-s3-api.example.com
28
- S3_BUCKET=lobe # 直到在 MinIO UI 中手动创建之前都是无效的
41
+ # 必填,S3 的 Bucket,直到在 MinIO UI 中手动创建之前都是无效的
42
+ S3_BUCKET=lobe
43
+ # 必填,S3 的 Public Domain,用于客户端通过公开连接访问非结构化数据
29
44
  S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com
45
+ # 选填,S3 的 Enable Path Style
46
+ # 对于主流 S3 Cloud 服务商,一般填 0 即可;对于自部署的 MinIO,请填 1
47
+ # 请参考:https://lobehub.com/zh/docs/self-hosting/advanced/s3#s-3-enable-path-style
30
48
  S3_ENABLE_PATH_STYLE=1
31
49
 
32
- # 其他环境变量,视需求而定,可以参照客户端版本的环境变量配置,注意不要有 ACCESS_CODE
50
+ # 其他基础环境变量,视需求而定。注意不要有 ACCESS_CODE
51
+ # 请参考:https://lobehub.com/zh/docs/self-hosting/environment-variables/basic
52
+ # 请注意,对于服务端版本,其 API 必须支持嵌入(即 OpenAI text-embedding-3-small)模型,否则无法对上传文件进行处理,但你无需在 OPENAI_MODEL_LIST 中指定此模型
33
53
  # OPEANAI_API_KEY=sk-xxxx
34
54
  # OPENAI_PROXY_URL=https://api.openai.com/v1
35
55
  # OPENAI_MODEL_LIST=...
@@ -63,7 +63,7 @@ identity_providers:
63
63
  | `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://chat.example.com/api/auth` |
64
64
 
65
65
  <Callout type={'tip'}>
66
- 前往 [📘 环境变量](/docs/self-hosting/environment-variable#Authelia) 可查阅相关变量详情。
66
+ 前往 [📘 环境变量](/zh/docs/self-hosting/environment-variable#Authelia) 可查阅相关变量详情。
67
67
 
68
68
  </Callout>
69
69
  </Steps>
@@ -57,7 +57,7 @@ https://your-domain/api/auth/callback/authentik
57
57
  | `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
58
58
 
59
59
  <Callout type={'tip'}>
60
- 前往 [📘 环境变量](/docs/self-hosting/environment-variable#Authentik) 可查阅相关变量详情。
60
+ 前往 [📘 环境变量](/zh/docs/self-hosting/environment-variable#Authentik) 可查阅相关变量详情。
61
61
 
62
62
  </Callout>
63
63
  </Steps>
@@ -55,7 +55,7 @@ tags:
55
55
  | `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://chat.example.com/api/auth` |
56
56
 
57
57
  <Callout type={'tip'}>
58
- 前往 [📘 环境变量](/docs/self-hosting/environment-variable#Cloudflare%20Zero%20Trust) 可查阅相关变量详情。
58
+ 前往 [📘 环境变量](/zh/docs/self-hosting/environment-variable#Cloudflare%20Zero%20Trust) 可查阅相关变量详情。
59
59
 
60
60
  </Callout>
61
61
  </Steps>
@@ -85,7 +85,7 @@ tags:
85
85
  | `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
86
86
 
87
87
  <Callout type={'tip'}>
88
- 前往 [📘 环境变量](/docs/self-hosting/environment-variables/auth#github) 可查阅相关变量详情。
88
+ 前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#github) 可查阅相关变量详情。
89
89
 
90
90
  </Callout>
91
91
  </Steps>