@lobehub/chat 0.128.6 → 0.128.8
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 +42 -0
- package/README.md +9 -8
- package/README.zh-CN.md +9 -8
- package/docs/self-hosting/advanced/authentication.mdx +1 -0
- package/docs/self-hosting/advanced/authentication.zh-CN.mdx +1 -0
- package/docs/usage/features/agent-market.mdx +2 -2
- package/docs/usage/features/agent-market.zh-CN.mdx +2 -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/mobile.mdx +2 -3
- package/docs/usage/features/mobile.zh-CN.mdx +2 -2
- package/docs/usage/features/multi-ai-providers.mdx +28 -0
- package/docs/usage/features/multi-ai-providers.zh-CN.mdx +28 -0
- package/docs/usage/features/plugin-system.mdx +2 -2
- package/docs/usage/features/plugin-system.zh-CN.mdx +2 -2
- package/docs/usage/features/pwa.mdx +2 -2
- package/docs/usage/features/pwa.zh-CN.mdx +2 -2
- package/docs/usage/features/text-to-image.mdx +2 -2
- package/docs/usage/features/text-to-image.zh-CN.mdx +2 -3
- package/docs/usage/features/theme.mdx +3 -4
- package/docs/usage/features/theme.zh-CN.mdx +2 -2
- package/docs/usage/features/tts.mdx +2 -2
- package/docs/usage/features/tts.zh-CN.mdx +2 -2
- package/docs/usage/features/vision.mdx +2 -3
- package/docs/usage/features/vision.zh-CN.mdx +2 -2
- package/next-sitemap.config.mjs +54 -0
- package/package.json +3 -1
- package/public/robots.txt +7 -0
- package/src/app/market/page.tsx +7 -0
- package/src/app/metadata.ts +4 -3
- package/src/app/page.tsx +8 -0
- package/src/app/welcome/page.tsx +7 -0
- package/src/config/server/app.ts +2 -2
- package/src/const/url.ts +4 -0
- package/src/features/SideBar/BottomActions.tsx +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,48 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.128.8](https://github.com/lobehub/lobe-chat/compare/v0.128.7...v0.128.8)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-02-20**</sup>
|
|
8
|
+
|
|
9
|
+
<br/>
|
|
10
|
+
|
|
11
|
+
<details>
|
|
12
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
13
|
+
|
|
14
|
+
</details>
|
|
15
|
+
|
|
16
|
+
<div align="right">
|
|
17
|
+
|
|
18
|
+
[](#readme-top)
|
|
19
|
+
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
### [Version 0.128.7](https://github.com/lobehub/lobe-chat/compare/v0.128.6...v0.128.7)
|
|
23
|
+
|
|
24
|
+
<sup>Released on **2024-02-20**</sup>
|
|
25
|
+
|
|
26
|
+
#### 💄 Styles
|
|
27
|
+
|
|
28
|
+
- **misc**: Improve docs url and add more docs.
|
|
29
|
+
|
|
30
|
+
<br/>
|
|
31
|
+
|
|
32
|
+
<details>
|
|
33
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
34
|
+
|
|
35
|
+
#### Styles
|
|
36
|
+
|
|
37
|
+
- **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))
|
|
38
|
+
|
|
39
|
+
</details>
|
|
40
|
+
|
|
41
|
+
<div align="right">
|
|
42
|
+
|
|
43
|
+
[](#readme-top)
|
|
44
|
+
|
|
45
|
+
</div>
|
|
46
|
+
|
|
5
47
|
### [Version 0.128.6](https://github.com/lobehub/lobe-chat/compare/v0.128.5...v0.128.6)
|
|
6
48
|
|
|
7
49
|
<sup>Released on **2024-02-20**</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
|
|
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
|
|
|
@@ -53,6 +53,7 @@ When deploying LobeChat, you need to configure the following environment variabl
|
|
|
53
53
|
| `AUTH0_CLIENT_SECRET` | Required | Client Secret of the Auth0 application |
|
|
54
54
|
| `AUTH0_ISSUER` | Required | Domain of the Auth0 application, `https://example.auth0.com` |
|
|
55
55
|
| `ACCESS_CODE` | Required | Add a password to access this service. You can set a sufficiently long random password to "disable" access code authorization. |
|
|
56
|
+
| `NEXTAUTH_URL` | Optional | The URL is used to specify the callback address for the execution of OAuth authentication in Auth.js. It needs to be set only when the default address is incorrect. `https://example.com/api/auth` |
|
|
56
57
|
|
|
57
58
|
You can refer to the related variable details at [Environment Variables](/en/self-hosting/environment-variable#auth0).
|
|
58
59
|
|
|
@@ -54,6 +54,7 @@ http(s)://your-domain/api/auth/callback/auth0
|
|
|
54
54
|
| `AUTH0_CLIENT_SECRET` | 必选 | Auth0 应用程序的 Client Secret |
|
|
55
55
|
| `AUTH0_ISSUER` | 必选 | Auth0 应用程序的 Domain,`https://example.auth0.com` |
|
|
56
56
|
| `ACCESS_CODE` | 必选 | 添加访问此服务的密码,你可以设置一个足够长的随机密码以 “禁用” 访问码授权 |
|
|
57
|
+
| `NEXTAUTH_URL` | 可选 | 该URL用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
|
|
57
58
|
|
|
58
59
|
前往 [环境变量](/zh/self-hosting/environment-variable#auth0) 可查阅相关变量详情。
|
|
59
60
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Callout } from 'nextra/components';
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-
|
|
5
3
|
# Assistant Market
|
|
6
4
|
|
|
5
|
+

|
|
6
|
+
|
|
7
7
|
In LobeChat's Assistant Market, creators can discover a vibrant and innovative community that brings together numerous carefully designed assistants. These assistants not only play a crucial role in work scenarios but also provide great convenience in the learning process. Our market is not just a showcase platform, but also a collaborative space. Here, everyone can contribute their wisdom and share their personally developed assistants.
|
|
8
8
|
|
|
9
9
|
<Callout type={'info'}>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Callout } from 'nextra/components';
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-
|
|
5
3
|
# 助手市场
|
|
6
4
|
|
|
5
|
+

|
|
6
|
+
|
|
7
7
|
在 LobeChat 的助手市场中,创作者们可以发现一个充满活力和创新的社区,它汇聚了众多精心设计的助手,这些助手不仅在工作场景中发挥着重要作用,也在学习过程中提供了极大的便利。我们的市场不仅是一个展示平台,更是一个协作的空间。在这里,每个人都可以贡献自己的智慧,分享个人开发的助手。
|
|
8
8
|
|
|
9
9
|
<Callout type={'info'}>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Callout } from 'nextra/components';
|
|
2
|
+
|
|
3
|
+
# Local Large Language Model (LLM) Support
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
<Callout>Available in >=0.127.0, currently only supports Docker deployment</Callout>
|
|
8
|
+
|
|
9
|
+
With the release of LobeChat v0.127.0, we are excited to introduce a groundbreaking feature - Ollama AI support! 🤯 With the powerful infrastructure of [Ollama AI](https://ollama.ai/) and the [community's collaborative efforts](https://github.com/lobehub/lobe-chat/pull/1265), 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 significant technological leap for us but also reaffirms our commitment to continuously pursue more efficient and intelligent communication.
|
|
12
|
+
|
|
13
|
+
### How to Start a Conversation with Local LLM?
|
|
14
|
+
|
|
15
|
+
The startup process is exceptionally simple! By running the following Docker command, you can experience conversations 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 a local 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. Both processing speed and response time have reached new heights. This means that your conversational experience will be smoother, without any waiting, and with instant 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 passing through any external servers, ensuring the security of your data. Additionally, local processing can reduce network latency, providing you with a more immediate communication experience.
|
|
30
|
+
|
|
31
|
+
### Embark on Your LobeChat & Ollama AI Journey
|
|
32
|
+
|
|
33
|
+
Now, let's embark on this exciting journey together! Through the collaboration of LobeChat and Ollama AI, explore the endless possibilities brought by AI. Whether you are a tech enthusiast or simply curious about AI communication, LobeChat will offer you an unprecedented experience.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Callout } from 'nextra/components';
|
|
2
|
+
|
|
3
|
+
# 支持本地大语言模型(LLM)
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
<Callout>在 >=v0.127.0 版本中可用,目前仅支持 Docker 部署</Callout>
|
|
8
|
+
|
|
9
|
+
随着 LobeChat v0.127.0 的发布,我们迎来了一个激动人心的特性 —— Ollama AI 支持!🤯 在 [Ollama AI](https://ollama.ai/) 强大的基础设施和 [社区的共同努力](https://github.com/lobehub/lobe-chat/pull/1265) 下,现在您可以在 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 都将为您提供一场前所未有的体验。
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
1
|
# Mobile Device Adaptation
|
|
4
2
|
|
|
3
|
+

|
|
4
|
+
|
|
5
5
|
LobeChat has undergone a series of optimized designs for mobile devices to enhance the user's mobile experience.
|
|
6
6
|
|
|
7
7
|
Currently, we are iterating on the user experience for mobile devices to achieve a smoother and more intuitive interaction. If you have any suggestions or ideas, we warmly welcome your feedback through GitHub Issues or Pull Requests.
|
|
8
|
-
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
1
|
# 移动设备适配
|
|
4
2
|
|
|
3
|
+

|
|
4
|
+
|
|
5
5
|
LobeChat 针对移动设备进行了一系列的优化设计,以提升用户的移动体验。
|
|
6
6
|
|
|
7
7
|
目前,我们正在对移动端的用户体验进行版本迭代,以实现更加流畅和直观的交互。如果您有任何建议或想法,我们非常欢迎您通过 GitHub Issues 或者 Pull Requests 提供反馈。
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Callout } from 'nextra/components';
|
|
2
|
+
|
|
3
|
+
# Multi-Model Service Provider Support
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
<Callout>Available in version 0.123.0 and later</Callout>
|
|
8
|
+
|
|
9
|
+
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.
|
|
10
|
+
|
|
11
|
+
In this way, LobeChat can more flexibly adapt to the needs of different users, while also providing developers with a wider range of choices.
|
|
12
|
+
|
|
13
|
+
## Supported Model Service Providers
|
|
14
|
+
|
|
15
|
+
We have implemented support for the following model service providers:
|
|
16
|
+
|
|
17
|
+
- **AWS Bedrock**: Integrated with AWS Bedrock service, supporting models such as **Claude / LLama2**, providing powerful natural language processing capabilities. [Learn more](https://aws.amazon.com/cn/bedrock)
|
|
18
|
+
- **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. [Learn more](https://deepmind.google/technologies/gemini/)
|
|
19
|
+
- **ChatGLM**: Added the **ChatGLM** series models from Zhipuai (GLM-4/GLM-4-vision/GLM-3-turbo), providing users with another efficient conversation model choice. [Learn more](https://www.zhipuai.cn/)
|
|
20
|
+
- **Moonshot AI (Dark Side of the Moon)**: Integrated with the Moonshot series models, an innovative AI startup from China, aiming to provide deeper conversation understanding. [Learn more](https://www.moonshot.cn/)
|
|
21
|
+
|
|
22
|
+
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 discussion](https://github.com/lobehub/lobe-chat/discussions/1284).
|
|
23
|
+
|
|
24
|
+
## Local Model Support
|
|
25
|
+
|
|
26
|
+

|
|
27
|
+
|
|
28
|
+
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. For more details, see [Local Model Support](/zh/features/local-llm).
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Callout } from 'nextra/components';
|
|
2
|
+
|
|
3
|
+
# 多模型服务商支持
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
<Callout>在 0.123.0 及以后版本中可用</Callout>
|
|
8
|
+
|
|
9
|
+
在 LobeChat 的不断发展过程中,我们深刻理解到在提供AI会话服务时模型服务商的多样性对于满足社区需求的重要性。因此,我们不再局限于单一的模型服务商,而是拓展了对多种模型服务商的支持,以便为用户提供更为丰富和多样化的会话选择。
|
|
10
|
+
|
|
11
|
+
通过这种方式,LobeChat 能够更灵活地适应不同用户的需求,同时也为开发者提供了更为广泛的选择空间。
|
|
12
|
+
|
|
13
|
+
## 已支持的模型服务商
|
|
14
|
+
|
|
15
|
+
我们已经实现了对以下模型服务商的支持:
|
|
16
|
+
|
|
17
|
+
- **AWS Bedrock**:集成了 AWS Bedrock 服务,支持了 **Claude / LLama2** 等模型,提供了强大的自然语言处理能力。[了解更多](https://aws.amazon.com/cn/bedrock)
|
|
18
|
+
- **Google AI (Gemini Pro、Gemini Vision)**:接入了 Google 的 **Gemini** 系列模型,包括 Gemini 和 Gemini Pro,以支持更高级的语言理解和生成。[了解更多](https://deepmind.google/technologies/gemini/)
|
|
19
|
+
- **ChatGLM**:加入了智谱的 **ChatGLM** 系列模型(GLM-4/GLM-4-vision/GLM-3-turbo),为用户提供了另一种高效的会话模型选择。[了解更多](https://www.zhipuai.cn/)
|
|
20
|
+
- **Moonshot AI (月之暗面)**:集成了 Moonshot 系列模型,这是一家来自中国的创新性 AI 创业公司,旨在提供更深层次的会话理解。[了解更多](https://www.moonshot.cn/)
|
|
21
|
+
|
|
22
|
+
同时,我们也在计划支持更多的模型服务商,如 Replicate 和 Perplexity 等,以进一步丰富我们的服务商库。如果你希望让 LobeChat 支持你喜爱的服务商,欢迎加入我们的[社区讨论](https://github.com/lobehub/lobe-chat/discussions/1284)。
|
|
23
|
+
|
|
24
|
+
## 本地模型支持
|
|
25
|
+
|
|
26
|
+

|
|
27
|
+
|
|
28
|
+
为了满足特定用户的需求,LobeChat 还基于 [Ollama](https://ollama.ai) 支持了本地模型的使用,让用户能够更灵活地使用自己的或第三方的模型,详见 [本地模型支持](/zh/features/local-llm)。
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Callout, Steps } from 'nextra/components';
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-
|
|
5
3
|
# Plugin System
|
|
6
4
|
|
|
5
|
+

|
|
6
|
+
|
|
7
7
|
The plugin ecosystem of LobeChat is an important extension of its core functionality, greatly enhancing the practicality and flexibility of the LobeChat assistant.
|
|
8
8
|
|
|
9
9
|
<video
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Callout, Steps } from 'nextra/components';
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-
|
|
5
3
|
# 插件系统
|
|
6
4
|
|
|
5
|
+

|
|
6
|
+
|
|
7
7
|
LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地增强了 LobeChat 助手的实用性和灵活性。
|
|
8
8
|
|
|
9
9
|
<video
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Steps } from 'nextra/components';
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-
|
|
5
3
|
# Progressive Web App (PWA)
|
|
6
4
|
|
|
5
|
+

|
|
6
|
+
|
|
7
7
|
We understand the importance of providing a seamless experience for users in today's multi-device environment. To achieve this, we have adopted Progressive Web App [PWA](https://support.google.com/chrome/answer/9658361) technology, which is a modern web technology that elevates web applications to a near-native app experience. Through PWA, LobeChat is able to provide a highly optimized user experience on both desktop and mobile devices, while maintaining lightweight and high performance characteristics. Visually and perceptually, we have also carefully designed it to ensure that its interface is indistinguishable from a native app, providing smooth animations, responsive layouts, and adaptation to different screen resolutions of various devices.
|
|
8
8
|
|
|
9
9
|
If you are unfamiliar with the installation process of PWA, you can follow the steps below to add LobeChat as a desktop app (also applicable to mobile devices):
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Steps } from 'nextra/components';
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-
|
|
5
3
|
# 渐进式 Web 应用(PWA)
|
|
6
4
|
|
|
5
|
+

|
|
6
|
+
|
|
7
7
|
我们利深知在当今多设备环境下为用户提供无缝体验的重要性。为此,我们采用了渐进式 Web 应用 [PWA](https://support.google.com/chrome/answer/9658361) 技术,这是一种能够将网页应用提升至接近原生应用体验的现代 Web 技术。通过 PWA,LobeChat 能够在桌面和移动设备上提供高度优化的用户体验,同时保持轻量级和高性能的特点。在视觉和感觉上,我们也经过精心设计,以确保它的界面与原生应用无差别,提供流畅的动画、响应式布局和适配不同设备的屏幕分辨率。
|
|
8
8
|
|
|
9
9
|
若您未熟悉 PWA 的安装过程,您可以按照以下步骤将 LobeChat 添加为您的桌面应用(也适用于移动设备):
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
1
|
# Text to Image Generation
|
|
4
2
|
|
|
3
|
+

|
|
4
|
+
|
|
5
5
|
Supporting the latest text-to-image generation technology, LobeChat now enables users to directly utilize the Text to Image tool during conversations with the assistant. By harnessing 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/), assistants can now transform your ideas into images. This allows for a more private and immersive creative process.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-

|
|
2
|
-
|
|
3
1
|
# Text to Image 文生图
|
|
4
2
|
|
|
5
|
-
|
|
3
|
+

|
|
6
4
|
|
|
5
|
+
支持最新的文本到图片生成技术,LobeChat 现在能够让用户在与助手对话中直接调用文成图工具进行创作。通过利用 [`DALL-E 3`](https://openai.com/dall-e-3)、[`MidJourney`](https://www.midjourney.com/) 和 [`Pollinations`](https://pollinations.ai/) 等 AI 工具的能力, 助手们现在可以将你的想法转化为图像。同时可以更私密和沉浸式的完成你的创造过程。
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { Callout } from 'nextra/components';
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-
|
|
5
3
|
# Custom Themes
|
|
6
4
|
|
|
5
|
+

|
|
6
|
+
|
|
7
7
|
LobeChat places a strong emphasis on personalized user experiences in its interface design, and thus introduces flexible and diverse theme modes, including a light mode for daytime and a dark mode for nighttime.
|
|
8
8
|
|
|
9
9
|
In addition to theme mode switching, we also provide a series of color customization options, allowing users to adjust the application's theme colors according to their preferences. Whether it's a stable deep blue, a lively peach pink, or a professional gray and white, users can find color choices in LobeChat that match their own style.
|
|
10
10
|
|
|
11
11
|
<Callout type={'info'}>
|
|
12
12
|
The default configuration can intelligently identify the user's system color mode and
|
|
13
|
-
automatically switch themes to ensure a consistent visual experience with the operating
|
|
14
|
-
system.
|
|
13
|
+
automatically switch themes to ensure a consistent visual experience with the operating system.
|
|
15
14
|
</Callout>
|
|
16
15
|
|
|
17
16
|
For users who prefer to manually adjust details, LobeChat also provides intuitive setting options and offers a choice between conversation bubble mode and document mode for chat scenes.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Callout } from 'nextra/components';
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-
|
|
5
3
|
# 自定义主题
|
|
6
4
|
|
|
5
|
+

|
|
6
|
+
|
|
7
7
|
LobeChat 在界面设计上十分考虑用户的个性化体验,因此引入了灵活多变的主题模式,其中包括日间的亮色模式和夜间的深色模式。
|
|
8
8
|
|
|
9
9
|
除了主题模式的切换,我们还提供了一系列的颜色定制选项,允许用户根据自己的喜好来调整应用的主题色彩。无论是想要沉稳的深蓝,还是希望活泼的桃粉,或者是专业的灰白,用户都能够在 LobeChat 中找到匹配自己风格的颜色选择。
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Callout } from 'nextra/components';
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-
|
|
5
3
|
# TTS & STT Voice Conversation
|
|
6
4
|
|
|
5
|
+

|
|
6
|
+
|
|
7
7
|
LobeChat supports Text-to-Speech (TTS) and Speech-to-Text (STT) technologies. Our application can convert text information into clear voice output, allowing users to interact with our conversational agents as if they were talking to a real person. Users can choose from a variety of voices and pair the appropriate audio with the assistant. Additionally, for users who prefer auditory learning or need to obtain information while busy, TTS provides an excellent solution.
|
|
8
8
|
|
|
9
9
|
In LobeChat, we have carefully selected a series of high-quality voice options (OpenAI Audio, Microsoft Edge Speech) to meet the needs of users from different regions and cultural backgrounds. Users can choose suitable voices based on personal preferences or specific scenarios, thereby obtaining a personalized communication experience.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Callout } from 'nextra/components';
|
|
2
2
|
|
|
3
|
-

|
|
4
|
-
|
|
5
3
|
# TTS & STT 语音会话
|
|
6
4
|
|
|
5
|
+

|
|
6
|
+
|
|
7
7
|
LobeChat 支持文字转语音(Text-to-Speech,TTS)和语音转文字(Speech-to-Text,STT)技术,我们的应用能够将文本信息转化为清晰的语音输出,用户可以像与真人交谈一样与我们的对话代理进行交流。用户可以从多种声音中选择,给助手搭配合适的音源。 同时,对于那些倾向于听觉学习或者想要在忙碌中获取信息的用户来说,TTS 提供了一个极佳的解决方案。
|
|
8
8
|
|
|
9
9
|
在 LobeChat 中,我们精心挑选了一系列高品质的声音选项 (OpenAI Audio, Microsoft Edge Speech),以满足不同地域和文化背景用户的需求。用户可以根据个人喜好或者特定场景来选择合适的语音,从而获得个性化的交流体验。
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
# Model Visual Recognition
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
4
|
|
|
5
5
|
LobeChat now supports large language models with visual recognition capabilities such as OpenAI's [`gpt-4-vision`](https://platform.openai.com/docs/guides/vision), Google Gemini Pro vision, and Zhipu GLM-4 Vision, enabling LobeChat to have multimodal interaction capabilities. Users can easily upload or drag and drop images into the chat box, and the assistant will be able to recognize the content of the images and engage in intelligent conversations based on them, creating more intelligent and diverse chat scenarios.
|
|
6
6
|
|
|
7
7
|
This feature opens up new ways of interaction, allowing communication to extend beyond text and encompass rich visual elements. Whether it's sharing images in daily use or interpreting images in specific industries, the assistant can provide an excellent conversational experience.
|
|
8
|
-
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
# 模型视觉识别
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
4
|
|
|
5
5
|
LobeChat 已经支持 OpenAI 的 [`gpt-4-vision`](https://platform.openai.com/docs/guides/vision) 、Google Gemini Pro vision、智谱 GLM-4 Vision 等具有视觉识别能力的大语言模型,这使得 LobeChat 具备了多模态交互的能力。用户可以轻松上传图片或者拖拽图片到对话框中,助手将能够识别图片内容,并在此基础上进行智能对话,构建更智能、更多元化的聊天场景。
|
|
6
6
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { glob } from 'glob';
|
|
2
|
+
|
|
3
|
+
const isVercelPreview = process.env.VERCEL === '1' && process.env.VERCEL_ENV !== 'production';
|
|
4
|
+
|
|
5
|
+
const prodUrl = process.env.SITE_URL || 'https://chat-preview.lobehub.com';
|
|
6
|
+
|
|
7
|
+
const vercelPreviewUrl = `https://${process.env.VERCEL_URL}`;
|
|
8
|
+
|
|
9
|
+
const siteUrl = isVercelPreview ? vercelPreviewUrl : prodUrl;
|
|
10
|
+
|
|
11
|
+
/** @type {import('next-sitemap').IConfig} */
|
|
12
|
+
const config = {
|
|
13
|
+
// next-sitemap does not work with app dir inside the /src dir (and have other problems e.g. with route groups)
|
|
14
|
+
// https://github.com/iamvishnusankar/next-sitemap/issues/700#issuecomment-1759458127
|
|
15
|
+
// https://github.com/iamvishnusankar/next-sitemap/issues/701
|
|
16
|
+
// additionalPaths is a workaround for this (once the issues are fixed, we can remove it)
|
|
17
|
+
additionalPaths: async () => {
|
|
18
|
+
const routes = await glob('src/app/**/page.{md,mdx,ts,tsx}', {
|
|
19
|
+
cwd: new URL('.', import.meta.url).pathname,
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
// https://nextjs.org/docs/app/building-your-application/routing/colocation#private-folders
|
|
23
|
+
const publicRoutes = routes.filter(
|
|
24
|
+
(page) => !page.split('/').some((folder) => folder.startsWith('_')),
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
// https://nextjs.org/docs/app/building-your-application/routing/colocation#route-groups
|
|
28
|
+
const publicRoutesWithoutRouteGroups = publicRoutes.map((page) =>
|
|
29
|
+
page
|
|
30
|
+
.split('/')
|
|
31
|
+
.filter((folder) => !folder.startsWith('(') && !folder.endsWith(')'))
|
|
32
|
+
.join('/'),
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
const locs = publicRoutesWithoutRouteGroups.map((route) => {
|
|
36
|
+
const path = route.replace(/^src\/app/, '').replace(/\/[^/]+$/, '');
|
|
37
|
+
const loc = path === '' ? siteUrl : `${siteUrl}/${path}`;
|
|
38
|
+
|
|
39
|
+
return loc;
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const paths = locs.map((loc) => ({
|
|
43
|
+
changefreq: 'daily',
|
|
44
|
+
lastmod: new Date().toISOString(),
|
|
45
|
+
loc,
|
|
46
|
+
priority: 0.7,
|
|
47
|
+
}));
|
|
48
|
+
|
|
49
|
+
return paths;
|
|
50
|
+
},
|
|
51
|
+
siteUrl,
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export default config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.128.
|
|
3
|
+
"version": "0.128.8",
|
|
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",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "next build",
|
|
30
|
+
"postbuild": "next-sitemap --config next-sitemap.config.mjs",
|
|
30
31
|
"build:analyze": "ANALYZE=true next build",
|
|
31
32
|
"build:docker": "DOCKER=true next build",
|
|
32
33
|
"dev": "next dev -p 3010",
|
|
@@ -107,6 +108,7 @@
|
|
|
107
108
|
"nanoid": "^5",
|
|
108
109
|
"next": "^14.1",
|
|
109
110
|
"next-auth": "5.0.0-beta.11",
|
|
111
|
+
"next-sitemap": "^4.2.3",
|
|
110
112
|
"numeral": "^2.0.6",
|
|
111
113
|
"nuqs": "^1.15.4",
|
|
112
114
|
"openai": "^4.22",
|
package/src/app/market/page.tsx
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
|
|
3
|
+
import { getCanonicalUrl } from '@/const/url';
|
|
1
4
|
import { isMobileDevice } from '@/utils/responsive';
|
|
2
5
|
|
|
3
6
|
import DesktopPage from './(desktop)';
|
|
@@ -10,3 +13,7 @@ export default () => {
|
|
|
10
13
|
|
|
11
14
|
return <Page />;
|
|
12
15
|
};
|
|
16
|
+
|
|
17
|
+
export const metadata: Metadata = {
|
|
18
|
+
alternates: { canonical: getCanonicalUrl('/market') },
|
|
19
|
+
};
|
package/src/app/metadata.ts
CHANGED
|
@@ -2,13 +2,14 @@ import { Metadata } from 'next';
|
|
|
2
2
|
|
|
3
3
|
import { getClientConfig } from '@/config/client';
|
|
4
4
|
import { getServerConfig } from '@/config/server';
|
|
5
|
+
import { OFFICIAL_URL } from '@/const/url';
|
|
5
6
|
|
|
6
7
|
import pkg from '../../package.json';
|
|
7
8
|
|
|
8
9
|
const title = 'LobeChat';
|
|
9
10
|
const { description, homepage } = pkg;
|
|
10
11
|
|
|
11
|
-
const {
|
|
12
|
+
const { SITE_URL = OFFICIAL_URL } = getServerConfig();
|
|
12
13
|
const { BASE_PATH } = getClientConfig();
|
|
13
14
|
|
|
14
15
|
// if there is a base path, then we don't need the manifest
|
|
@@ -28,7 +29,7 @@ const metadata: Metadata = {
|
|
|
28
29
|
'https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/favicon.ico',
|
|
29
30
|
},
|
|
30
31
|
manifest: noManifest ? undefined : '/manifest.json',
|
|
31
|
-
metadataBase: new URL(
|
|
32
|
+
metadataBase: new URL(SITE_URL),
|
|
32
33
|
openGraph: {
|
|
33
34
|
description: description,
|
|
34
35
|
images: [
|
|
@@ -58,11 +59,11 @@ const metadata: Metadata = {
|
|
|
58
59
|
},
|
|
59
60
|
twitter: {
|
|
60
61
|
card: 'summary_large_image',
|
|
61
|
-
creator: '@lobehub',
|
|
62
62
|
description,
|
|
63
63
|
images: [
|
|
64
64
|
'https://registry.npmmirror.com/@lobehub/assets-favicons/latest/files/assets/og-960x540.png',
|
|
65
65
|
],
|
|
66
|
+
site: '@lobehub',
|
|
66
67
|
title,
|
|
67
68
|
},
|
|
68
69
|
};
|
package/src/app/page.tsx
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
|
|
3
|
+
import { getCanonicalUrl } from '@/const/url';
|
|
4
|
+
|
|
1
5
|
import Page from './home';
|
|
2
6
|
import Redirect from './home/Redirect';
|
|
3
7
|
|
|
@@ -9,3 +13,7 @@ const Index = () => (
|
|
|
9
13
|
);
|
|
10
14
|
|
|
11
15
|
export default Index;
|
|
16
|
+
|
|
17
|
+
export const metadata: Metadata = {
|
|
18
|
+
alternates: { canonical: getCanonicalUrl('/') },
|
|
19
|
+
};
|
package/src/app/welcome/page.tsx
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
|
|
3
|
+
import { getCanonicalUrl } from '@/const/url';
|
|
1
4
|
import { isMobileDevice } from '@/utils/responsive';
|
|
2
5
|
|
|
3
6
|
import DesktopPage from './(desktop)';
|
|
@@ -12,3 +15,7 @@ const Page = () => {
|
|
|
12
15
|
};
|
|
13
16
|
|
|
14
17
|
export default Page;
|
|
18
|
+
|
|
19
|
+
export const metadata: Metadata = {
|
|
20
|
+
alternates: { canonical: getCanonicalUrl('/welcome') },
|
|
21
|
+
};
|
package/src/config/server/app.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare global {
|
|
|
8
8
|
|
|
9
9
|
IMGUR_CLIENT_ID?: string;
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
SITE_URL?: string;
|
|
12
12
|
|
|
13
13
|
AGENTS_INDEX_URL?: string;
|
|
14
14
|
|
|
@@ -38,7 +38,7 @@ export const getAppConfig = () => {
|
|
|
38
38
|
|
|
39
39
|
SHOW_ACCESS_CODE_CONFIG: !!ACCESS_CODES.length,
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
SITE_URL: process.env.SITE_URL,
|
|
42
42
|
|
|
43
43
|
IMGUR_CLIENT_ID: process.env.IMGUR_CLIENT_ID || DEFAULT_IMAGUR_CLIENT_ID,
|
|
44
44
|
|
package/src/const/url.ts
CHANGED
|
@@ -6,6 +6,10 @@ import { withBasePath } from '@/utils/basePath';
|
|
|
6
6
|
import pkg from '../../package.json';
|
|
7
7
|
import { INBOX_SESSION_ID } from './session';
|
|
8
8
|
|
|
9
|
+
export const OFFICIAL_URL = 'https://chat-preview.lobehub.com/';
|
|
10
|
+
|
|
11
|
+
export const getCanonicalUrl = (path: string) => urlJoin(OFFICIAL_URL, path);
|
|
12
|
+
|
|
9
13
|
export const GITHUB = pkg.homepage;
|
|
10
14
|
export const CHANGELOG = urlJoin(GITHUB, 'blob/master/CHANGELOG.md');
|
|
11
15
|
|
|
@@ -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>
|