@lobehub/chat 0.121.4 → 0.122.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/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.122.1](https://github.com/lobehub/lobe-chat/compare/v0.122.0...v0.122.1)
6
+
7
+ <sup>Released on **2024-01-29**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Fix antd tab width flicker when show function debug.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Fix antd tab width flicker when show function debug, closes [#1171](https://github.com/lobehub/lobe-chat/issues/1171) ([14e99d2](https://github.com/lobehub/lobe-chat/commit/14e99d2))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
30
+ ## [Version 0.122.0](https://github.com/lobehub/lobe-chat/compare/v0.121.4...v0.122.0)
31
+
32
+ <sup>Released on **2024-01-29**</sup>
33
+
34
+ #### ✨ Features
35
+
36
+ - **misc**: Add create agent action in group menu.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### What's improved
44
+
45
+ - **misc**: Add create agent action in group menu, closes [#1177](https://github.com/lobehub/lobe-chat/issues/1177) ([17ec1eb](https://github.com/lobehub/lobe-chat/commit/17ec1eb))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ### [Version 0.121.4](https://github.com/lobehub/lobe-chat/compare/v0.121.3...v0.121.4)
6
56
 
7
57
  <sup>Released on **2024-01-29**</sup>
package/README.md CHANGED
@@ -225,14 +225,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
225
225
 
226
226
  <!-- AGENT LIST -->
227
227
 
228
- | Recent Submits | Description |
229
- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
230
- | [Bilibili Assistant](https://chat-preview.lobehub.com/market?agent=bilibili-agent)<br/><sup>By **[canisminor1990](https://github.com/canisminor1990)** on **2024-01-27**</sup> | Bilibili Assistant, proficient in parsing video content, generating well-formatted text, responding to user queries, and recommending the latest videos.<br/>`video-comments` `danmaku-extraction` `bilibili` `bilibili` `video-search` |
231
- | [Steam Game Reviews](https://chat-preview.lobehub.com/market?agent=steam-agent)<br/><sup>By **[canisminor1990](https://github.com/canisminor1990)** on **2024-01-27**</sup> | Steam game expert consultant, popular game recommendations and in-depth game analysis<br/>`steam` `game-recommendations` `game-reviews` |
232
- | [Culinary AI Mentor](https://chat-preview.lobehub.com/market?agent=chef)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-26**</sup> | AI Master Chef Assistant: Inspiring home cooks with international cuisines, recipes, and culinary expertise.<br/>`cooking` `recipe` `culinary` `techniques` `meal-planning` |
233
- | [AI Import/Export Advisor](https://chat-preview.lobehub.com/market?agent=import-and-export-advisor)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-26**</sup> | AI Import and Export Advisor: Providing guidance on global trade, customs regulations, documentation, trade agreements, and risk management.<br/>`import-export` `trade` `consulting` |
228
+ | Recent Submits | Description |
229
+ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
230
+ | [Territory Promotion Strategist](https://chat-preview.lobehub.com/market?agent=biskaya)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-29**</sup> | Territorial Competitiveness and Promotion Expert<br/>`territorial-competitiveness` `promotion` `consulting` `marketing` `event-coordination` |
231
+ | [Bizkaia Entrepreneurship Expert](https://chat-preview.lobehub.com/market?agent=bizkaia-entrepreneurship-expert)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-29**</sup> | Entrepreneurship and Competitiveness Expert for Bizkaia Deputation, providing tailored guidance and support to local entrepreneurs.<br/>`bizkaia` `entrepreneurship` `consulting` `mentorship` `local-business-ecosystem` `market-dynamics` `business-plans` `financial-models` `funding-strategies` `marketing` `branding` `sales-strategies` `networking` `entrepreneurship-programs` `guidance` `local-resources` `funding-opportunities` `collaboration` `sustainable-business-practices` `economic-development` |
232
+ | [English Language C1 Mastery Coach](https://chat-preview.lobehub.com/market?agent=english-language-c-1-mastery-coach)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-29**</sup> | English Conversation Partner for C1 Level<br/>`english-conversation` `language-proficiency` `advanced-level` `language-coaching` `fluency` |
233
+ | [Software Architecture Strategist](https://chat-preview.lobehub.com/market?agent=software-architecture-strategist)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-29**</sup> | Software Development Architect: Designs scalable and secure software systems, guides development teams, and translates business requirements into technical solutions.<br/>`software-development` `architecture` `design` `leadership` `communication` |
234
234
 
235
- > 📊 Total agents: [<kbd>**125**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
235
+ > 📊 Total agents: [<kbd>**139**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
236
236
 
237
237
  <!-- AGENT LIST -->
238
238
 
@@ -357,7 +357,7 @@ If you want to deploy this service yourself on either Vercel or Zeabur, you can
357
357
 
358
358
  <div align="center">
359
359
 
360
- | Deploy with Vercel | Deploy with Zeabur | Deploy with Sealos |
360
+ | Deploy with Vercel | Deploy with Zeabur | Deploy with Sealos |
361
361
  | :-------------------------------------: | :---------------------------------------------------------: | :---------------------------------------------------------: |
362
362
  | [![][deploy-button-image]][deploy-link] | [![][deploy-on-zeabur-button-image]][deploy-on-zeabur-link] | [![][deploy-on-sealos-button-image]][deploy-on-sealos-link] |
363
363
 
@@ -658,7 +658,7 @@ This project is [MIT](./LICENSE) licensed.
658
658
  [profile-link]: https://github.com/lobehub
659
659
  [share-linkedin-link]: https://linkedin.com/feed
660
660
  [share-linkedin-shield]: https://img.shields.io/badge/-share%20on%20linkedin-black?labelColor=black&logo=linkedin&logoColor=white&style=flat-square
661
- [share-mastodon-link]: https://mastodon.social/share?text=Check%20this%20GitHub%20repository%20out%20%F0%9F%A4%AF%20LobeChat%20-%20An%20open-source,%20extensible%20\(Function%20Calling\),%20high-performance%20chatbot%20framework.%20It%20supports%20one-click%20free%20deployment%20of%20your%20private%20ChatGPT/LLM%20web%20application.%20https://github.com/lobehub/lobe-chat%20#chatbot%20#chatGPT%20#openAI
661
+ [share-mastodon-link]: https://mastodon.social/share?text=Check%20this%20GitHub%20repository%20out%20%F0%9F%A4%AF%20LobeChat%20-%20An%20open-source,%20extensible%20(Function%20Calling),%20high-performance%20chatbot%20framework.%20It%20supports%20one-click%20free%20deployment%20of%20your%20private%20ChatGPT/LLM%20web%20application.%20https://github.com/lobehub/lobe-chat%20#chatbot%20#chatGPT%20#openAI
662
662
  [share-mastodon-shield]: https://img.shields.io/badge/-share%20on%20mastodon-black?labelColor=black&logo=mastodon&logoColor=white&style=flat-square
663
663
  [share-reddit-link]: https://www.reddit.com/submit?title=Check%20this%20GitHub%20repository%20out%20%F0%9F%A4%AF%20LobeChat%20-%20An%20open-source%2C%20extensible%20%28Function%20Calling%29%2C%20high-performance%20chatbot%20framework.%20It%20supports%20one-click%20free%20deployment%20of%20your%20private%20ChatGPT%2FLLM%20web%20application.%20%23chatbot%20%23chatGPT%20%23openAI&url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat
664
664
  [share-reddit-shield]: https://img.shields.io/badge/-share%20on%20reddit-black?labelColor=black&logo=reddit&logoColor=white&style=flat-square
@@ -670,7 +670,7 @@ This project is [MIT](./LICENSE) licensed.
670
670
  [share-whatsapp-shield]: https://img.shields.io/badge/-share%20on%20whatsapp-black?labelColor=black&logo=whatsapp&logoColor=white&style=flat-square
671
671
  [share-x-link]: https://x.com/intent/tweet?hashtags=chatbot%2CchatGPT%2CopenAI&text=Check%20this%20GitHub%20repository%20out%20%F0%9F%A4%AF%20LobeChat%20-%20An%20open-source%2C%20extensible%20%28Function%20Calling%29%2C%20high-performance%20chatbot%20framework.%20It%20supports%20one-click%20free%20deployment%20of%20your%20private%20ChatGPT%2FLLM%20web%20application.&url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat
672
672
  [share-x-shield]: https://img.shields.io/badge/-share%20on%20x-black?labelColor=black&logo=x&logoColor=white&style=flat-square
673
- [sponsor-link]: https://opencollective.com/lobehub "Become 🩷 LobeHub Sponsor"
673
+ [sponsor-link]: https://opencollective.com/lobehub 'Become 🩷 LobeHub Sponsor'
674
674
  [sponsor-shield]: https://img.shields.io/badge/-Sponsor%20LobeHub-f04f88?logo=opencollective&logoColor=white&style=flat-square
675
675
  [submit-agents-link]: https://github.com/lobehub/lobe-chat-agents
676
676
  [submit-agents-shield]: https://img.shields.io/badge/🤖/🏪_submit_agent-%E2%86%92-c4f042?labelColor=black&style=for-the-badge
package/README.zh-CN.md CHANGED
@@ -77,8 +77,8 @@ LobeChat 是开源的高性能聊天机器人框架,支持语音合成、多
77
77
  我们是一群充满热情的设计工程师,希望为 AIGC 提供现代化的设计组件和工具,并以开源的方式分享。不论普通用户与专业开发者
78
78
  LobeHub 旨在成为所有人的 AI Agent 实验场,LobeChat 目前正在积极开发中,有需求或者问题,欢迎提交 [issues][issues-link]
79
79
 
80
- | [![][vercel-shield-badge]][vercel-link] | 无需安装或注册!访问我们的网站,快速体验 |
81
- | :---------------------------------------- | :---------------------------------------------- |
80
+ | [![][vercel-shield-badge]][vercel-link] | 无需安装或注册!访问我们的网站,快速体验 |
81
+ | :---------------------------------------- | :--------------------------------------------------------------------------- |
82
82
  | [![][discord-shield-badge]][discord-link] | 加入我们的 Discord 社区!这是你可以与开发者和其他 LobeHub 热衷用户交流的地方 |
83
83
 
84
84
  > \[!IMPORTANT]
@@ -170,12 +170,12 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
170
170
 
171
171
  <!-- PLUGIN LIST -->
172
172
 
173
- | 最近新增 | 插件描述 |
174
- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
175
- | [TokenInsights](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **feednews** on **2024-01-27**</sup> | 获取实时加密货币价格,BTC,ETH,BNB 和最新见解。最新的币新闻和空投机会。<br/>`加密货币` `btc` `eth` `bnb` |
176
- | [哔哩哔哩](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **LobeHub** on **2024-01-27**</sup> | 通过关键词视频搜索、回放访问、互动弹幕、热门视频推荐和热搜洞察等功能,深入体验哔哩哔哩丰富的内容,尽在您的指尖。<br/>`视频` `哔哩哔哩` `搜索` |
177
- | [Steam](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **LobeHub** on **2024-01-27**</sup> | 从 Steam 获取游戏信息和用户评论。<br/>`steam` `game` |
178
- | [当前时间助手](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **cc** on **2024-01-26**</sup> | 提供当前时间信息的插件<br/>`时间` |
173
+ | 最近新增 | 插件描述 |
174
+ | ----------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
175
+ | [TokenInsights](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **feednews** on **2024-01-27**</sup> | 获取实时加密货币价格,BTC,ETH,BNB 和最新见解。最新的币新闻和空投机会。<br/>`加密货币` `btc` `eth` `bnb` |
176
+ | [哔哩哔哩](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **LobeHub** on **2024-01-27**</sup> | 通过关键词视频搜索、回放访问、互动弹幕、热门视频推荐和热搜洞察等功能,深入体验哔哩哔哩丰富的内容,尽在您的指尖。<br/>`视频` `哔哩哔哩` `搜索` |
177
+ | [Steam](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **LobeHub** on **2024-01-27**</sup> | 从 Steam 获取游戏信息和用户评论。<br/>`steam` `game` |
178
+ | [当前时间助手](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **cc** on **2024-01-26**</sup> | 提供当前时间信息的插件<br/>`时间` |
179
179
 
180
180
  > 📊 Total plugins: [<kbd>**60**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
181
181
 
@@ -205,14 +205,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
205
205
 
206
206
  <!-- AGENT LIST -->
207
207
 
208
- | 最近新增 | 助手说明 |
209
- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
210
- | [Bilibili 助手](https://chat-preview.lobehub.com/market?agent=bilibili-agent)<br/><sup>By **[canisminor1990](https://github.com/canisminor1990)** on **2024-01-27**</sup> | Bilibili 助手,擅长解析视频内容、生成格式良好的文本、回应用户查询和推荐最新视频。<br/>`视频评论` `弹幕提取` `bilibili` `哔哩哔哩` `视频搜索` |
211
- | [Steam 游戏评测](https://chat-preview.lobehub.com/market?agent=steam-agent)<br/><sup>By **[canisminor1990](https://github.com/canisminor1990)** on **2024-01-27**</sup> | Steam 游戏专家顾问,热门游戏推荐和深度游戏解析<br/>`steam` `游戏推荐` `游戏测评` |
212
- | [烹饪 AI 导师](https://chat-preview.lobehub.com/market?agent=chef)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-26**</sup> | AI 大厨助手:激发家庭厨师对国际美食、食谱和烹饪专业知识的热爱。<br/>`烹饪` `食谱` `烹饪` `技巧` `膳食规划` |
213
- | [AI 进出口顾问](https://chat-preview.lobehub.com/market?agent=import-and-export-advisor)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-26**</sup> | AI 进出口顾问:提供全球贸易、海关法规、文件、贸易协定和风险管理方面的指导。<br/>`进出口` `贸易` `咨询` |
208
+ | 最近新增 | 助手说明 |
209
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
210
+ | [领土推广策略师](https://chat-preview.lobehub.com/market?agent=biskaya)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-29**</sup> | 领土竞争力和推广专家<br/>`territorial-competitiveness` `promotion` `consulting` `marketing` `event-coordination` |
211
+ | [毕尔巴鄂创业专家](https://chat-preview.lobehub.com/market?agent=bizkaia-entrepreneurship-expert)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-29**</sup> | 毕尔巴鄂代表处的创业和竞争力专家,为当地企业家提供定制指导和支持。<br/>`毕尔巴鄂` `创业` `咨询` `指导` `本地商业生态系统` `市场动态` `商业计划` `财务模型` `融资策略` `营销` `品牌塑造` `销售策略` `社交网络` `创业项目` `指导` `本地资源` `融资机会` `合作` `可持续商业实践` `经济发展` |
212
+ | [英语 C1 级精通教练](https://chat-preview.lobehub.com/market?agent=english-language-c-1-mastery-coach)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-29**</sup> | C1 级别的英语会话伙伴<br/>`英语会话` `语言熟练度` `高级水平` `语言辅导` `流利度` |
213
+ | [软件架构策略师](https://chat-preview.lobehub.com/market?agent=software-architecture-strategist)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-29**</sup> | 软件开发架构师:设计可扩展和安全的软件系统,指导开发团队,并将业务需求转化为技术解决方案。<br/>`软件开发` `架构` `设计` `领导力` `沟通` |
214
214
 
215
- > 📊 Total agents: [<kbd>**125**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
215
+ > 📊 Total agents: [<kbd>**139**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
216
216
 
217
217
  <!-- AGENT LIST -->
218
218
 
@@ -304,9 +304,9 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
304
304
  >
305
305
  > 完整测试报告可见 [📘 Lighthouse 性能测试](https://github.com/lobehub/lobe-chat/wiki/Lighthouse.zh-CN)
306
306
 
307
- | Desktop | Mobile |
308
- | :---------------------------------------: | :--------------------------------------: |
309
- | ![][chat-desktop] | ![][chat-mobile] |
307
+ | Desktop | Mobile |
308
+ | :-------------------------------------------: | :------------------------------------------: |
309
+ | ![][chat-desktop] | ![][chat-mobile] |
310
310
  | [📑 Lighthouse 测试报告][chat-desktop-report] | [📑 Lighthouse 测试报告][chat-mobile-report] |
311
311
 
312
312
  <div align="right">
@@ -332,7 +332,7 @@ LobeChat 提供了 Vercel 的 自托管版本 和 [Docker 镜像][docker-release
332
332
 
333
333
  <div align="center">
334
334
 
335
- | 使用 Vercel 部署 | 使用 Zeabur 部署 | 使用 Sealos 部署 |
335
+ | 使用 Vercel 部署 | 使用 Zeabur 部署 | 使用 Sealos 部署 |
336
336
  | :-------------------------------------: | :---------------------------------------------------------: | :---------------------------------------------------------: |
337
337
  | [![][deploy-button-image]][deploy-link] | [![][deploy-on-zeabur-button-image]][deploy-on-zeabur-link] | [![][deploy-on-sealos-button-image]][deploy-on-sealos-link] |
338
338
 
@@ -387,12 +387,12 @@ $ docker run -d -p 3210:3210 \
387
387
 
388
388
  本项目提供了一些额外的配置项,使用环境变量进行设置:
389
389
 
390
- | 环境变量 | 类型 | 描述 | 示例 |
391
- | ------------------ | -- | ---------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
392
- | `OPENAI_API_KEY` | 必选 | 这是你在 OpenAI 账户页面申请的 API 密钥 | `sk-xxxxxx...xxxxxx` |
393
- | `OPENAI_PROXY_URL` | 可选 | 如果你手动配置了 OpenAI 接口代理,可以使用此配置项来覆盖默认的 OpenAI API 请求基础 URL | `https://api.chatanywhere.cn` 或 `https://aihubmix.com/v1`<br/>默认值:<br/>`https://api.openai.com/v1` |
394
- | `ACCESS_CODE` | 可选 | 添加访问此服务的密码,你可以设置一个长密码以防被爆破,该值用逗号分隔时为密码数组 | `awCTe)re_r74` or `rtrt_ewee3@09!` or `code1,code2,code3` |
395
- | `CUSTOM_MODELS` | 可选 | 用来控制模型列表,使用 `+` 增加一个模型,使用 `-` 来隐藏一个模型,使用 `模型名=展示名` 来自定义模型的展示名,用英文逗号隔开。 | `qwen-7b-chat,+glm-6b,-gpt-3.5-turbo` |
390
+ | 环境变量 | 类型 | 描述 | 示例 |
391
+ | ------------------ | ---- | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
392
+ | `OPENAI_API_KEY` | 必选 | 这是你在 OpenAI 账户页面申请的 API 密钥 | `sk-xxxxxx...xxxxxx` |
393
+ | `OPENAI_PROXY_URL` | 可选 | 如果你手动配置了 OpenAI 接口代理,可以使用此配置项来覆盖默认的 OpenAI API 请求基础 URL | `https://api.chatanywhere.cn` 或 `https://aihubmix.com/v1`<br/>默认值:<br/>`https://api.openai.com/v1` |
394
+ | `ACCESS_CODE` | 可选 | 添加访问此服务的密码,你可以设置一个长密码以防被爆破,该值用逗号分隔时为密码数组 | `awCTe)re_r74` or `rtrt_ewee3@09!` or `code1,code2,code3` |
395
+ | `CUSTOM_MODELS` | 可选 | 用来控制模型列表,使用 `+` 增加一个模型,使用 `-` 来隐藏一个模型,使用 `模型名=展示名` 来自定义模型的展示名,用英文逗号隔开。 | `qwen-7b-chat,+glm-6b,-gpt-3.5-turbo` |
396
396
 
397
397
  > \[!NOTE]
398
398
  >
@@ -409,7 +409,7 @@ API Key 是使用 LobeChat 进行大语言模型会话的必要信息,本节
409
409
  - 注册一个 [OpenAI 账户](https://platform.openai.com/signup),你需要使用国际手机号、非大陆邮箱进行注册;
410
410
  - 注册完毕后,前往 [API Keys](https://platform.openai.com/api-keys) 页面,点击 `Create new secret key` 创建新的 API Key:
411
411
 
412
- | 步骤 1:打开创建窗口 | 步骤 2:创建 API Key | 步骤 3:获取 API Key |
412
+ | 步骤 1:打开创建窗口 | 步骤 2:创建 API Key | 步骤 3:获取 API Key |
413
413
  | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
414
414
  | <img src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/296253192-ff2193dd-f125-4e58-82e8-91bc376c0d68.png" height="200"/> | <img src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/296254170-803bacf0-4471-4171-ae79-0eab08d621d1.png" height="200"/> | <img src="https://github-production-user-asset-6210df.s3.amazonaws.com/28616219/296255167-f2745f2b-f083-4ba8-bc78-9b558e0002de.png" height="200"/> |
415
415
 
@@ -428,8 +428,8 @@ API Key 是使用 LobeChat 进行大语言模型会话的必要信息,本节
428
428
  这可以有效降低获取 OpenAI API Key 的门槛。但与此同时,一旦使用三方服务,你可能也需要承担潜在的风险,
429
429
  请根据你自己的实际情况自行决策。以下是常见的第三方模型代理商列表,供你参考:
430
430
 
431
- | | 服务商 | 特性说明 | Proxy 代理地址 | 链接 |
432
- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------------------------------ | ------------------------- | ----------------------------- |
431
+ | | 服务商 | 特性说明 | Proxy 代理地址 | 链接 |
432
+ | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | --------------------------------------------------------- | ------------------------- | ------------------------------- |
433
433
  | <img src="https://github-production-user-asset-6210df.s3.amazonaws.com/17870709/296272721-c3ac0bf3-e433-4496-89c4-ebdc20689c17.jpg" width="48" /> | **AiHubMix** | 使用 OpenAI 企业接口,全站模型价格为官方一半(含 GPT-4 ) | `https://aihubmix.com/v1` | [获取](https://lobe.li/XHnZIUP) |
434
434
 
435
435
  > \[!WARNING]
@@ -448,12 +448,12 @@ API Key 是使用 LobeChat 进行大语言模型会话的必要信息,本节
448
448
 
449
449
  ## 📦 生态系统
450
450
 
451
- | NPM | 仓库 | 描述 | 版本 |
452
- | ------------------------------- | ------------------------------------- | ----------------------------------------------------------------------------------------- | --------------------------------------- |
453
- | [@lobehub/ui][lobe-ui-link] | [lobehub/lobe-ui][lobe-ui-github] | Lobe UI 是一个专为构建 AIGC 网页应用程序而设计的开源 UI 组件库。 | [![][lobe-ui-shield]][lobe-ui-link] |
454
- | [@lobehub/tts][lobe-tts-link] | [lobehub/lobe-tts][lobe-tts-github] | Lobe TTS 是一个专为 TTS/STT 建设的语音合成 / 识别 React Hooks 库 | [![][lobe-tts-shield]][lobe-tts-link] |
451
+ | NPM | 仓库 | 描述 | 版本 |
452
+ | ------------------------------- | ------------------------------------- | ----------------------------------------------------------------------------------------------------- | --------------------------------------- |
453
+ | [@lobehub/ui][lobe-ui-link] | [lobehub/lobe-ui][lobe-ui-github] | Lobe UI 是一个专为构建 AIGC 网页应用程序而设计的开源 UI 组件库。 | [![][lobe-ui-shield]][lobe-ui-link] |
454
+ | [@lobehub/tts][lobe-tts-link] | [lobehub/lobe-tts][lobe-tts-github] | Lobe TTS 是一个专为 TTS/STT 建设的语音合成 / 识别 React Hooks 库 | [![][lobe-tts-shield]][lobe-tts-link] |
455
455
  | [@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] |
456
- | @lobehub/assets | [lobehub/assets][lobe-assets-github] | LobeHub 的 Logo 资源、favicon、网页字体。 | |
456
+ | @lobehub/assets | [lobehub/assets][lobe-assets-github] | LobeHub 的 Logo 资源、favicon、网页字体。 | |
457
457
 
458
458
  <div align="right">
459
459
 
@@ -672,7 +672,7 @@ This project is [MIT](./LICENSE) licensed.
672
672
  [pr-welcome-link]: https://github.com/lobehub/lobe-chat/pulls
673
673
  [pr-welcome-shield]: https://img.shields.io/badge/🤯_pr_welcome-%E2%86%92-ffcb47?labelColor=black&style=for-the-badge
674
674
  [profile-link]: https://github.com/lobehub
675
- [share-mastodon-link]: https://mastodon.social/share?text=Check%20this%20GitHub%20repository%20out%20%F0%9F%A4%AF%20LobeChat%20-%20An%20open-source,%20extensible%20\(Function%20Calling\),%20high-performance%20chatbot%20framework.%20It%20supports%20one-click%20free%20deployment%20of%20your%20private%20ChatGPT/LLM%20web%20application.%20https://github.com/lobehub/lobe-chat%20#chatbot%20#chatGPT%20#openAI
675
+ [share-mastodon-link]: https://mastodon.social/share?text=Check%20this%20GitHub%20repository%20out%20%F0%9F%A4%AF%20LobeChat%20-%20An%20open-source,%20extensible%20(Function%20Calling),%20high-performance%20chatbot%20framework.%20It%20supports%20one-click%20free%20deployment%20of%20your%20private%20ChatGPT/LLM%20web%20application.%20https://github.com/lobehub/lobe-chat%20#chatbot%20#chatGPT%20#openAI
676
676
  [share-mastodon-shield]: https://img.shields.io/badge/-share%20on%20mastodon-black?labelColor=black&logo=mastodon&logoColor=white&style=flat-square
677
677
  [share-reddit-link]: https://www.reddit.com/submit?title=%E6%8E%A8%E8%8D%90%E4%B8%80%E4%B8%AA%20GitHub%20%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE%20%F0%9F%A4%AF%20LobeChat%20-%20%E5%BC%80%E6%BA%90%E7%9A%84%E3%80%81%E5%8F%AF%E6%89%A9%E5%B1%95%E7%9A%84%EF%BC%88Function%20Calling%EF%BC%89%E9%AB%98%E6%80%A7%E8%83%BD%E8%81%8A%E5%A4%A9%E6%9C%BA%E5%99%A8%E4%BA%BA%E6%A1%86%E6%9E%B6%E3%80%82%0A%E5%AE%83%E6%94%AF%E6%8C%81%E4%B8%80%E9%94%AE%E5%85%8D%E8%B4%B9%E9%83%A8%E7%BD%B2%E7%A7%81%E4%BA%BA%20ChatGPT%2FLLM%20%E7%BD%91%E9%A1%B5%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%20%23chatbot%20%23chatGPT%20%23openAI&url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat
678
678
  [share-reddit-shield]: https://img.shields.io/badge/-share%20on%20reddit-black?labelColor=black&logo=reddit&logoColor=white&style=flat-square
@@ -684,7 +684,7 @@ This project is [MIT](./LICENSE) licensed.
684
684
  [share-whatsapp-shield]: https://img.shields.io/badge/-share%20on%20whatsapp-black?labelColor=black&logo=whatsapp&logoColor=white&style=flat-square
685
685
  [share-x-link]: https://x.com/intent/tweet?hashtags=chatbot%2CchatGPT%2CopenAI&text=%E6%8E%A8%E8%8D%90%E4%B8%80%E4%B8%AA%20GitHub%20%E5%BC%80%E6%BA%90%E9%A1%B9%E7%9B%AE%20%F0%9F%A4%AF%20LobeChat%20-%20%E5%BC%80%E6%BA%90%E7%9A%84%E3%80%81%E5%8F%AF%E6%89%A9%E5%B1%95%E7%9A%84%EF%BC%88Function%20Calling%EF%BC%89%E9%AB%98%E6%80%A7%E8%83%BD%E8%81%8A%E5%A4%A9%E6%9C%BA%E5%99%A8%E4%BA%BA%E6%A1%86%E6%9E%B6%E3%80%82%0A%E5%AE%83%E6%94%AF%E6%8C%81%E4%B8%80%E9%94%AE%E5%85%8D%E8%B4%B9%E9%83%A8%E7%BD%B2%E7%A7%81%E4%BA%BA%20ChatGPT%2FLLM%20%E7%BD%91%E9%A1%B5%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F&url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat
686
686
  [share-x-shield]: https://img.shields.io/badge/-share%20on%20x-black?labelColor=black&logo=x&logoColor=white&style=flat-square
687
- [sponsor-link]: https://opencollective.com/lobehub "Become 🩷 LobeHub Sponsor"
687
+ [sponsor-link]: https://opencollective.com/lobehub 'Become 🩷 LobeHub Sponsor'
688
688
  [sponsor-shield]: https://img.shields.io/badge/-Sponsor%20LobeHub-f04f88?logo=opencollective&logoColor=white&style=flat-square
689
689
  [submit-agents-link]: https://github.com/lobehub/lobe-chat-agents
690
690
  [submit-agents-shield]: https://img.shields.io/badge/🤖/🏪_submit_agent-%E2%86%92-c4f042?labelColor=black&style=for-the-badge
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.121.4",
3
+ "version": "0.122.1",
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",
@@ -1,7 +1,7 @@
1
1
  import { ActionIcon, Icon } from '@lobehub/ui';
2
2
  import { App, Dropdown, DropdownProps, MenuProps } from 'antd';
3
3
  import { createStyles } from 'antd-style';
4
- import { MoreVertical, PencilLine, Settings2, Trash } from 'lucide-react';
4
+ import { MoreVertical, PencilLine, Plus, Settings2, Trash } from 'lucide-react';
5
5
  import { memo, useMemo } from 'react';
6
6
  import { useTranslation } from 'react-i18next';
7
7
 
@@ -15,19 +15,51 @@ const useStyles = createStyles(({ css }) => ({
15
15
  interface ActionsProps extends Pick<DropdownProps, 'onOpenChange'> {
16
16
  id?: string;
17
17
  isCustomGroup?: boolean;
18
+ isPinned?: boolean;
18
19
  openConfigModal: () => void;
19
20
  openRenameModal?: () => void;
20
21
  }
21
22
 
23
+ type ItemOfType<T> = T extends (infer Item)[] ? Item : never;
24
+ type MenuItemType = ItemOfType<MenuProps['items']>;
25
+
22
26
  const Actions = memo<ActionsProps>(
23
- ({ id, openRenameModal, openConfigModal, onOpenChange, isCustomGroup }) => {
27
+ ({ id, openRenameModal, openConfigModal, onOpenChange, isCustomGroup, isPinned }) => {
24
28
  const { t } = useTranslation('chat');
25
29
  const { styles } = useStyles();
26
30
  const { modal } = App.useApp();
27
31
 
28
- const [removeSessionGroup] = useSessionStore((s) => [s.removeSessionGroup]);
32
+ const [createSession, removeSessionGroup] = useSessionStore((s) => [
33
+ s.createSession,
34
+ s.removeSessionGroup,
35
+ ]);
36
+
37
+ const sessionGroupConfigPublicItem: MenuItemType = {
38
+ icon: <Icon icon={Settings2} />,
39
+ key: 'config',
40
+ label: t('sessionGroup.config'),
41
+ onClick: ({ domEvent }) => {
42
+ domEvent.stopPropagation();
43
+ openConfigModal();
44
+ },
45
+ };
46
+
47
+ const newAgentPublicItem: MenuItemType = {
48
+ icon: <Icon icon={Plus} />,
49
+ key: 'newAgent',
50
+ label: t('newAgent'),
51
+ onClick: ({ domEvent }) => {
52
+ domEvent.stopPropagation();
53
+ createSession({ group: id, pinned: isPinned });
54
+ },
55
+ };
56
+
29
57
  const customGroupItems: MenuProps['items'] = useMemo(
30
58
  () => [
59
+ newAgentPublicItem,
60
+ {
61
+ type: 'divider',
62
+ },
31
63
  {
32
64
  icon: <Icon icon={PencilLine} />,
33
65
  key: 'rename',
@@ -37,15 +69,7 @@ const Actions = memo<ActionsProps>(
37
69
  openRenameModal?.();
38
70
  },
39
71
  },
40
- {
41
- icon: <Icon icon={Settings2} />,
42
- key: 'config',
43
- label: t('sessionGroup.config'),
44
- onClick: ({ domEvent }) => {
45
- domEvent.stopPropagation();
46
- openConfigModal();
47
- },
48
- },
72
+ sessionGroupConfigPublicItem,
49
73
  {
50
74
  type: 'divider',
51
75
  },
@@ -74,15 +98,11 @@ const Actions = memo<ActionsProps>(
74
98
 
75
99
  const defaultItems: MenuProps['items'] = useMemo(
76
100
  () => [
101
+ newAgentPublicItem,
77
102
  {
78
- icon: <Icon icon={Settings2} />,
79
- key: 'config',
80
- label: t('sessionGroup.config'),
81
- onClick: ({ domEvent }) => {
82
- domEvent.stopPropagation();
83
- openConfigModal();
84
- },
103
+ type: 'divider',
85
104
  },
105
+ sessionGroupConfigPublicItem,
86
106
  ],
87
107
  [],
88
108
  );
@@ -40,7 +40,7 @@ const SessionListContent = memo(() => {
40
40
  [
41
41
  pinnedSessions.length > 0 && {
42
42
  children: <SessionList dataSource={pinnedSessions} />,
43
- extra: <Actions openConfigModal={() => setConfigGroupModalOpen(true)} />,
43
+ extra: <Actions isPinned openConfigModal={() => setConfigGroupModalOpen(true)} />,
44
44
  key: SessionDefaultGroup.Pinned,
45
45
  label: t('pin'),
46
46
  },
@@ -23,7 +23,8 @@ class _SessionModel extends BaseModel {
23
23
 
24
24
  async create(type: 'agent' | 'group', defaultValue: Partial<LobeAgentSession>, id = uuid()) {
25
25
  const data = merge(DEFAULT_AGENT_LOBE_SESSION, { type, ...defaultValue });
26
- return this._add(data, id);
26
+ const dataDB = this.mapToDB_Session(data);
27
+ return this._add(dataDB, id);
27
28
  }
28
29
 
29
30
  async batchCreate(sessions: LobeAgentSession[]) {
@@ -118,7 +118,7 @@ const Inspector = memo<InspectorProps>(
118
118
  label: t('debug.response'),
119
119
  },
120
120
  ]}
121
- style={{ display: 'grid', maxWidth: 800 }}
121
+ style={{ display: 'grid', maxWidth: 800, minWidth: 400 }}
122
122
  />
123
123
  )}
124
124
  </Flexbox>