@lobehub/chat 0.121.0 → 0.121.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,39 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.121.1](https://github.com/lobehub/lobe-chat/compare/v0.121.0...v0.121.1)
6
+
7
+ <sup>Released on **2024-01-24**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Automatically fill in the wrong password.
12
+
13
+ #### 💄 Styles
14
+
15
+ - **misc**: Fix default plugins height unstabled when scrolling.
16
+
17
+ <br/>
18
+
19
+ <details>
20
+ <summary><kbd>Improvements and Fixes</kbd></summary>
21
+
22
+ #### What's fixed
23
+
24
+ - **misc**: Automatically fill in the wrong password, closes [#1144](https://github.com/lobehub/lobe-chat/issues/1144) ([0159a1a](https://github.com/lobehub/lobe-chat/commit/0159a1a))
25
+
26
+ #### Styles
27
+
28
+ - **misc**: Fix default plugins height unstabled when scrolling, closes [#1142](https://github.com/lobehub/lobe-chat/issues/1142) ([abed417](https://github.com/lobehub/lobe-chat/commit/abed417))
29
+
30
+ </details>
31
+
32
+ <div align="right">
33
+
34
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
35
+
36
+ </div>
37
+
5
38
  ## [Version 0.121.0](https://github.com/lobehub/lobe-chat/compare/v0.120.6...v0.121.0)
6
39
 
7
40
  <sup>Released on **2024-01-24**</sup>
package/README.md CHANGED
@@ -223,14 +223,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
223
223
 
224
224
  <!-- AGENT LIST -->
225
225
 
226
- | Recent Submits | Description |
227
- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
228
- | [Shopping Assistant](https://chat-preview.lobehub.com/market?agent=shop)<br/><sup>By **[guluahljj](https://github.com/guluahljj)** on **2024-01-22**</sup> | Shopping assistant, specializing in product search, price comparison, and providing purchase links<br/>`shopping-assistant` `product-search` `price-comparison` `purchase-advice` `customer-consultation` `agulu` |
229
- | [Accounting Expert Assistant](https://chat-preview.lobehub.com/market?agent=accounting)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-21**</sup> | Accountant Agent: Comprehensive accounting support and expertise for individuals and businesses worldwide.<br/>`accounting` `financial-management` `tax-planning` `budgeting` |
230
- | [Business Guru](https://chat-preview.lobehub.com/market?agent=business-guru)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-21**</sup> | Business Consultant: Providing comprehensive business support and expertise worldwide.Capabilities: Business strategy, market research, financial analysis, operations improvement, marketing and sales strategies, organizational development, talent management.Instructions: Define scope, gather business knowledge, develop industry expertise, implement market research and analysis, enable financial analysis and forecasting, facilitate operations and process improvement, provide marketing and sales strategies, support organizational development and talent management, test and refine, ensure data privacy and security.<br/>`business-consultant` |
231
- | [DIY Guide Assistant](https://chat-preview.lobehub.com/market?agent=diy)<br/><sup>By **[guluahljj](https://github.com/guluahljj)** on **2024-01-21**</sup> | DIY project assistant, providing detailed guidance, programming support, and personalized customization<br/>`diy` `guide` `project` `programming` `assembly` |
232
-
233
- > 📊 Total agents: [<kbd>**112**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
226
+ | Recent Submits | Description |
227
+ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
228
+ | [Intent Resonance GPT](https://chat-preview.lobehub.com/market?agent=intention-resonates-gpt)<br/><sup>By **[AIConductor](https://github.com/AIConductor)** on **2024-01-24**</sup> | An AI focused on deeply understanding user needs, accurately capturing user intent and requirements through continuous intent alignment, and providing the most suitable solutions.<br/>`conversation` `deep-understanding` |
229
+ | [Startup Tech Lawyer](https://chat-preview.lobehub.com/market?agent=tech-lawyer)<br/><sup>By **[daniel-jojo](https://github.com/daniel-jojo)** on **2024-01-23**</sup> | In-house legal counsel for a tech startup, offering clear, practical legal advice to support the startup's growth and protect its interests.<br/>`intellectual-property-law` `data-privacy-compliance` `contract-negotiation` `tech-startup-legal-strategy` `employment-law-guidance` |
230
+ | [Shopping Assistant](https://chat-preview.lobehub.com/market?agent=shop)<br/><sup>By **[guluahljj](https://github.com/guluahljj)** on **2024-01-22**</sup> | Shopping assistant, specializing in product search, price comparison, and providing purchase links<br/>`shopping-assistant` `product-search` `price-comparison` `purchase-advice` `customer-consultation` `agulu` |
231
+ | [Accounting Expert Assistant](https://chat-preview.lobehub.com/market?agent=accounting)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-21**</sup> | Accountant Agent: Comprehensive accounting support and expertise for individuals and businesses worldwide.<br/>`accounting` `financial-management` `tax-planning` `budgeting` |
232
+
233
+ > 📊 Total agents: [<kbd>**114**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
234
234
 
235
235
  <!-- AGENT LIST -->
236
236
 
package/README.zh-CN.md CHANGED
@@ -203,14 +203,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
203
203
 
204
204
  <!-- AGENT LIST -->
205
205
 
206
- | 最近新增 | 助手说明 |
207
- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
208
- | [购物助手](https://chat-preview.lobehub.com/market?agent=shop)<br/><sup>By **[guluahljj](https://github.com/guluahljj)** on **2024-01-22**</sup> | 购物助手,擅长商品搜索、比价和提供购买链接<br/>`购物助手` `商品搜索` `比价` `购买建议` `客户咨询` `agulu` |
209
- | [会计专家助手](https://chat-preview.lobehub.com/market?agent=accounting)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-21**</sup> | 会计代理:为全球个人和企业提供全面的会计支持和专业知识。<br/>`会计` `财务管理` `税务规划` `预算编制` |
210
- | [商业顾问](https://chat-preview.lobehub.com/market?agent=business-guru)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-21**</sup> | 商业顾问:为全球提供全面的商业支持和专业知识。能力:商业战略、市场研究、财务分析、运营改善、营销和销售策略、组织发展、人才管理。说明:定义范围,收集商业知识,发展行业专长,实施市场研究和分析,启用财务分析和预测,促进运营和流程改善,提供营销和销售策略,支持组织发展和人才管理,测试和完善,确保数据隐私和安全。<br/>`business-consultant` |
211
- | [DIY 指导助手](https://chat-preview.lobehub.com/market?agent=diy)<br/><sup>By **[guluahljj](https://github.com/guluahljj)** on **2024-01-21**</sup> | DIY 项目助手,提供详细指导、编程支持和个性化定制<br/>`diy` `指导` `项目` `编程` `组装` |
212
-
213
- > 📊 Total agents: [<kbd>**112**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
206
+ | 最近新增 | 助手说明 |
207
+ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
208
+ | [意图共鸣 GPT](https://chat-preview.lobehub.com/market?agent=intention-resonates-gpt)<br/><sup>By **[AIConductor](https://github.com/AIConductor)** on **2024-01-24**</sup> | 一个专注于深度理解用户需求的 AI,通过不断的意图对齐过程,精确捕捉用户意图和需求,并提供最适合的解决方案。<br/>`对话` `深度理解` |
209
+ | [初创科技律师](https://chat-preview.lobehub.com/market?agent=tech-lawyer)<br/><sup>By **[daniel-jojo](https://github.com/daniel-jojo)** on **2024-01-23**</sup> | 初创科技公司的内部法律顾问,提供清晰、实用的法律建议,支持初创公司的增长并保护其利益。<br/>`知识产权法` `数据隐私合规` `合同谈判` `科技初创法律策略` `雇佣法指导` |
210
+ | [购物助手](https://chat-preview.lobehub.com/market?agent=shop)<br/><sup>By **[guluahljj](https://github.com/guluahljj)** on **2024-01-22**</sup> | 购物助手,擅长商品搜索、比价和提供购买链接<br/>`购物助手` `商品搜索` `比价` `购买建议` `客户咨询` `agulu` |
211
+ | [会计专家助手](https://chat-preview.lobehub.com/market?agent=accounting)<br/><sup>By **[MYSeaIT](https://github.com/MYSeaIT)** on **2024-01-21**</sup> | 会计代理:为全球个人和企业提供全面的会计支持和专业知识。<br/>`会计` `财务管理` `税务规划` `预算编制` |
212
+
213
+ > 📊 Total agents: [<kbd>**114**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
214
214
 
215
215
  <!-- AGENT LIST -->
216
216
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.121.0",
3
+ "version": "0.121.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",
@@ -186,7 +186,12 @@ const Common = memo<SettingsCommonProps>(({ showAccessCodeConfig }) => {
186
186
  const system: SettingItemGroup = {
187
187
  children: [
188
188
  {
189
- children: <Input.Password placeholder={t('settingSystem.accessCode.placeholder')} />,
189
+ children: (
190
+ <Input.Password
191
+ autoComplete={'new-password'}
192
+ placeholder={t('settingSystem.accessCode.placeholder')}
193
+ />
194
+ ),
190
195
  desc: t('settingSystem.accessCode.desc'),
191
196
  hidden: !showAccessCodeConfig,
192
197
  label: t('settingSystem.accessCode.title'),
@@ -50,6 +50,7 @@ const LLM = memo(() => {
50
50
  {
51
51
  children: (
52
52
  <Input.Password
53
+ autoComplete={'new-password'}
53
54
  placeholder={
54
55
  useAzure ? t('llm.AzureOpenAI.token.placeholder') : t('llm.OpenAI.token.placeholder')
55
56
  }
@@ -31,6 +31,7 @@ const APIKeyForm = memo<{ id: string }>(({ id }) => {
31
31
  title={t('unlock.apikey.title')}
32
32
  >
33
33
  <Input.Password
34
+ autoComplete={'new-password'}
34
35
  onChange={(e) => {
35
36
  setConfig({ OPENAI_API_KEY: e.target.value });
36
37
  }}
@@ -48,6 +48,7 @@ const InvalidAccess: RenderErrorMessage['Render'] = memo(({ id }) => {
48
48
  title={t('unlock.password.title')}
49
49
  >
50
50
  <Input.Password
51
+ autoComplete={'new-password'}
51
52
  onChange={(e) => {
52
53
  setSettings({ password: e.target.value });
53
54
  }}
@@ -118,7 +118,7 @@ const Inspector = memo<InspectorProps>(
118
118
  label: t('debug.response'),
119
119
  },
120
120
  ]}
121
- style={{ maxWidth: 800 }}
121
+ style={{ display: 'grid', maxWidth: 800 }}
122
122
  />
123
123
  )}
124
124
  </Flexbox>
@@ -8,18 +8,23 @@ interface SystemJsRenderProps extends PluginRenderProps {
8
8
  url: string;
9
9
  }
10
10
 
11
+ const RenderCache: {
12
+ [url: string]: PluginRender;
13
+ } = {};
14
+
11
15
  const SystemJsRender = memo<SystemJsRenderProps>(({ url, ...props }) => {
12
- const [component, setComp] = useState<PluginRender | null>(null);
16
+ const [component, setComp] = useState<PluginRender | undefined>(RenderCache[url]);
13
17
 
14
18
  useEffect(() => {
15
19
  system
16
20
  .import(url)
17
21
  .then((module1) => {
18
22
  setComp(module1.default);
23
+ RenderCache[url] = module1.default;
19
24
  // 使用module1模块
20
25
  })
21
26
  .catch((error) => {
22
- setComp(null);
27
+ setComp(undefined);
23
28
  console.error(error);
24
29
  });
25
30
  }, [url]);
@@ -22,6 +22,7 @@ const PluginSettingRender = memo<PluginSettingsProps>(
22
22
  return (
23
23
  <Input.Password
24
24
  {...props}
25
+ autoComplete={'new-password'}
25
26
  defaultValue={defaultValue}
26
27
  onChange={(v) => {
27
28
  onChange(v.target.value);