@lobehub/chat 0.77.2 → 0.78.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.zh-CN.md CHANGED
@@ -4,27 +4,29 @@
4
4
 
5
5
  <img height="120" src="https://registry.npmmirror.com/@lobehub/assets-logo/1.0.0/files/assets/logo-3d.webp">
6
6
  <img height="120" src="https://gw.alipayobjects.com/zos/kitchen/qJ3l3EPsdW/split.svg">
7
- <img height="120" src="https://registry.npmmirror.com/@lobehub/assets-emoji/1.3.0/files/assets/robot.webp">
7
+ <img height="120" src="https://registry.npmmirror.com/@lobehub/assets-emoji-anim/1.0.0/files/assets/robot.webp">
8
8
 
9
9
  <h1>Lobe Chat</h1>
10
10
 
11
- LobeChat 是一个开源的、可扩展的([Function Calling][fc-url])高性能聊天机器人框架。<br/> 它支持一键免费部署私人 ChatGPT/LLM 网页应用程序。
11
+ LobeChat 是一个开源的、可扩展的([Function Calling][fc-link])高性能聊天机器人框架。<br/> 它支持一键免费部署私人 ChatGPT/LLM 网页应用程序。
12
12
 
13
- [English](./README.md) · **简体中文** · [更新日志](./CHANGELOG.md) · [文档][wiki-url] · [报告问题][issues-url] · [请求功能][issues-url]
13
+ [English](./README.md) · **简体中文** · [更新日志](./CHANGELOG.md) · [文档][github-wiki-link] · [报告问题][github-issues-link] · [请求功能][github-issues-link]
14
14
 
15
15
  <!-- SHIELD GROUP -->
16
16
 
17
- [![release][release-shield]][release-url]
18
- [![releaseDate][release-date-shield]][release-date-url]
19
- [![][license-shield]][fossa-license-url]
20
- [![ciTest][ci-test-shield]][ci-test-url]
21
- [![ciRelease][ci-release-shield]][ci-release-url] <br/>
22
- [![contributors][contributors-shield]][contributors-url]
23
- [![forks][forks-shield]][forks-url]
24
- [![stargazers][stargazers-shield]][stargazers-url]
25
- [![issues][issues-shield]][issues-url]
17
+ [![][github-release-shield]][github-release-link]
18
+ [![][vercel-shield]][vercel-link]
19
+ [![][discord-shield]][discord-link]
20
+ [![][github-releasedate-shield]][github-releasedate-link]
21
+ [![][github-action-test-shield]][github-action-test-link]
22
+ [![][github-action-release-shield]][github-action-release-link]<br/>
23
+ [![][github-contributors-shield]][github-contributors-link]
24
+ [![][github-forks-shield]][github-forks-link]
25
+ [![][github-stars-shield]][github-stars-link]
26
+ [![][github-issues-shield]][github-issues-link]
27
+ [![][github-license-shield]][github-license-link]
26
28
 
27
- [![Deploy with Vercel][deploy-button-image]][deploy-url]
29
+ [![Deploy with Vercel][deploy-button-image]][deploy-link]
28
30
 
