@lobehub/chat 0.128.5 → 0.128.7
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/.i18nrc.js +1 -1
- package/CHANGELOG.md +50 -0
- package/README.md +10 -9
- package/README.zh-CN.md +9 -8
- package/docs/{environment-variables/common.mdx → self-hosting/environment-variables/basic.mdx} +7 -0
- package/docs/{environment-variables/common.zh-CN.mdx → self-hosting/environment-variables/basic.zh-CN.mdx} +7 -0
- package/docs/self-hosting/platform/sealos.mdx +28 -0
- package/docs/self-hosting/platform/sealos.zh-CN.mdx +28 -0
- package/docs/self-hosting/platform/zeabur.mdx +28 -0
- package/docs/self-hosting/platform/zeabur.zh-CN.mdx +28 -0
- package/docs/{agents → usage/agents}/prompt.mdx +1 -1
- package/docs/{agents → usage/agents}/topics.mdx +1 -2
- package/docs/usage/features/local-llm.mdx +33 -0
- package/docs/usage/features/local-llm.zh-CN.mdx +33 -0
- package/docs/usage/features/multi-ai-providers.mdx +24 -0
- package/docs/usage/features/multi-ai-providers.zh-CN.mdx +24 -0
- package/package.json +2 -2
- package/src/app/api/auth/next-auth.ts +1 -0
- package/src/features/SideBar/BottomActions.tsx +4 -7
- package/src/middleware.ts +4 -1
- package/docs/self-hosting/environment-variable.mdx +0 -340
- package/docs/self-hosting/environment-variable.zh-CN.mdx +0 -344
- /package/docs/self-hosting/{analytics.mdx → advanced/analytics.mdx} +0 -0
- /package/docs/self-hosting/{analytics.zh-CN.mdx → advanced/analytics.zh-CN.mdx} +0 -0
- /package/docs/self-hosting/{authentication.mdx → advanced/authentication.mdx} +0 -0
- /package/docs/self-hosting/{authentication.zh-CN.mdx → advanced/authentication.zh-CN.mdx} +0 -0
- /package/docs/self-hosting/{upstream-sync.mdx → advanced/upstream-sync.mdx} +0 -0
- /package/docs/self-hosting/{upstream-sync.zh-CN.mdx → advanced/upstream-sync.zh-CN.mdx} +0 -0
- /package/docs/{environment-variables → self-hosting/environment-variables}/model-provider.mdx +0 -0
- /package/docs/{environment-variables → self-hosting/environment-variables}/model-provider.zh-CN.mdx +0 -0
- /package/docs/self-hosting/{deploy-with-azure-openai.mdx → examples/azure-openai.mdx} +0 -0
- /package/docs/self-hosting/{deploy-with-azure-openai.zh-CN.mdx → examples/azure-openai.zh-CN.mdx} +0 -0
- /package/docs/{common-errors → self-hosting/faq}/no-v1-suffix.mdx +0 -0
- /package/docs/{common-errors → self-hosting/faq}/no-v1-suffix.zh-CN.mdx +0 -0
- /package/docs/{common-errors → self-hosting/faq}/proxy-with-unable-to-verify-leaf-signature.mdx +0 -0
- /package/docs/{common-errors → self-hosting/faq}/proxy-with-unable-to-verify-leaf-signature.zh-CN.mdx +0 -0
- /package/docs/self-hosting/{docker-compose.mdx → platform/docker-compose.mdx} +0 -0
- /package/docs/self-hosting/{docker-compose.zh-CN.mdx → platform/docker-compose.zh-CN.mdx} +0 -0
- /package/docs/self-hosting/{docker.mdx → platform/docker.mdx} +0 -0
- /package/docs/self-hosting/{docker.zh-CN.mdx → platform/docker.zh-CN.mdx} +0 -0
- /package/docs/self-hosting/{vercel.mdx → platform/vercel.mdx} +0 -0
- /package/docs/self-hosting/{vercel.zh-CN.mdx → platform/vercel.zh-CN.mdx} +0 -0
- /package/docs/{agents → usage/agents}/concepts.mdx +0 -0
- /package/docs/{agents → usage/agents}/concepts.zh-CN.mdx +0 -0
- /package/docs/{agents → usage/agents}/custom-agent.mdx +0 -0
- /package/docs/{agents → usage/agents}/custom-agent.zh-CN.mdx +0 -0
- /package/docs/{agents → usage/agents}/model.mdx +0 -0
- /package/docs/{agents → usage/agents}/model.zh-CN.mdx +0 -0
- /package/docs/{agents → usage/agents}/prompt.zh-CN.mdx +0 -0
- /package/docs/{agents → usage/agents}/topics.zh-CN.mdx +0 -0
- /package/docs/usage/{agent-market.mdx → features/agent-market.mdx} +0 -0
- /package/docs/usage/{agent-market.zh-CN.mdx → features/agent-market.zh-CN.mdx} +0 -0
- /package/docs/usage/{mobile.mdx → features/mobile.mdx} +0 -0
- /package/docs/usage/{mobile.zh-CN.mdx → features/mobile.zh-CN.mdx} +0 -0
- /package/docs/usage/{more.mdx → features/more.mdx} +0 -0
- /package/docs/usage/{more.zh-CN.mdx → features/more.zh-CN.mdx} +0 -0
- /package/docs/usage/{plugin-system.mdx → features/plugin-system.mdx} +0 -0
- /package/docs/usage/{plugin-system.zh-CN.mdx → features/plugin-system.zh-CN.mdx} +0 -0
- /package/docs/usage/{pwa.mdx → features/pwa.mdx} +0 -0
- /package/docs/usage/{pwa.zh-CN.mdx → features/pwa.zh-CN.mdx} +0 -0
- /package/docs/usage/{text-to-image.mdx → features/text-to-image.mdx} +0 -0
- /package/docs/usage/{text-to-image.zh-CN.mdx → features/text-to-image.zh-CN.mdx} +0 -0
- /package/docs/usage/{theme.mdx → features/theme.mdx} +0 -0
- /package/docs/usage/{theme.zh-CN.mdx → features/theme.zh-CN.mdx} +0 -0
- /package/docs/usage/{tts.mdx → features/tts.mdx} +0 -0
- /package/docs/usage/{tts.zh-CN.mdx → features/tts.zh-CN.mdx} +0 -0
- /package/docs/usage/{vision.mdx → features/vision.mdx} +0 -0
- /package/docs/usage/{vision.zh-CN.mdx → features/vision.zh-CN.mdx} +0 -0
- /package/docs/{plugins → usage/plugins}/basic-usage.mdx +0 -0
- /package/docs/{plugins → usage/plugins}/basic-usage.zh-CN.mdx +0 -0
- /package/docs/{plugins → usage/plugins}/custom-plugin.mdx +0 -0
- /package/docs/{plugins → usage/plugins}/custom-plugin.zh-CN.mdx +0 -0
- /package/docs/{plugins → usage/plugins}/plugin-development.mdx +0 -0
- /package/docs/{plugins → usage/plugins}/plugin-development.zh-CN.mdx +0 -0
- /package/docs/{plugins → usage/plugins}/plugin-store.mdx +0 -0
- /package/docs/{plugins → usage/plugins}/plugin-store.zh-CN.mdx +0 -0
package/.i18nrc.js
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.128.7](https://github.com/lobehub/lobe-chat/compare/v0.128.6...v0.128.7)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-02-20**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **misc**: Improve docs url and add more docs.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **misc**: Improve docs url and add more docs, closes [#1329](https://github.com/lobehub/lobe-chat/issues/1329) ([85b3136](https://github.com/lobehub/lobe-chat/commit/85b3136))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
### [Version 0.128.6](https://github.com/lobehub/lobe-chat/compare/v0.128.5...v0.128.6)
|
|
31
|
+
|
|
32
|
+
<sup>Released on **2024-02-20**</sup>
|
|
33
|
+
|
|
34
|
+
#### 🐛 Bug Fixes
|
|
35
|
+
|
|
36
|
+
- **misc**: Fix OAuth errors on Docker deployment.
|
|
37
|
+
|
|
38
|
+
<br/>
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
42
|
+
|
|
43
|
+
#### What's fixed
|
|
44
|
+
|
|
45
|
+
- **misc**: Fix OAuth errors on Docker deployment, closes [#1323](https://github.com/lobehub/lobe-chat/issues/1323) ([922e843](https://github.com/lobehub/lobe-chat/commit/922e843))
|
|
46
|
+
|
|
47
|
+
</details>
|
|
48
|
+
|
|
49
|
+
<div align="right">
|
|
50
|
+
|
|
51
|
+
[](#readme-top)
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
5
55
|
### [Version 0.128.5](https://github.com/lobehub/lobe-chat/compare/v0.128.4...v0.128.5)
|
|
6
56
|
|
|
7
57
|
<sup>Released on **2024-02-18**</sup>
|
package/README.md
CHANGED
|
@@ -44,7 +44,8 @@ Supports one-click free deployment of your private ChatGPT/LLM web application.
|
|
|
44
44
|
|
|
45
45
|
[![][github-trending-shield]][github-trending-url]
|
|
46
46
|
|
|
47
|
-

|
|
48
|
+

|
|
48
49
|
|
|
49
50
|
</div>
|
|
50
51
|
|
|
@@ -225,14 +226,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
|
|
|
225
226
|
|
|
226
227
|
<!-- AGENT LIST -->
|
|
227
228
|
|
|
228
|
-
| Recent Submits
|
|
229
|
-
|
|
|
230
|
-
| [
|
|
231
|
-
| [
|
|
232
|
-
| [
|
|
233
|
-
| [
|
|
229
|
+
| Recent Submits | Description |
|
|
230
|
+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
231
|
+
| [Facebook Advertising Writing Expert](https://chat-preview.lobehub.com/market?agent=facebook-advertising-writing-expert)<br/><sup>By **[pllz7](https://github.com/pllz7)** on **2024-02-19**</sup> | Specializing in creating attention-grabbing headlines, compelling primary texts, and effective ad copy<br/>`facebook` `advertising` `writing` `expert` `ecommerce` |
|
|
232
|
+
| [Jira Story Facilitator](https://chat-preview.lobehub.com/market?agent=jira-product-manager)<br/><sup>By **[emad-pg](https://github.com/emad-pg)** on **2024-02-19**</sup> | Specialized in transforming feature ideas into comprehensive Jira stories<br/>`technical-product-management` `story-creation` `jira` |
|
|
233
|
+
| [ThinkTank360](https://chat-preview.lobehub.com/market?agent=think-tank-business-strategy)<br/><sup>By **[mikelix](https://github.com/mikelix)** on **2024-02-19**</sup> | Skilled consultant channeling wisdom of Steve Jobs, Elon Musk, MA Yun, Plato, and Ray Dalio for decision reviews, judgements, and advice.<br/>`innovation` `wisdom` `think-tank` `business-strategy` |
|
|
234
|
+
| [Translation Specialist](https://chat-preview.lobehub.com/market?agent=translation-specialist)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-02-19**</sup> | Expert translator fluent in Spanish and English<br/>`translation` `language` `expert` `guidelines` |
|
|
234
235
|
|
|
235
|
-
> 📊 Total agents: [<kbd>**
|
|
236
|
+
> 📊 Total agents: [<kbd>**181**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
236
237
|
|
|
237
238
|
<!-- AGENT LIST -->
|
|
238
239
|
|
|
@@ -244,7 +245,7 @@ Our marketplace is not just a showcase platform but also a collaborative space.
|
|
|
244
245
|
|
|
245
246
|

|
|
246
247
|
|
|
247
|
-
#### `6`
|
|
248
|
+
#### `6` Progressive Web App
|
|
248
249
|
|
|
249
250
|
We deeply understand the importance of providing a seamless experience for users in today's multi-device environment.
|
|
250
251
|
Therefore, we have adopted Progressive Web Application ([PWA](https://support.google.com/chrome/answer/9658361)) technology,
|
package/README.zh-CN.md
CHANGED
|
@@ -42,7 +42,8 @@ LobeChat 是开源的高性能聊天机器人框架,支持语音合成、多
|
|
|
42
42
|
|
|
43
43
|
[![][github-trending-shield]][github-trending-url]
|
|
44
44
|
|
|
45
|
-

|
|
46
|
+

|
|
46
47
|
|
|
47
48
|
</div>
|
|
48
49
|
|
|
@@ -205,14 +206,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
|
|
|
205
206
|
|
|
206
207
|
<!-- AGENT LIST -->
|
|
207
208
|
|
|
208
|
-
| 最近新增
|
|
209
|
-
|
|
|
210
|
-
| [
|
|
211
|
-
| [
|
|
212
|
-
| [
|
|
213
|
-
| [
|
|
209
|
+
| 最近新增 | 助手说明 |
|
|
210
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
211
|
+
| [Facebook 广告撰写专家](https://chat-preview.lobehub.com/market?agent=facebook-advertising-writing-expert)<br/><sup>By **[pllz7](https://github.com/pllz7)** on **2024-02-19**</sup> | 专注于创建引人注目的标题、引人入胜的主体文本和有效的广告文案<br/>`facebook` `advertising` `writing` `expert` `ecommerce` |
|
|
212
|
+
| [Jira 故事协助工具](https://chat-preview.lobehub.com/market?agent=jira-product-manager)<br/><sup>By **[emad-pg](https://github.com/emad-pg)** on **2024-02-19**</sup> | 专注于将功能点子转化为全面的 Jira 故事<br/>`技术产品管理` `故事创建` `jira` |
|
|
213
|
+
| [ThinkTank360](https://chat-preview.lobehub.com/market?agent=think-tank-business-strategy)<br/><sup>By **[mikelix](https://github.com/mikelix)** on **2024-02-19**</sup> | 熟练的顾问,汲取史蒂夫・乔布斯、埃隆・马斯克、马云、柏拉图和雷・达里奥的智慧,用于决策审查、判断和建议。<br/>`创新` `智慧` `智囊团` `商业策略` |
|
|
214
|
+
| [翻译专家](https://chat-preview.lobehub.com/market?agent=translation-specialist)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-02-19**</sup> | 精通西班牙语和英语的专业翻译人员<br/>`翻译` `语言` `专家` `指南` |
|
|
214
215
|
|
|
215
|
-
> 📊 Total agents: [<kbd>**
|
|
216
|
+
> 📊 Total agents: [<kbd>**181**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
216
217
|
|
|
217
218
|
<!-- AGENT LIST -->
|
|
218
219
|
|
package/docs/{environment-variables/common.mdx → self-hosting/environment-variables/basic.mdx}
RENAMED
|
@@ -71,6 +71,13 @@ Further reading:
|
|
|
71
71
|
- Default: `-`
|
|
72
72
|
- Example: `Tfhi2t2pelSMEA8eaV61KaqPNEndFFdMIxDaJnS1CUI=`
|
|
73
73
|
|
|
74
|
+
#### `NEXTAUTH_URL`
|
|
75
|
+
|
|
76
|
+
- Type: Optional
|
|
77
|
+
- Description: This URL is used to specify the callback address for Auth.js during OAuth authentication. It does not need to be set when deploying on Vercel.
|
|
78
|
+
- Default: `-`
|
|
79
|
+
- Example: `https://example.com/api/auth`
|
|
80
|
+
|
|
74
81
|
### Auth0
|
|
75
82
|
|
|
76
83
|
<Callout>
|
|
@@ -71,6 +71,13 @@ LobeChat 在部署时提供了一些额外的配置项,你可以使用环境
|
|
|
71
71
|
- 默认值: `-`
|
|
72
72
|
- 示例: `Tfhi2t2pelSMEA8eaV61KaqPNEndFFdMIxDaJnS1CUI=`
|
|
73
73
|
|
|
74
|
+
#### `NEXTAUTH_URL`
|
|
75
|
+
|
|
76
|
+
- 类型:可选
|
|
77
|
+
- 描述:该URL用于指定Auth.js在执行OAuth验证时的回调地址,在Vercel上部署时无需设置。
|
|
78
|
+
- 默认值:`-`
|
|
79
|
+
- 示例:`https://example.com/api/auth`
|
|
80
|
+
|
|
74
81
|
### Auth0
|
|
75
82
|
|
|
76
83
|
<Callout>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Steps } from 'nextra/components';
|
|
2
|
+
|
|
3
|
+
# Deploying LobeChat on SealOS
|
|
4
|
+
|
|
5
|
+
If you want to deploy LobeChat on SealOS, you can follow the steps below:
|
|
6
|
+
|
|
7
|
+
## SealOS Deployment Process
|
|
8
|
+
|
|
9
|
+
<Steps>
|
|
10
|
+
|
|
11
|
+
### Prepare your OpenAI API Key
|
|
12
|
+
|
|
13
|
+
Go to [OpenAI](https://platform.openai.com/account/api-keys) to get your OpenAI API Key.
|
|
14
|
+
|
|
15
|
+
### Click the button below to deploy
|
|
16
|
+
|
|
17
|
+
[![][deploy-button-image]][deploy-link]
|
|
18
|
+
|
|
19
|
+
### After deployment, you can start using it
|
|
20
|
+
|
|
21
|
+
### Bind a custom domain (optional)
|
|
22
|
+
|
|
23
|
+
You can use the subdomain provided by SealOS, or choose to bind a custom domain. Currently, the domains provided by SealOS have not been contaminated, and can be directly accessed in most regions.
|
|
24
|
+
|
|
25
|
+
</Steps>
|
|
26
|
+
|
|
27
|
+
[deploy-button-image]: https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg
|
|
28
|
+
[deploy-link]: https://cloud.sealos.io/?openapp=system-template%3FtemplateName%3Dlobe-chat
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Steps } from 'nextra/components';
|
|
2
|
+
|
|
3
|
+
# 使用 SealOS 部署
|
|
4
|
+
|
|
5
|
+
如果想在 SealOS 上部署 LobeChat,可以按照以下步骤进行操作:
|
|
6
|
+
|
|
7
|
+
## SealOS 部署流程
|
|
8
|
+
|
|
9
|
+
<Steps>
|
|
10
|
+
|
|
11
|
+
### 准备好你的 OpenAI API Key
|
|
12
|
+
|
|
13
|
+
前往 [OpenAI](https://platform.openai.com/account/api-keys) 获取你的 OpenAI API Key
|
|
14
|
+
|
|
15
|
+
### 点击下方按钮进行部署
|
|
16
|
+
|
|
17
|
+
[![][deploy-button-image]][deploy-link]
|
|
18
|
+
|
|
19
|
+
[deploy-button-image]: https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg
|
|
20
|
+
[deploy-link]: https://cloud.sealos.io/?openapp=system-template%3FtemplateName%3Dlobe-chat
|
|
21
|
+
|
|
22
|
+
### 部署完毕后,即可开始使用
|
|
23
|
+
|
|
24
|
+
### 绑定自定义域名(可选)
|
|
25
|
+
|
|
26
|
+
你可以使用 SealOS 提供的子域名,也可以选择绑定自定义域名。目前 SealOS 提供的域名还未被污染,大多数地区都可以直连。
|
|
27
|
+
|
|
28
|
+
</Steps>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Steps } from 'nextra/components';
|
|
2
|
+
|
|
3
|
+
# Deploying on Zeabur
|
|
4
|
+
|
|
5
|
+
If you want to deploy LobeChat on Zeabur, you can follow the steps below:
|
|
6
|
+
|
|
7
|
+
## Zeabur Deployment Process
|
|
8
|
+
|
|
9
|
+
<Steps>
|
|
10
|
+
|
|
11
|
+
### Prepare your OpenAI API Key
|
|
12
|
+
|
|
13
|
+
Go to [OpenAI API Key](https://platform.openai.com/account/api-keys) to get your OpenAI API Key.
|
|
14
|
+
|
|
15
|
+
### Click the button below to deploy
|
|
16
|
+
|
|
17
|
+
[![][deploy-button-image]][deploy-link]
|
|
18
|
+
|
|
19
|
+
### Once deployed, you can start using it
|
|
20
|
+
|
|
21
|
+
### Bind a custom domain (optional)
|
|
22
|
+
|
|
23
|
+
You can use the subdomain provided by Zeabur, or choose to bind a custom domain. Currently, the domains provided by Zeabur have not been contaminated, and most regions can connect directly.
|
|
24
|
+
|
|
25
|
+
</Steps>
|
|
26
|
+
|
|
27
|
+
[deploy-button-image]: https://zeabur.com/button.svg
|
|
28
|
+
[deploy-link]: https://zeabur.com/templates/VZGGTI
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Steps } from 'nextra/components';
|
|
2
|
+
|
|
3
|
+
# 使用 Zeabur 部署
|
|
4
|
+
|
|
5
|
+
如果想在 Zeabur 上部署 LobeChat,可以按照以下步骤进行操作:
|
|
6
|
+
|
|
7
|
+
## Zeabur 部署流程
|
|
8
|
+
|
|
9
|
+
<Steps>
|
|
10
|
+
|
|
11
|
+
### 准备好你的 OpenAI API Key
|
|
12
|
+
|
|
13
|
+
前往 [OpenAI API Key](https://platform.openai.com/account/api-keys) 获取你的 OpenAI API Key
|
|
14
|
+
|
|
15
|
+
### 点击下方按钮进行部署
|
|
16
|
+
|
|
17
|
+
[![][deploy-button-image]][deploy-link]
|
|
18
|
+
|
|
19
|
+
[deploy-button-image]: https://zeabur.com/button.svg
|
|
20
|
+
[deploy-link]: https://zeabur.com/templates/VZGGTI
|
|
21
|
+
|
|
22
|
+
### 部署完毕后,即可开始使用
|
|
23
|
+
|
|
24
|
+
### 绑定自定义域名(可选)
|
|
25
|
+
|
|
26
|
+
你可以使用 Zeabur 提供的子域名,也可以选择绑定自定义域名。目前 Zeabur 提供的域名还未被污染,大多数地区都可以直连。
|
|
27
|
+
|
|
28
|
+
</Steps>
|
|
@@ -3,5 +3,4 @@
|
|
|
3
3
|

|
|
4
4
|
|
|
5
5
|
- **Save Topic:** During a conversation, if you want to save the current context and start a new topic, you can click the save button next to the send button.
|
|
6
|
-
- **Topic List:** Clicking on a topic in the list allows for quick switching of historical conversation records and continuing the conversation. You can also use the star icon <kbd>⭐️</kbd> to pin favorite topics to the top, or use the more button on the right to rename or delete topics.
|
|
7
|
-
|
|
6
|
+
- **Topic List:** Clicking on a topic in the list allows for quick switching of historical conversation records and continuing the conversation. You can also use the star icon <kbd>⭐️</kbd> to pin favorite topics to the top, or use the more button on the right to rename or delete topics.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Callout } from 'nextra/components';
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
# Support for Local LLM
|
|
6
|
+
|
|
7
|
+
<Callout>Available in >=v0.127.0, currently only supports Docker deployment</Callout>
|
|
8
|
+
|
|
9
|
+
With the release of LobeChat v0.127.0, we are excited to introduce an exciting feature - Ollama AI support! 🤯 With the collaborative efforts of the [community] (<https://github.com/lobehub/lobe-chat/pull/1265>) and the powerful infrastructure support of [Ollama AI](https://ollama.ai/), you can now engage in conversations with a local LLM (Large Language Model) in LobeChat! 🤩
|
|
10
|
+
|
|
11
|
+
We are thrilled to introduce this revolutionary feature to all LobeChat users at this special moment. The integration of Ollama AI not only signifies a huge leap forward for us technologically, but also promises to continuously pursue more efficient and intelligent communication for our users.
|
|
12
|
+
|
|
13
|
+
### How to start a conversation with a local LLM?
|
|
14
|
+
|
|
15
|
+
The startup process is extremely simple! You just need to run the following Docker command to experience a conversation with a local LLM in LobeChat:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
$ docker run -d -p 3210:3210 -e OLLAMA_PROXY_URL=http://host.docker.internal:11434/v1 lobehub/lobe-chat
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Yes, it's that simple! 🤩 You don't need to go through complicated configurations or worry about a complex installation process. We have prepared everything for you. With just one command, you can engage in deep conversations with AI.
|
|
22
|
+
|
|
23
|
+
### Experience unprecedented interaction speed
|
|
24
|
+
|
|
25
|
+
With the powerful capabilities of Ollama AI, LobeChat has greatly improved its efficiency in natural language processing. Whether it's processing speed or response time, it has reached new heights. This means that your conversation experience will be smoother, without any waiting, and you will receive immediate responses.
|
|
26
|
+
|
|
27
|
+
### Why choose a local LLM?
|
|
28
|
+
|
|
29
|
+
Compared to cloud-based solutions, a local LLM provides higher privacy and security. All your conversations are processed locally, without going through any external servers, ensuring the security of your data. In addition, local processing can also reduce network latency, providing you with a more immediate communication experience.
|
|
30
|
+
|
|
31
|
+
### Embark on your journey with LobeChat & Ollama AI
|
|
32
|
+
|
|
33
|
+
Now, let's embark on this exciting journey together! Through the collaboration of LobeChat and Ollama AI, explore the infinite possibilities brought by AI. Whether you are a tech enthusiast or simply curious about AI communication, LobeChat will provide you with an unprecedented experience.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Callout } from 'nextra/components';
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
# 支持本地 LLM
|
|
6
|
+
|
|
7
|
+
<Callout>在 >=v0.127.0 版本中可用,目前仅支持 Docker 部署</Callout>
|
|
8
|
+
|
|
9
|
+
随着 LobeChat v0.127.0 的发布,我们迎来了一个激动人心的特性 —— Ollama AI 支持!🤯 在[社区的共同努力] (https://github.com/lobehub/lobe-chat/pull/1265) 和 [Ollama AI](https://ollama.ai/) 强大的基础设施支持下,现在您可以在 LobeChat 中与本地 LLM (Large Language Model) 进行交流了!🤩
|
|
10
|
+
|
|
11
|
+
我们非常高兴能在这个特别的时刻,向所有 LobeChat 用户介绍这项革命性的特性。Ollama AI 的集成不仅标志着我们技术上的一个巨大飞跃,更是向用户承诺,我们将不断追求更高效、更智能的沟通方式。
|
|
12
|
+
|
|
13
|
+
### 如何启动与本地 LLM 的对话?
|
|
14
|
+
|
|
15
|
+
启动过程异常简单!您只需运行以下 Docker 命令行,就可以在 LobeChat 中体验与本地 LLM 的对话了:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
$ docker run -d -p 3210:3210 -e OLLAMA_PROXY_URL=http://host.docker.internal:11434/v1 lobehub/lobe-chat
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
是的,就是这么简单!🤩 您不需要进行繁杂的配置,也不必担心复杂的安装过程。我们已经为您准备好了一切,只需一行命令,即可开启与 AI 的深度对话。
|
|
22
|
+
|
|
23
|
+
### 体验前所未有的交互速度
|
|
24
|
+
|
|
25
|
+
借助 Ollama AI 的强大能力,LobeChat 在进行自然语言处理方面的效率得到了极大的提升。无论是处理速度还是响应时间,都达到了新的高度。这意味着您的对话体验将更加流畅,无需等待,即时得到回应。
|
|
26
|
+
|
|
27
|
+
### 为什么选择本地 LLM?
|
|
28
|
+
|
|
29
|
+
与基于云的解决方案相比,本地 LLM 提供了更高的隐私性和安全性。您的所有对话都在本地处理,不经过任何外部服务器,确保了您的数据安全性。此外,本地处理还能减少网络延迟,为您带来更加即时的交流体验。
|
|
30
|
+
|
|
31
|
+
### 开启您的 LobeChat & Ollama AI 之旅
|
|
32
|
+
|
|
33
|
+
现在,就让我们一起开启这段激动人心的旅程吧!通过 LobeChat 与 Ollama AI 的协作,探索 AI 带来的无限可能。无论您是技术爱好者,还是对 AI 交流充满好奇,LobeChat 都将为您提供一场前所未有的体验。
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Callout } from 'nextra/components';
|
|
2
|
+
|
|
3
|
+
# Multi-Model Service Provider Support
|
|
4
|
+
|
|
5
|
+
<Callout>Available in >=v0.123.0, currently only supports Docker deployment</Callout>
|
|
6
|
+
|
|
7
|
+
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 provide users with a richer and more diverse selection of conversations.
|
|
8
|
+
|
|
9
|
+
In this way, LobeChat can more flexibly adapt to the needs of different users, while also providing developers with a wider range of choices.
|
|
10
|
+
|
|
11
|
+
## Supported Model Service Providers
|
|
12
|
+
|
|
13
|
+
We have implemented support for the following model service providers:
|
|
14
|
+
|
|
15
|
+
- **AWS Bedrock**: Integrated AWS's Bedrock model, providing powerful natural language processing capabilities. [AWS Bedrock Details](https://aws.amazon.com/bedrock)
|
|
16
|
+
- **Google AI (Gemini Pro, Gemini Vision)**: Access to Google's Gemini series models, including Gemini and Gemini Pro, to support advanced language understanding and generation. [Google AI Details](https://deepmind.google/technologies/gemini/)
|
|
17
|
+
- **ChatGLM**: Added the ChatGLM series models (GLM-4/GLM-4-vision/GLM-3-turbo) from Zhīpǔ AI, providing users with another efficient conversation model choice. [Zhīpǔ AI Details](https://www.zhipuai.cn/)
|
|
18
|
+
- **Moonshot AI (Dark Side of the Moon)**: Integrated Moonshot AI's models, an innovative AI startup from China, aimed at providing deeper conversation understanding. [Moonshot AI](https://www.moonshot.cn/)
|
|
19
|
+
|
|
20
|
+
At the same time, we are also planning to support more model service providers, such as Replicate and Perplexity, to further enrich our service provider library. If you would like LobeChat to support your favorite service provider, feel free to join our [community discussions](https://github.com/lobehub/lobe-chat/discussions/1284).
|
|
21
|
+
|
|
22
|
+
## Local Model Support
|
|
23
|
+
|
|
24
|
+
To meet the specific needs of users, LobeChat also supports the use of local models based on [Ollama](https://ollama.ai), allowing users to more flexibly use their own or third-party models. For more details, see [Local Model Support](/en/features/local-llm).
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Callout } from 'nextra/components';
|
|
2
|
+
|
|
3
|
+
# 多模型服务商支持
|
|
4
|
+
|
|
5
|
+
<Callout>在 >=v0.123.0 版本中可用,目前仅支持 Docker 部署</Callout>
|
|
6
|
+
|
|
7
|
+
在 LobeChat 的不断发展过程中,我们深刻理解到在提供AI会话服务时模型服务商的多样性对于满足社区需求的重要性。因此,我们不再局限于单一的模型服务商,而是拓展了对多种模型服务商的支持,以便为用户提供更为丰富和多样化的会话选择。
|
|
8
|
+
|
|
9
|
+
通过这种方式,LobeChat 能够更灵活地适应不同用户的需求,同时也为开发者提供了更为广泛的选择空间。
|
|
10
|
+
|
|
11
|
+
## 已支持的模型服务商
|
|
12
|
+
|
|
13
|
+
我们已经实现了对以下模型服务商的支持:
|
|
14
|
+
|
|
15
|
+
- **AWS Bedrock**:集成了 AWS 的 Bedrock 模型,提供了强大的自然语言处理能力。[AWS Bedrock 详细介绍](https://aws.amazon.com/cn/bedrock)
|
|
16
|
+
- **Google AI (Gemini Pro、Gemini Vision)**:接入了 Google 的 Gemini 系列模型,包括 Gemini 和 Gemini Pro,以支持更高级的语言理解和生成。[Google AI 详细介绍](https://deepmind.google/technologies/gemini/)
|
|
17
|
+
- **ChatGLM**:加入了智谱的 ChatGLM 系列模型(GLM-4/GLM-4-vision/GLM-3-turbo),为用户提供了另一种高效的会话模型选择。[智谱 AI 详细介绍](https://www.zhipuai.cn/)
|
|
18
|
+
- **Moonshot AI (月之暗面)**:集成了 Moonshot AI 的模型,这是一家来自中国的创新性 AI 创业公司,旨在提供更深层次的会话理解。[Moonshot AI](https://www.moonshot.cn/)
|
|
19
|
+
|
|
20
|
+
同时,我们也在计划支持更多的模型服务商,如 replicate 和 Perplexity 等,以进一步丰富我们的服务商库。如果你希望让 LobeChat 支持你喜爱的服务商,欢迎加入我们的[社区讨论](https://github.com/lobehub/lobe-chat/discussions/1284)。
|
|
21
|
+
|
|
22
|
+
## 本地模型支持
|
|
23
|
+
|
|
24
|
+
为了满足特定用户的需求,LobeChat 还基于 [Ollama](https://ollama.ai) 支持了本地模型的使用,让用户能够更灵活地使用自己的或第三方的模型,详见 [本地模型支持](/zh/features/local-llm)。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.128.
|
|
3
|
+
"version": "0.128.7",
|
|
4
4
|
"description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"framework",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"modern-screenshot": "^4",
|
|
107
107
|
"nanoid": "^5",
|
|
108
108
|
"next": "^14.1",
|
|
109
|
-
"next-auth": "beta",
|
|
109
|
+
"next-auth": "5.0.0-beta.11",
|
|
110
110
|
"numeral": "^2.0.6",
|
|
111
111
|
"nuqs": "^1.15.4",
|
|
112
112
|
"openai": "^4.22",
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
Settings,
|
|
12
12
|
Settings2,
|
|
13
13
|
} from 'lucide-react';
|
|
14
|
+
import Link from 'next/link';
|
|
14
15
|
import { useRouter } from 'next/navigation';
|
|
15
16
|
import { memo } from 'react';
|
|
16
17
|
import { useTranslation } from 'react-i18next';
|
|
@@ -125,13 +126,9 @@ const BottomActions = memo<BottomActionProps>(({ tab }) => {
|
|
|
125
126
|
placement={'right'}
|
|
126
127
|
title={'GitHub'}
|
|
127
128
|
/>
|
|
128
|
-
<
|
|
129
|
-
icon={Book}
|
|
130
|
-
|
|
131
|
-
placement={'right'}
|
|
132
|
-
title={t('document')}
|
|
133
|
-
/>
|
|
134
|
-
|
|
129
|
+
<Link href={DOCUMENTS} target={'_blank'}>
|
|
130
|
+
<ActionIcon icon={Book} placement={'right'} title={t('document')} />
|
|
131
|
+
</Link>
|
|
135
132
|
<Dropdown arrow={false} menu={{ items }} trigger={['click']}>
|
|
136
133
|
{hasNewVersion ? (
|
|
137
134
|
<Flexbox>
|
package/src/middleware.ts
CHANGED
|
@@ -13,7 +13,10 @@ const defaultMiddleware = () => NextResponse.next();
|
|
|
13
13
|
const withAuthMiddleware = auth((req) => {
|
|
14
14
|
// Just check if session exists
|
|
15
15
|
const session = req.auth;
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
// Check if next-auth throws errors
|
|
18
|
+
// refs: https://github.com/lobehub/lobe-chat/pull/1323
|
|
19
|
+
const isLoggedIn = !!session?.expires;
|
|
17
20
|
|
|
18
21
|
// Remove & amend OAuth authorized header
|
|
19
22
|
const requestHeaders = new Headers(req.headers);
|