29
31
  ![](https://gw.alipayobjects.com/zos/kitchen/RKnWrrfuMl/welcome.webp)
30
32
 
@@ -36,23 +38,14 @@ LobeChat 是一个开源的、可扩展的([Function Calling][fc-url])高性
36
38
  #### TOC
37
39
 
38
40
  - [👋🏻 开始使用 & 交流](#-开始使用--交流)
39
-
40
41
  - [✨ 功能特性](#-功能特性)
41
-
42
42
  - [📸 快照预览](#-快照预览)
43
-
44
43
  - [🛳 开箱即用](#-开箱即用)
45
-
46
44
  - [保持更新](#保持更新)
47
-
48
45
  - [📦 生态系统](#-生态系统)
49
-
50
46
  - [🧩 插件体系](#-插件体系)
51
-
52
47
  - [⌨️ 本地开发](#️-本地开发)
53
-
54
48
  - [🤝 参与贡献](#-参与贡献)
55
-
56
49
  - [🔗 更多工具](#-更多工具)
57
50
 
58
51
  ####
@@ -63,15 +56,23 @@ LobeChat 是一个开源的、可扩展的([Function Calling][fc-url])高性
63
56
 
64
57
  ## 👋🏻 开始使用 & 交流
65
58
 
66
- 我们是一群充满热情的设计工程师,希望为 AIGC 提供现代化的设计组件和工具,并以开源的方式分享,以促进它们在更广泛的社区中的发展和采用,LobeChat 目前正在积极开发中,有需求或者问题,欢迎提交 [issues][issues-url]
59
+ 我们是一群充满热情的设计工程师,希望为 AIGC 提供现代化的设计组件和工具,并以开源的方式分享,以促进它们在更广泛的社区中的发展和采用,LobeChat 目前正在积极开发中,有需求或者问题,欢迎提交 [issues][issues-link]
67
60
 
68
- | [![][official-shield]][official-url] | 无需安装或注册!访问我们的网站,快速体验 |
69
- | :----------------------------------- | :--------------------------------------------------------------------------- |
70
- | [![][discord-shield]][discord-url] | 加入我们的 Discord 社区!这是你可以与开发者和其他 LobeHub 热衷用户交流的地方 |
61
+ | [![][vercel-shield-badge]][vercel-link] | 无需安装或注册!访问我们的网站,快速体验 |
62
+ | :---------------------------------------- | :--------------------------------------------------------------------------- |
63
+ | [![][discord-shield-badge]][discord-link] | 加入我们的 Discord 社区!这是你可以与开发者和其他 LobeHub 热衷用户交流的地方 |
64
+
65
+ > **Important**\
66
+ > **收藏项目**,你将从 GitHub 上无延迟地接收所有发布通知~⭐️
71
67
 
72
68
  ![](https://gw.alipayobjects.com/zos/kitchen/0hcO8QiU9c/star.webp)
73
69
 
74
- > **⭐️ 给我们点赞:** 你将从 GitHub 上无延迟地接收所有发布通知!
70
+ <details><summary><kbd>Star History</kbd></summary>
71
+ <picture>
72
+ <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=lobehub%2Flobe-chat&theme=dark&type=Date">
73
+ <img src="https://api.star-history.com/svg?repos=lobehub%2Flobe-chat&type=Date">
74
+ </picture>
75
+ </details>
75
76
 
76
77
  ## ✨ 功能特性
77
78
 
@@ -84,7 +85,8 @@ LobeChat 是一个开源的、可扩展的([Function Calling][fc-url])高性
84
85
  - [x] 🌐 **自定义域名**:如果用户拥有自己的域名,可以将其绑定到平台上,方便在任何地方快速访问对话助手。
85
86
  - [x] 🏬 **角色市场**:提供角色市场,用户可以在市场上选择自己喜欢的对话助手角色,丰富对话的内容和风格;
86
87
 
87
- > **👉 Roadmap:** 你可以在 Projects 中找到我们后续的 [Roadmap][project-url] 计划
88
+ > **Note**\
89
+ > 你可以在 Projects 中找到我们后续的 [Roadmap][github-project-link] 计划
88
90
 
89
91
  <div align="right">
90
92
 
@@ -94,9 +96,25 @@ LobeChat 是一个开源的、可扩展的([Function Calling][fc-url])高性
94
96
 
95
97
  ## 📸 快照预览
96
98
 
99
+ ![](https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670883-33c43a5c-a512-467e-855c-fa299548cce5.png)
100
+
101
+ #### `1` Function Calling 插件系统
102
+
103
+ 通过构建强大的插件生态,ChatGPT 不仅能够实时获取最新新闻,还能助你一臂之力,轻松查询文档、访问各大电商数据。这使得 ChatGPT 在更广泛的领域中发挥其关键作用。如果你对编写插件有所兴趣,我们在下文的 🧩 插件体系 中提供了详尽的组件开发文档、SDK、以及样板文件,让我们一起让助手变得更加好用和强大~
104
+
105
+ <br/>
106
+
107
+ ![](https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/268670869-f1ffbf66-42b6-42cf-a937-9ce1f8328514.png)
108
+
109
+ #### `2` Prompt 助手市场
110
+
111
+ 在我们的助手市场中,我们积累了大量实用的助手 Prompt,这些都是在日常工作和学习中得到实际应用的。你也可以在这里分享你的助手,与更多的人一起迭代和优化你的助手提示词。你可以通过 [🤖/🏪 提交助手][submit-agents-link] 来提交你的助手,我们构建的自动化 i18n 工作流将会自动将你的助手翻译成多语言版本,让多语种用户都能享受到你的智慧成果。
112
+
113
+ <br/>
114
+
97
115
  ![](https://gw.alipayobjects.com/zos/kitchen/69x6bllkX3/pwa.webp)
98
116
 
99
- **PWA 渐进式 Web 应用**
117
+ #### `3` PWA 渐进式 Web 应用
100
118
 
101
119
  利用渐进式 Web 应用 [PWA](https://support.google.com/chrome/answer/9658361) 技术,您可在电脑或移动设备上实现流畅的 LobeChat 体验。
102
120
 
@@ -112,17 +130,17 @@ LobeChat 是一个开源的、可扩展的([Function Calling][fc-url])高性
112
130
 
113
131
  ![](https://gw.alipayobjects.com/zos/kitchen/pvus1lo%26Z7/darkmode.webp)
114
132
 
115
- **主题模式选择**
133
+ #### `4` 主题模式选择
116
134
 
117
- LobeChat 提供了亮色和暗色两种主题模式以及颜色定制选项,默认情况下,主题会跟随系统设置,您也可以在设置中手动切换。
135
+ LobeChat 提供了两种独特的主题模式 - 明亮模式和暗黑模式,以及丰富的颜色定制选项,以满足您的个性化需求。默认情况下,我们的主题会智能地跟随您的系统设置进行切换,但如果您希望进行手动控制,也可以轻松在设置中进行切换。
118
136
 
119
137
  <br/>
120
138
 
121
139
  ![](https://gw.alipayobjects.com/zos/kitchen/R441AuFS4W/mobile.webp)
122
140
 
123
- **移动设备适配**
141
+ #### `5` 移动设备适配
124
142
 
125
- 我们针对移动设备进行了一系列适配设计以提升用户体验。目前我们正在对移动端的体验进行版本迭代,如果您有任何建议或想法,我们非常欢迎您提供反馈。
143
+ 针对移动设备进行了一系列的优化设计,以提升用户的移动体验。目前,我们正在对移动端的用户体验进行版本迭代,以实现更加流畅和直观的交互。如果您有任何建议或想法,我们非常欢迎您通过 Github Issues 或者 Pull Requests 提供反馈。
126
144
 
127
145
  > 🚧 更多快照和演示正在陆续添加中...
128
146
 
@@ -134,14 +152,14 @@ LobeChat 提供了亮色和暗色两种主题模式以及颜色定制选项,
134
152
 
135
153
  ## 🛳 开箱即用
136
154
 
137
- LobeChat 提供了 Vercel 的 [自托管版本][deploy-url]。这使你可以在几分钟内构建自己的聊天机器人,无需任何基础知识。如果想自己部署该服务,可以按照以下步骤进行操作:
155
+ LobeChat 提供了 Vercel 的 [自托管版本][deploy-link]。这使你可以在几分钟内构建自己的聊天机器人,无需任何基础知识。如果想自己部署该服务,可以按照以下步骤进行操作:
138
156
 
139
157
  - 准备好你的 [OpenAI API Key](https://platform.openai.com/account/api-keys) 。
140
158
  - 点击下方按钮开始部署: Deploy with Vercel,直接使用 Github 账号登录即可,记得在环境变量页填入 API Key 和页面访问密码 CODE;
141
159
  - 部署完毕后,即可开始使用;
142
160
  - 绑定自定义域名(可选):Vercel 分配的域名 DNS 在某些区域被污染了,绑定自定义域名即可直连。
143
161
 
144
- [![使用 Vercel 部署][deploy-button-image]][deploy-url]
162
+ [![使用 Vercel 部署][deploy-button-image]][deploy-link]
145
163
 
146
164
  > **Note**\
147
165
  > 本项目提供了一些额外的配置项,使用环境变量进行设置:
@@ -154,7 +172,7 @@ LobeChat 提供了 Vercel 的 [自托管版本][deploy-url]。这使你可以在
154
172
 
155
173
  ### 保持更新
156
174
 
157
- 如果你根据 README 中的一键部署步骤部署了自己的项目,你可能会发现总是被提示“有可用更新”。这是因为 Vercel 默认为你创建新项目而非 fork 本项目,这将导致无法准确检测更新。我们建议按照 [📘 LobeChat 自部署保持更新](https://github.com/lobehub/lobe-chat/wiki/Upstream-Sync.zh-CN) 步骤重新部署。
175
+ 如果你根据 README 中的一键部署步骤部署了自己的项目,你可能会发现总是被提示 “有可用更新”。这是因为 Vercel 默认为你创建新项目而非 fork 本项目,这将导致无法准确检测更新。我们建议按照 [📘 LobeChat 自部署保持更新](https://github.com/lobehub/lobe-chat/wiki/Upstream-Sync.zh-CN) 步骤重新部署。
158
176
 
159
177
  <div align="right">
160
178
 
@@ -164,11 +182,11 @@ LobeChat 提供了 Vercel 的 [自托管版本][deploy-url]。这使你可以在
164
182
 
165
183
  ## 📦 生态系统
166
184
 
167
- | NPM | 代码库 | 描述 | 版本 |
168
- | ------------------------------ | ------------------------------------- | ----------------------------------------------------------------------------------------------------- | -------------------------------------- |
169
- | [@lobehub/ui][lobe-ui-url] | [lobehub/lobe-ui][lobe-ui-github] | Lobe UI 是一个专为构建 AIGC 网页应用程序而设计的开源 UI 组件库。 | [![][lobe-ui-shield]][lobe-ui-url] |
170
- | [@lobehub/lint][lobe-lint-url] | [lobehub/lobe-lint][lobe-lint-github] | LobeLint 为 LobeHub 提供 ESlint,Stylelint,Commitlint,Prettier,Remark 和 Semantic Release 的配置。 | [![][lobe-lint-shield]][lobe-lint-url] |
171
- | @lobehub/assets | [lobehub/assets][lobe-assets-github] | LobeHub 的 Logo 资源、favicon、网页字体。 | |
185
+ | NPM | 代码库 | 描述 | 版本 |
186
+ | ------------------------------- | ------------------------------------- | ----------------------------------------------------------------------------------------------------- | --------------------------------------- |
187
+ | [@lobehub/ui][lobe-ui-link] | [lobehub/lobe-ui][lobe-ui-github] | Lobe UI 是一个专为构建 AIGC 网页应用程序而设计的开源 UI 组件库。 | [![][lobe-ui-shield]][lobe-ui-link] |
188
+ | [@lobehub/lint][lobe-lint-link] | [lobehub/lobe-lint][lobe-lint-github] | LobeLint 为 LobeHub 提供 ESlint,Stylelint,Commitlint,Prettier,Remark 和 Semantic Release 的配置。 | [![][lobe-lint-shield]][lobe-lint-link] |
189
+ | @lobehub/assets | [lobehub/assets][lobe-assets-github] | LobeHub 的 Logo 资源、favicon、网页字体。 | |
172
190
 
173
191
  <div align="right">
174
192
 
@@ -178,7 +196,7 @@ LobeChat 提供了 Vercel 的 [自托管版本][deploy-url]。这使你可以在
178
196
 
179
197
  ## 🧩 插件体系
180
198
 
181
- 插件提供了扩展 LobeChat [Function Calling][fc-url] 能力的方法。可以用于引入新的 Function Calling,甚至是新的消息结果渲染方式。如果你对插件开发感兴趣,请在 Wiki 中查阅我们的 [📘 插件开发指引](https://github.com/lobehub/lobe-chat/wiki/Plugin-Development.zh-CN) 。
199
+ 插件提供了扩展 LobeChat [Function Calling][fc-link] 能力的方法。可以用于引入新的 Function Calling,甚至是新的消息结果渲染方式。如果你对插件开发感兴趣,请在 Wiki 中查阅我们的 [📘 插件开发指引](https://github.com/lobehub/lobe-chat/wiki/Plugin-Development.zh-CN) 。
182
200
 
183
201
  > **Note**\
184
202
  > 插件系统目前正在进行重大开发。您可以在以下 Issues 中了解更多信息:
@@ -205,17 +223,19 @@ LobeChat 提供了 Vercel 的 [自托管版本][deploy-url]。这使你可以在
205
223
 
206
224
  ## ⌨️ 本地开发
207
225
 
208
- 可以使用 Gitpod 进行在线开发:
226
+ 可以使用 Github Codespaces 进行在线开发:
209
227
 
210
- [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)][gitpod-url]
228
+ [![][codespaces-shield]][codespaces-link]
211
229
 
212
230
  或者使用以下命令进行本地开发:
213
231
 
232
+ [![][bun-shield]][bun-link]
233
+
214
234
  ```bash
215
235
  $ git clone https://github.com/lobehub/lobe-chat.git
216
236
  $ cd lobe-chat
217
- $ pnpm install
218
- $ pnpm dev
237
+ $ bun install
238
+ $ bun run dev
219
239
  ```
220
240
 
221
241
  <div align="right">
@@ -226,13 +246,13 @@ $ pnpm dev
226
246
 
227
247
  ## 🤝 参与贡献
228
248
 
229
- 我们非常欢迎各种形式的贡献。如果你对贡献代码感兴趣,可以查看我们的 GitHub [Issues][issues-url] 和 [Projects][project-url],大展身手,向我们展示你的奇思妙想。
249
+ 我们非常欢迎各种形式的贡献。如果你对贡献代码感兴趣,可以查看我们的 GitHub [Issues][github-issues-link] 和 [Projects][github-project-link],大展身手,向我们展示你的奇思妙想。
230
250
 
231
- [![][pr-welcome-shield]][pr-welcome-url]
232
- [![][submit-agents-shield]][submit-agents-url]
233
- [![][submit-plugin-shield]][submit-plugin-url]
251
+ [![][pr-welcome-shield]][pr-welcome-link]
252
+ [![][submit-agents-shield]][submit-agents-link]
253
+ [![][submit-plugin-shield]][submit-plugin-link]
234
254
 
235
- [![][contributors-contrib]][contributors-url]
255
+ [![][contributors-contrib]][contributors-link]
236
256
 
237
257
  <div align="right">
238
258
 
@@ -256,66 +276,74 @@ $ pnpm dev
256
276
 
257
277
  <details><summary><h4>📝 License</h4></summary>
258
278
 
259
- [![][fossa-license-shield]][fossa-license-url]
279
+ [![][fossa-license-shield]][fossa-license-link]
260
280
 
261
281
  </details>
262
282
 
263
- Copyright © 2023 [LobeHub][profile-url]. <br />
283
+ Copyright © 2023 [LobeHub][profile-link]. <br />
264
284
  This project is [MIT](./LICENSE) licensed.
265
285
 
266
286
  <!-- LINK GROUP -->
267
287
 
268
288
  [back-to-top]: https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square
289
+ [bun-link]: https://bun.sh
290
+ [bun-shield]: https://img.shields.io/badge/-speedup%20with%20bun-black?logo=bun&style=for-the-badge
269
291
  [chat-plugin-realtime-weather]: https://github.com/lobehub/chat-plugin-realtime-weather
270
292
  [chat-plugin-sdk]: https://github.com/lobehub/chat-plugin-sdk
271
293
  [chat-plugin-search-engine]: https://github.com/lobehub/chat-plugin-search-engine
272
294
  [chat-plugin-web-crawler]: https://github.com/lobehub/chat-plugin-web-crawler
273
295
  [chat-plugins-gateway]: https://github.com/lobehub/chat-plugins-gateway
274
- [ci-release-shield]: https://github.com/lobehub/lobe-chat/workflows/Release%20CI/badge.svg
275
- [ci-release-url]: https://github.com/lobehub/lobe-chat/actions?query=workflow%3ARelease%20CI
276
- [ci-test-shield]: https://github.com/lobehub/lobe-chat/workflows/Test%20CI/badge.svg
277
- [ci-test-url]: https://github.com/lobehub/lobe-chat/actions/workflows/test.yml
296
+ [codespaces-link]: https://codespaces.new/lobehub/lobe-chat
297
+ [codespaces-shield]: https://github.com/codespaces/badge.svg
278
298
  [contributors-contrib]: https://contrib.rocks/image?repo=lobehub/lobe-chat
279
- [contributors-shield]: https://img.shields.io/github/contributors/lobehub/lobe-chat.svg?style=flat
280
- [contributors-url]: https://github.com/lobehub/lobe-chat/graphs/contributors
299
+ [contributors-link]: https://github.com/lobehub/lobe-chat/graphs/contributors
281
300
  [deploy-button-image]: https://vercel.com/button
282
- [deploy-url]: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat&env=OPENAI_API_KEY&envDescription=Find%20your%20OpenAI%20API%20Key%20by%20click%20the%20right%20Learn%20More%20button.%20%20&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=lobe-chat&repository-name=lobe-chat
283
- [discord-shield]: https://dcbadge.vercel.app/api/server/AYFPHvv2jT?style=for-the-badge
284
- [discord-url]: https://discord.gg/AYFPHvv2jT
285
- [fc-url]: https://sspai.com/post/81986
286
- [forks-shield]: https://img.shields.io/github/forks/lobehub/lobe-chat.svg?style=flat
287
- [forks-url]: https://github.com/lobehub/lobe-chat/network/members
301
+ [deploy-link]: https://vercel.com/new/clone?repository-link=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat&env=OPENAI_API_KEY&envDescription=Find%20your%20OpenAI%20API%20Key%20by%20click%20the%20right%20Learn%20More%20button.%20%20&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=lobe-chat&repository-name=lobe-chat
302
+ [discord-link]: https://discord.gg/AYFPHvv2jT
303
+ [discord-shield]: https://img.shields.io/discord/1127171173982154893?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=flat-square
304
+ [discord-shield-badge]: https://img.shields.io/discord/1127171173982154893?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=for-the-badge
305
+ [fc-link]: https://sspai.com/post/81986
306
+ [fossa-license-link]: https://app.fossa.com/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat
288
307
  [fossa-license-shield]: https://app.fossa.com/api/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat.svg?type=large
289
- [fossa-license-url]: https://app.fossa.com/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat
290
- [gitpod-url]: https://gitpod.io/#https://github.com/lobehub/lobe-chat
291
- [issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-chat.svg?style=flat
292
- [issues-url]: https://img.shields.io/github/issues/lobehub/lobe-chat.svg?style=flat
293
- [license-shield]: https://app.fossa.com/api/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat.svg?type=shield&issueType=license
308
+ [github-action-release-link]: https://github.com/lobehub/lobe-chat/actions/workflows/release.yml
309
+ [github-action-release-shield]: https://img.shields.io/github/actions/workflow/status/lobehub/lobe-chat/release.yml?labelColor=black&logo=githubactions&logoColor=white&style=flat-square
310
+ [github-action-test-link]: https://github.com/lobehub/lobe-chat/actions/workflows/test.yml
311
+ [github-action-test-shield]: https://img.shields.io/github/actions/workflow/status/lobehub/lobe-chat/test.yml?label=test&labelColor=black&logo=githubactions&logoColor=white&style=flat-square
312
+ [github-contributors-link]: https://github.com/lobehub/lobe-chat/graphs/contributors
313
+ [github-contributors-shield]: https://img.shields.io/github/contributors/lobehub/lobe-chat?color=c4f042&labelColor=black&style=flat-square
314
+ [github-forks-link]: https://github.com/lobehub/lobe-chat/network/members
315
+ [github-forks-shield]: https://img.shields.io/github/forks/lobehub/lobe-chat?color=8ae8ff&labelColor=black&style=flat-square
316
+ [github-issues-link]: https://github.com/lobehub/lobe-chat/issues
317
+ [github-issues-shield]: https://img.shields.io/github/issues/lobehub/lobe-chat?color=ff80eb&labelColor=black&style=flat-square
318
+ [github-license-link]: https://github.com/lobehub/lobe-chat/blob/main/LICENSE
319
+ [github-license-shield]: https://img.shields.io/github/license/lobehub/lobe-chat?color=white&labelColor=black&style=flat-square
320
+ [github-project-link]: https://github.com/lobehub/lobe-chat/projects
321
+ [github-release-link]: https://github.com/lobehub/lobe-chat/releases
322
+ [github-release-shield]: https://img.shields.io/github/v/release/lobehub/lobe-chat?color=369eff&labelColor=black&logo=github&style=flat-square
323
+ [github-releasedate-link]: https://github.com/lobehub/lobe-chat/releases
324
+ [github-releasedate-shield]: https://img.shields.io/github/release-date/lobehub/lobe-chat?labelColor=black&style=flat-square
325
+ [github-stars-link]: https://github.com/lobehub/lobe-chat/network/stargazers
326
+ [github-stars-shield]: https://img.shields.io/github/stars/lobehub/lobe-chat?color=ffcb47&labelColor=black&style=flat-square
327
+ [github-wiki-link]: https://github.com/lobehub/lobe-chat/wiki
328
+ [issues-link]: https://img.shields.io/github/issues/lobehub/lobe-chat.svg?style=flat
294
329
  [lobe-assets-github]: https://github.com/lobehub/lobe-assets
295
330
  [lobe-chat-plugins]: https://github.com/lobehub/lobe-chat-plugins
296
331
  [lobe-commit]: https://github.com/lobehub/lobe-commit/tree/master/packages/lobe-commit
297
332
  [lobe-i18n]: https://github.com/lobehub/lobe-commit/tree/master/packages/lobe-i18n
298
333
  [lobe-lint-github]: https://github.com/lobehub/lobe-lint
299
- [lobe-lint-shield]: https://img.shields.io/npm/v/@lobehub/lint?label=%F0%9F%A4%AF%20NPM
300
- [lobe-lint-url]: https://www.npmjs.com/package/@lobehub/lint
334
+ [lobe-lint-link]: https://www.npmjs.com/package/@lobehub/lint
335
+ [lobe-lint-shield]: https://img.shields.io/npm/v/@lobehub/lint?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
301
336
  [lobe-theme]: https://github.com/lobehub/sd-webui-lobe-theme
302
337
  [lobe-ui-github]: https://github.com/lobehub/lobe-ui
303
- [lobe-ui-shield]: https://img.shields.io/npm/v/@lobehub/ui?label=%F0%9F%A4%AF%20NPM
304
- [lobe-ui-url]: https://www.npmjs.com/package/@lobehub/ui
305
- [official-shield]: https://img.shields.io/website?down_message=offline&label=🤯%20Try%20LobeChat&up_message=online&url=https%3A%2F%2Flobe-chat.vercel.app&style=for-the-badge
306
- [official-url]: https://lobe-chat.vercel.app
307
- [pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-FEE064?style=for-the-badge
308
- [pr-welcome-url]: https://github.com/lobehub/lobe-chat/pulls
309
- [profile-url]: https://github.com/lobehub
310
- [project-url]: https://github.com/lobehub/lobe-chat/projects
311
- [release-date-shield]: https://img.shields.io/github/release-date/lobehub/lobe-chat?style=flat
312
- [release-date-url]: https://github.com/lobehub/lobe-chat/releases
313
- [release-shield]: https://img.shields.io/npm/v/@lobehub/chat?label=%F0%9F%A4%AF%20Chat
314
- [release-url]: https://www.npmjs.com/package/@lobehub/chat
315
- [stargazers-shield]: https://img.shields.io/github/stars/lobehub/lobe-chat.svg?style=flat
316
- [stargazers-url]: https://github.com/lobehub/lobe-chat/stargazers
317
- [submit-agents-shield]: https://img.shields.io/badge/🤖/🏪_submit_agent-%E2%86%92-9DFF92?style=for-the-badge
318
- [submit-agents-url]: https://github.com/lobehub/lobe-chat-agents
319
- [submit-plugin-shield]: https://img.shields.io/badge/🧩/🏪_submit_plugin-%E2%86%92-50E3C2?style=for-the-badge
320
- [submit-plugin-url]: https://github.com/lobehub/lobe-chat-plugins
321
- [wiki-url]: https://github.com/lobehub/lobe-chat/wiki
338
+ [lobe-ui-link]: https://www.npmjs.com/package/@lobehub/ui
339
+ [lobe-ui-shield]: https://img.shields.io/npm/v/@lobehub/ui?color=369eff&labelColor=black&logo=npm&logoColor=white&style=flat-square
340
+ [pr-welcome-link]: https://github.com/lobehub/lobe-chat/pulls
341
+ [pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
342
+ [profile-link]: https://github.com/lobehub
343
+ [submit-agents-link]: https://github.com/lobehub/lobe-chat-agents
344
+ [submit-agents-shield]: https://img.shields.io/badge/🤖/🏪_submit_agent-%E2%86%92-c4f042?labelColor=black&style=for-the-badge
345
+ [submit-plugin-link]: https://github.com/lobehub/lobe-chat-plugins
346
+ [submit-plugin-shield]: https://img.shields.io/badge/🧩/🏪_submit_plugin-%E2%86%92-95f3d9?labelColor=black&style=for-the-badge
347
+ [vercel-link]: https://chat-preview.lobehub.com
348
+ [vercel-shield]: https://img.shields.io/website?down_message=offline&label=vercel&labelColor=black&logo=vercel&style=flat-square&up_message=online&url=https%3A%2F%2Fchat-preview.lobehub.com
349
+ [vercel-shield-badge]: https://img.shields.io/website?down_message=offline&label=try%20lobechat&labelColor=black&logo=vercel&style=for-the-badge&up_message=online&url=https%3A%2F%2Fchat-preview.lobehub.com
@@ -10,7 +10,7 @@ LobeChat 支持使用 [Azure OpenAI][azure-openai-url] 作为 OpenAI 的模型
10
10
 
11
11
  ## 使用限制
12
12
 
13
- 从研发成本考虑([#178][rfc]),目前阶段的 LobeChat 并没有 100% 完全符合 Azure OpenAI 的实现模型,采用了以 `openai` 为基座,兼容 Azure OpeAI 的解决方案。因此会带来以下局限性:
13
+ 从研发成本考虑 ([#178][rfc]),目前阶段的 LobeChat 并没有 100% 完全符合 Azure OpenAI 的实现模型,采用了以 `openai` 为基座,兼容 Azure OpeAI 的解决方案。因此会带来以下局限性:
14
14
 
15
15
  - OpenAI 与 Azure OpenAI 只能二选一,当你开启使用 Azure OpenAI 后,将无法使用 OpenAI 作为模型服务商;
16
16
  - LobeChat 约定了与模型同名的部署名才能正常使用,比如 `gpt-35-turbo` 模型的部署名,必须为 `gpt-35-turbo`,否则 LobeChat 将无法正常正确匹配到相应模型
@@ -25,8 +25,8 @@ LobeChat 支持使用 [Azure OpenAI][azure-openai-url] 作为 OpenAI 的模型
25
25
 
26
26
  你按需填写相应的配置项:
27
27
 
28
- - **APIKey**:你在 Azure OpenAI 账户页面申请的 API 密钥,可在“密钥和终结点”部分中找到此值
29
- - **API 地址**:Azure API 地址,从 Azure 门户检查资源时,可在“密钥和终结点”部分中找到此值
28
+ - **APIKey**:你在 Azure OpenAI 账户页面申请的 API 密钥,可在 “密钥和终结点” 部分中找到此值
29
+ - **API 地址**:Azure API 地址,从 Azure 门户检查资源时,可在 “密钥和终结点” 部分中找到此值
30
30
  - **Azure Api Version**: Azure 的 API 版本,遵循 YYYY-MM-DD 格式,查阅[最新版本][azure-api-verion-url]
31
31
 
32
32
  完成上述字段配置后,点击「检查」,如果提示「检查通过」,则说明配置成功。
@@ -37,13 +37,13 @@ LobeChat 支持使用 [Azure OpenAI][azure-openai-url] 作为 OpenAI 的模型
37
37
 
38
38
  如果你希望部署的版本直接配置好 Azure OpenAI,让终端用户直接使用,那么你需要在部署时配置以下环境变量:
39
39
 
40
- | 环境变量 | 类型 | 描述 | 默认值 | 示例 |
41
- | ------------------- | ---- | ------------------------------------------------------------------------- | ------------------ | -------------------------------------------------- |
42
- | `USE_AZURE_OPENAI` | 必选 | 设置改值为 `1` 开启 Azure OpenAI 配置 | - | `1` |
43
- | `AZURE_API_KEY` | 必选 | 这是你在 Azure OpenAI 账户页面申请的 API 密钥 | - | `c55168be3874490ef0565d9779ecd5a6` |
44
- | `OPENAI_PROXY_URL` | 必选 | Azure API 地址,从 Azure 门户检查资源时,可在“密钥和终结点”部分中找到此值 | - | `https://docs-test-001.openai.azure.com` |
45
- | `AZURE_API_VERSION` | 可选 | Azure 的 API 版本,遵循 YYYY-MM-DD 格式 | 2023-08-01-preview | `2023-05-15`,查阅[最新版本][azure-api-verion-url] |
46
- | `ACCESS_CODE` | 可选 | 添加访问此服务的密码,密码应为 6 位数字或字母 | - | `awCT74` 或 `e3@09!` |
40
+ | 环境变量 | 类型 | 描述 | 默认值 | 示例 |
41
+ | ------------------- | ---- | --------------------------------------------------------------------------- | ------------------ | -------------------------------------------------- |
42
+ | `USE_AZURE_OPENAI` | 必选 | 设置改值为 `1` 开启 Azure OpenAI 配置 | - | `1` |
43
+ | `AZURE_API_KEY` | 必选 | 这是你在 Azure OpenAI 账户页面申请的 API 密钥 | - | `c55168be3874490ef0565d9779ecd5a6` |
44
+ | `OPENAI_PROXY_URL` | 必选 | Azure API 地址,从 Azure 门户检查资源时,可在 “密钥和终结点” 部分中找到此值 | - | `https://docs-test-001.openai.azure.com` |
45
+ | `AZURE_API_VERSION` | 可选 | Azure 的 API 版本,遵循 YYYY-MM-DD 格式 | 2023-08-01-preview | `2023-05-15`,查阅[最新版本][azure-api-verion-url] |
46
+ | `ACCESS_CODE` | 可选 | 添加访问此服务的密码,密码应为 6 位数字或字母 | - | `awCT74` 或 `e3@09!` |
47
47
 
48
48
  > **Note**\
49
49
  > 当你在服务端开启 `USE_AZURE_OPENAI` 后,用户将无法在前端配置中修改并使用 OpenAI key。
@@ -3,24 +3,17 @@
3
3
  #### TOC
4
4
 
5
5
  - [Plugin Composition](#plugin-composition)
6
-
7
6
  - [Custom Plugin Workflow](#custom-plugin-workflow)
8
-
9
7
  - [**`1`** Create and Start a Plugin Project](#1-create-and-start-a-plugin-project)
10
8
  - [**`2`** Add the Local Plugin in LobeChat Role Settings](#2-add-the-local-plugin-in-lobechat-role-settings)
11
9
  - [**`3`** Test the Plugin Functionality in a Session](#3-test-the-plugin-functionality-in-a-session)
12
-
13
10
  - [Local Plugin Development](#local-plugin-development)
14
-
15
11
  - [Manifest](#manifest)
16
12
  - [Project Structure](#project-structure)
17
13
  - [Server-side](#server-side)
18
14
  - [Plugin UI Interface](#plugin-ui-interface)
19
-
20
15
  - [Plugin Deployment and Publication](#plugin-deployment-and-publication)
21
-
22
16
  - [Plugin Shield](#plugin-shield)
23
-
24
17
  - [Link](#link)
25
18
 
26
19
  ## Plugin Composition
@@ -3,24 +3,17 @@
3
3
  #### TOC
4
4
 
5
5
  - [插件构成](#插件构成)
6
-
7
6
  - [自定义插件流程](#自定义插件流程)
8
-
9
7
  - [**`1`** 创建并启动插件项目](#1-创建并启动插件项目)
10
8
  - [**`2`** 在 LobeChat 角色设置中添加本地插件](#2-在-lobechat-角色设置中添加本地插件)
11
9
  - [**`3`** 会话测试插件功能](#3-会话测试插件功能)
12
-
13
10
  - [本地插件开发](#本地插件开发)
14
-
15
11
  - [manifest](#manifest)
16
12
  - [项目结构](#项目结构)
17
13
  - [服务端](#服务端)
18
14
  - [插件 UI 界面](#插件-ui-界面)
19
-
20
15
  - [插件部署与发布](#插件部署与发布)
21
-
22
16
  - [插件 Shield](#插件-shield)
23
-
24
17
  - [链接](#链接)
25
18
 
26
19
  ## 插件构成
@@ -138,7 +131,7 @@ $ npm run dev
138
131
  在这份 manifest 中,主要包含了以下几个部分:
139
132
 
140
133
  1. `identifier`:这是插件的唯一标识符,用来区分不同的插件,这个字段需要全局唯一。
141
- 2. `api`:这是一个数组,包含了插件的所有 API 接口信息。每个接口都包含了url、name、description 和 parameters 字段,均为必填项。其中 `description` 和 `parameters` 两个字段,将会作为 [Function Call](https://sspai.com/post/81986) 的 `functions` 参数发送给 gpt, parameters 需要符合 [JSON Schema](https://json-schema.org/) 规范。 在这个例子中,api 接口名为 `recommendClothes` ,这个接口的功能是根据用户的心情和性别来推荐衣服。接口的参数包括用户的心情和性别,这两个参数都是必填项。
134
+ 2. `api`:这是一个数组,包含了插件的所有 API 接口信息。每个接口都包含了 url、name、description 和 parameters 字段,均为必填项。其中 `description` 和 `parameters` 两个字段,将会作为 [Function Call](https://sspai.com/post/81986) 的 `functions` 参数发送给 gpt, parameters 需要符合 [JSON Schema](https://json-schema.org/) 规范。 在这个例子中,api 接口名为 `recommendClothes` ,这个接口的功能是根据用户的心情和性别来推荐衣服。接口的参数包括用户的心情和性别,这两个参数都是必填项。
142
135
  3. `ui`:这个字段包含了插件的用户界面信息,指明了 LobeChat 从哪个地址加载插件的前端界面。由于 LobeChat 插件界面加载是基于 iframe 实现的,因此可以按需指定插件界面的高度、宽度。
143
136
  4. `gateway`:这个字段指定了 LobeChat 查询 api 接口的网关。LobeChat 默认的插件网关是云端服务,而自定义插件的请求需要发给本地启动的服务,远端调用本地地址,一般调用不通。gateway 字段解决了该问题。通过在 manifest 中指定 gateway,LobeChat 将会向该地址发送插件请求,本地的网关地址将会调度请求到本地的插件服务。发布到线上的插件可以不用指定该字段。
144
137
  5. `version`:这是插件的版本号,现阶段暂时没有作用;
@@ -225,7 +218,7 @@ export default async createLobeChatPluginGateway();
225
218
 
226
219
  #### 插件 UI 界面实现
227
220
 
228
- LobeChat 通过 `iframe` 实现插件 ui 的加载,使用 `postMessage` 实现主体与插件的通信。因此, 插件 UI 的实现方式与普通的网页开发一致,你可以使用任何你熟悉的前端框架与开发语言。
221
+ LobeChat 通过 `iframe` 实现插件 ui 的加载,使用 `postMessage` 实现主体与插件的通信。因此, 插件 UI 的实现方式与普通的网页开发一致,你可以使用任何你熟悉的前端框架与开发语言。
229
222
 
230
223
  ![](https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/265263653-4ea87abc-249a-49f3-a241-7ed93ddb1ddf.png)
231
224
 
@@ -1,6 +1,6 @@
1
1
  # LobeChat 自部署保持更新
2
2
 
3
- 如果你根据 README 中的一键部署步骤部署了自己的项目,你可能会发现总是被提示“有可用更新”。这是因为 Vercel 默认为你创建新项目而非 fork 本项目,这将导致无法准确检测更新。我们建议按照以下步骤重新部署:
3
+ 如果你根据 README 中的一键部署步骤部署了自己的项目,你可能会发现总是被提示 “有可用更新”。这是因为 Vercel 默认为你创建新项目而非 fork 本项目,这将导致无法准确检测更新。我们建议按照以下步骤重新部署:
4
4
 
5
5
  - 删除原有的仓库;
6
6
  - 使用页面右上角的 <kbd>Fork</kbd> 按钮,Fork 本项目;
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "submitAgent": "提交助手",
12
12
  "title": {
13
- "recentSubmits": "最近新增",
14
- "allAgents": "全部助手"
13
+ "allAgents": "全部助手",
14
+ "recentSubmits": "最近新增"
15
15
  }
16
16
  }
@@ -0,0 +1,85 @@
1
+ {
2
+ "about": "關於",
3
+ "advanceSettings": "進階設定",
4
+ "agentDefaultMessage": "嗨,我是 **{{name}}**。您可以立即與我開始對話,或是前往 [助理設定](/chat/setting#session={{id}}) 完善我的資訊。",
5
+ "agentDefaultMessageWithSystemRole": "嗨,我是 **{{name}}**,{{systemRole}}。讓我們開始對話吧!",
6
+ "agentMaxToken": "最大對話長度",
7
+ "agentModel": "模型",
8
+ "agentProfile": "助理資訊",
9
+ "appInitializing": "LobeChat 正在初始化,請稍候...",
10
+ "archive": "歸檔",
11
+ "autoGenerate": "自動產生",
12
+ "autoGenerateTooltip": "根據提示自動產生助理描述",
13
+ "backToBottom": "回到最新訊息",
14
+ "cancel": "取消",
15
+ "changelog": "更新日誌",
16
+ "clearCurrentMessages": "清除目前的對話訊息",
17
+ "close": "關閉",
18
+ "confirmClearCurrentMessages": "您將清除目前的對話訊息。一旦清除,將無法恢復。請確認您的操作。",
19
+ "confirmRemoveSessionItemAlert": "您將刪除此助理。一旦刪除,將無法恢復。請確認您的操作。",
20
+ "copy": "複製",
21
+ "copySuccess": "複製成功",
22
+ "defaultAgent": "自訂助理",
23
+ "defaultSession": "自訂助理",
24
+ "delete": "刪除",
25
+ "edit": "編輯",
26
+ "export": "匯出設定",
27
+ "exportType": {
28
+ "agent": "匯出助理設定",
29
+ "agentWithMessage": "匯出助理與訊息",
30
+ "all": "匯出全域設定與所有助理資料",
31
+ "allAgent": "匯出所有助理設定",
32
+ "allAgentWithMessage": "匯出所有助理與訊息",
33
+ "globalSetting": "匯出全域設定"
34
+ },
35
+ "feedback": "意見回饋",
36
+ "import": "匯入設定",
37
+ "inbox": {
38
+ "defaultMessage": "您好,我是您的智慧助理。您可以問我任何問題,我會盡力回答您。如果您需要更專業或自訂的助理,您可以點選 <kbd>+</kbd> 來建立一個自訂助理。",
39
+ "desc": "啟動思維並激發你的創意。你的智慧助理已經準備好與你討論所有事情。",
40
+ "title": "隨便聊聊"
41
+ },
42
+ "message": {
43
+ "function_loading": "外掛請求進行中..."
44
+ },
45
+ "moreSetting": "更多設定...",
46
+ "newAgent": "新助理",
47
+ "noDescription": "無描述",
48
+ "ok": "確定",
49
+ "pin": "置頂",
50
+ "pinOff": "取消置頂",
51
+ "regenerate": "重新產生",
52
+ "rename": "重新命名",
53
+ "reset": "重設",
54
+ "retry": "重試",
55
+ "roleAndArchive": "角色與歸檔",
56
+ "searchAgentPlaceholder": "搜尋助理與對話...",
57
+ "send": "傳送",
58
+ "sendPlaceholder": "輸入聊天內容...",
59
+ "sessionList": "助理列表",
60
+ "setting": "設定",
61
+ "share": "分享",
62
+ "stop": "停止",
63
+ "tab": {
64
+ "chat": "聊天",
65
+ "market": "探索",
66
+ "setting": "設定"
67
+ },
68
+ "temp": "臨時",
69
+ "tokenDetail": "角色設定:{{systemRoleToken}} · 訊息歷史:{{chatsToken}}",
70
+ "tokenTag": {
71
+ "overload": "超過限制",
72
+ "remained": "剩餘",
73
+ "used": "已使用"
74
+ },
75
+ "topic": {
76
+ "confirmRemoveTopic": "您將刪除此主題。一旦刪除,將無法恢復。請小心操作。",
77
+ "defaultTitle": "預設主題",
78
+ "saveCurrentMessages": "將目前的對話儲存為主題",
79
+ "searchPlaceholder": "搜尋主題...",
80
+ "title": "主題"
81
+ },
82
+ "updateAgent": "更新助理資訊",
83
+ "updatePrompt": "更新提示",
84
+ "warp": "換行"
85
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "topic": {
3
+ "desc": "點選左側的按鈕,將目前的對話存成歷史主題,並開始新的對話",
4
+ "title": "主題清單"
5
+ }
6
+ }