@lobehub/chat 0.162.5 → 0.162.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/README.md +3 -3
- package/README.zh-CN.md +3 -3
- package/locales/ar/setting.json +1 -0
- package/locales/bg-BG/setting.json +1 -0
- package/locales/de-DE/setting.json +1 -0
- package/locales/en-US/setting.json +1 -0
- package/locales/es-ES/setting.json +1 -0
- package/locales/fr-FR/setting.json +1 -0
- package/locales/it-IT/setting.json +1 -0
- package/locales/ja-JP/setting.json +1 -0
- package/locales/ko-KR/setting.json +1 -0
- package/locales/nl-NL/setting.json +1 -0
- package/locales/pl-PL/setting.json +1 -0
- package/locales/pt-BR/setting.json +1 -0
- package/locales/ru-RU/setting.json +1 -0
- package/locales/tr-TR/setting.json +1 -0
- package/locales/vi-VN/setting.json +1 -0
- package/locales/zh-CN/setting.json +1 -0
- package/locales/zh-TW/setting.json +1 -0
- package/package.json +1 -1
- package/src/features/ChatInput/ActionBar/History.tsx +13 -7
- package/src/features/ChatInput/ActionBar/Temperature.tsx +8 -6
- package/src/features/ChatInput/STT/common.tsx +17 -3
- package/src/locales/default/setting.ts +1 -0
- package/src/store/agent/slices/chat/action.ts +9 -9
- package/src/store/session/slices/session/action.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.162.7](https://github.com/lobehub/lobe-chat/compare/v0.162.6...v0.162.7)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-05-28**</sup>
|
|
8
|
+
|
|
9
|
+
#### 💄 Styles
|
|
10
|
+
|
|
11
|
+
- **misc**: Improve display of `set limited history messages`, `randomness` and `voice input`.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### Styles
|
|
19
|
+
|
|
20
|
+
- **misc**: Improve display of `set limited history messages`, `randomness` and `voice input`, closes [#2586](https://github.com/lobehub/lobe-chat/issues/2586) ([22c9b9c](https://github.com/lobehub/lobe-chat/commit/22c9b9c))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
### [Version 0.162.6](https://github.com/lobehub/lobe-chat/compare/v0.162.5...v0.162.6)
|
|
31
|
+
|
|
32
|
+
<sup>Released on **2024-05-28**</sup>
|
|
33
|
+
|
|
34
|
+
#### 🐛 Bug Fixes
|
|
35
|
+
|
|
36
|
+
- **misc**: Fix the default agent not work correctly on new device.
|
|
37
|
+
|
|
38
|
+
<br/>
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
42
|
+
|
|
43
|
+
#### What's fixed
|
|
44
|
+
|
|
45
|
+
- **misc**: Fix the default agent not work correctly on new device, closes [#2699](https://github.com/lobehub/lobe-chat/issues/2699) ([e4c7536](https://github.com/lobehub/lobe-chat/commit/e4c7536))
|
|
46
|
+
|
|
47
|
+
</details>
|
|
48
|
+
|
|
49
|
+
<div align="right">
|
|
50
|
+
|
|
51
|
+
[](#readme-top)
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
5
55
|
### [Version 0.162.5](https://github.com/lobehub/lobe-chat/compare/v0.162.4...v0.162.5)
|
|
6
56
|
|
|
7
57
|
<sup>Released on **2024-05-28**</sup>
|
package/README.md
CHANGED
|
@@ -264,12 +264,12 @@ Our marketplace is not just a showcase platform but also a collaborative space.
|
|
|
264
264
|
|
|
265
265
|
| Recent Submits | Description |
|
|
266
266
|
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
267
|
+
| [C# .NET Technology Expert](https://chat-preview.lobehub.com/market?agent=dotnet-expert)<br/><sup>By **[johnnyqian](https://github.com/johnnyqian)** on **2024-05-28**</sup> | C# .NET Technology Expert<br/>`net` `developer` `net-core` `azure` `c` `microsoft` `sql-server` `entity-framework` `ef` `ef-core` |
|
|
268
|
+
| [Daily Assistant](https://chat-preview.lobehub.com/market?agent=junior-helper)<br/><sup>By **[Qinks6](https://github.com/Qinks6)** on **2024-05-28**</sup> | A cute little helper that can search and draw<br/>`assistant` `search` `drawing` `information-retrieval` `user-interaction` |
|
|
267
269
|
| [Node.js Optimizer](https://chat-preview.lobehub.com/market?agent=node-js-devoloper)<br/><sup>By **[chrisuhg](https://github.com/chrisuhg)** on **2024-05-28**</sup> | Specializes in Node.js code review, performance optimization, asynchronous programming, error handling, code refactoring, dependency management, security enhancement, test coverage, and documentation writing.<br/>`node-js` `code-optimization` `performance-optimization` `asynchronous-programming` `error-handling` |
|
|
268
270
|
| [Foreign Colleague Evaluation Assistant](https://chat-preview.lobehub.com/market?agent=praise-assistant)<br/><sup>By **[johnnyqian](https://github.com/johnnyqian)** on **2024-05-27**</sup> | Give positive feedback to your colleagues<br/>`foreign-company` `evaluate` `review` `software-engineer` `praise` |
|
|
269
|
-
| [SEO Optimization Expert](https://chat-preview.lobehub.com/market?agent=seo-helper)<br/><sup>By **[tutorial0](https://github.com/tutorial0)** on **2024-05-27**</sup> | Proficient in SEO terminology and optimization strategies, providing comprehensive SEO solutions and practical advice.<br/>`seo` `search-engine-optimization` `consulting` |
|
|
270
|
-
| [Chinese Text Refinement Master](https://chat-preview.lobehub.com/market?agent=chinese-touch-ups)<br/><sup>By **[S45618](https://github.com/S45618)** on **2024-05-24**</sup> | Proficient in Chinese proofreading and rhetoric, aiming to enhance the fluency and elegance of the text.<br/>`proofreading` `text-refinement` `rhetorical-improvement` `classical-literature` `language-editing` |
|
|
271
271
|
|
|
272
|
-
> 📊 Total agents: [<kbd>**
|
|
272
|
+
> 📊 Total agents: [<kbd>**278**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
273
273
|
|
|
274
274
|
<!-- AGENT LIST -->
|
|
275
275
|
|
package/README.zh-CN.md
CHANGED
|
@@ -252,12 +252,12 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
|
|
|
252
252
|
|
|
253
253
|
| 最近新增 | 助手说明 |
|
|
254
254
|
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
255
|
+
| [C# .NET 技术专家](https://chat-preview.lobehub.com/market?agent=dotnet-expert)<br/><sup>By **[johnnyqian](https://github.com/johnnyqian)** on **2024-05-28**</sup> | C# .NET 技术专家<br/>`net` `developer` `net-core` `azure` `c` `microsoft` `sql-server` `entity-framework` `ef` `ef-core` |
|
|
256
|
+
| [日常小助手](https://chat-preview.lobehub.com/market?agent=junior-helper)<br/><sup>By **[Qinks6](https://github.com/Qinks6)** on **2024-05-28**</sup> | 一个能搜索、能画图的小可爱<br/>`助手` `搜索` `绘图` `信息查询` `用户交互` |
|
|
255
257
|
| [Node.js 优化师](https://chat-preview.lobehub.com/market?agent=node-js-devoloper)<br/><sup>By **[chrisuhg](https://github.com/chrisuhg)** on **2024-05-28**</sup> | 擅长 Node.js 代码审查、性能优化、异步编程、错误处理、代码重构、依赖管理、安全增强、测试覆盖率和文档编写。<br/>`node-js` `代码优化` `性能优化` `异步编程` `错误处理` |
|
|
256
258
|
| [外企同事评价助手](https://chat-preview.lobehub.com/market?agent=praise-assistant)<br/><sup>By **[johnnyqian](https://github.com/johnnyqian)** on **2024-05-27**</sup> | 给你的同事好评<br/>`foreign-company` `evaluate` `review` `software-engineer` `praise` |
|
|
257
|
-
| [SEO 优化专家](https://chat-preview.lobehub.com/market?agent=seo-helper)<br/><sup>By **[tutorial0](https://github.com/tutorial0)** on **2024-05-27**</sup> | 精通 SEO 术语和优化策略,提供全面 SEO 解决方案和实用建议。<br/>`seo` `搜索引擎优化` `咨询` |
|
|
258
|
-
| [中文润色大师](https://chat-preview.lobehub.com/market?agent=chinese-touch-ups)<br/><sup>By **[S45618](https://github.com/S45618)** on **2024-05-24**</sup> | 精通中文校对与修辞,旨在提升文本之流畅与雅致<br/>`校对` `文字润色` `修辞改进` `古典文学` `语言编辑` |
|
|
259
259
|
|
|
260
|
-
> 📊 Total agents: [<kbd>**
|
|
260
|
+
> 📊 Total agents: [<kbd>**278**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
261
261
|
|
|
262
262
|
<!-- AGENT LIST -->
|
|
263
263
|
|
package/locales/ar/setting.json
CHANGED
|
@@ -182,6 +182,7 @@
|
|
|
182
182
|
"enableHistoryCount": {
|
|
183
183
|
"alias": "Неограничен",
|
|
184
184
|
"limited": "Включете само {{number}} съобщения от разговора",
|
|
185
|
+
"setlimited": "Задайте ограничение за използване на брой исторически съобщения",
|
|
185
186
|
"title": "Ограничаване на броя на съобщенията в историята",
|
|
186
187
|
"unlimited": "Неограничен брой съобщения в историята"
|
|
187
188
|
},
|
|
@@ -182,6 +182,7 @@
|
|
|
182
182
|
"enableHistoryCount": {
|
|
183
183
|
"alias": "Unbegrenzt",
|
|
184
184
|
"limited": "Enthält nur {{number}} Gesprächsnachrichten",
|
|
185
|
+
"setlimited": "Setzen Sie die begrenzte Anzahl von Nachrichten",
|
|
185
186
|
"title": "Historiennachrichten begrenzen",
|
|
186
187
|
"unlimited": "Unbegrenzte Historiennachrichten"
|
|
187
188
|
},
|
|
@@ -182,6 +182,7 @@
|
|
|
182
182
|
"enableHistoryCount": {
|
|
183
183
|
"alias": "Unlimited",
|
|
184
184
|
"limited": "Include only {{number}} conversation messages",
|
|
185
|
+
"setlimited": "Set limited history messages",
|
|
185
186
|
"title": "Limit History Message Count",
|
|
186
187
|
"unlimited": "Unlimited history message count"
|
|
187
188
|
},
|
|
@@ -182,6 +182,7 @@
|
|
|
182
182
|
"enableHistoryCount": {
|
|
183
183
|
"alias": "Sin límite",
|
|
184
184
|
"limited": "Incluye solo {{number}} mensajes de conversación",
|
|
185
|
+
"setlimited": "Establecer cantidad de mensajes históricos",
|
|
185
186
|
"title": "Limitar número de mensajes históricos",
|
|
186
187
|
"unlimited": "Sin límite de mensajes históricos"
|
|
187
188
|
},
|
|
@@ -182,6 +182,7 @@
|
|
|
182
182
|
"enableHistoryCount": {
|
|
183
183
|
"alias": "Illimité",
|
|
184
184
|
"limited": "Inclure uniquement {{number}} messages de conversation",
|
|
185
|
+
"setlimited": "Définir le nombre de messages d'historique",
|
|
185
186
|
"title": "Limite du nombre de messages historiques",
|
|
186
187
|
"unlimited": "Aucune limite sur le nombre de messages historiques"
|
|
187
188
|
},
|
|
@@ -182,6 +182,7 @@
|
|
|
182
182
|
"enableHistoryCount": {
|
|
183
183
|
"alias": "Illimitato",
|
|
184
184
|
"limited": "Include solo {{number}} messaggi di conversazione",
|
|
185
|
+
"setlimited": "Imposta il numero di messaggi storici da utilizzare",
|
|
185
186
|
"title": "Limita il numero di messaggi storici",
|
|
186
187
|
"unlimited": "Numero illimitato di messaggi storici"
|
|
187
188
|
},
|
|
@@ -182,6 +182,7 @@
|
|
|
182
182
|
"enableHistoryCount": {
|
|
183
183
|
"alias": "Onbeperkt",
|
|
184
184
|
"limited": "Bevat alleen {{number}} berichten",
|
|
185
|
+
"setlimited": "Stel berichtengeschiedenis in",
|
|
185
186
|
"title": "Berichtgeschiedenis beperken",
|
|
186
187
|
"unlimited": "Onbeperkt aantal berichten in de geschiedenis"
|
|
187
188
|
},
|
|
@@ -182,6 +182,7 @@
|
|
|
182
182
|
"enableHistoryCount": {
|
|
183
183
|
"alias": "Bez limitu",
|
|
184
184
|
"limited": "Zawiera tylko {{number}} wiadomości",
|
|
185
|
+
"setlimited": "Ustaw limit wiadomości historycznych",
|
|
185
186
|
"title": "Ograniczenie liczby wiadomości w historii",
|
|
186
187
|
"unlimited": "Bez limitu wiadomości w historii"
|
|
187
188
|
},
|
|
@@ -182,6 +182,7 @@
|
|
|
182
182
|
"enableHistoryCount": {
|
|
183
183
|
"alias": "Sem limite",
|
|
184
184
|
"limited": "Incluir apenas {{number}} mensagens de conversa",
|
|
185
|
+
"setlimited": "Definir número de mensagens de histórico",
|
|
185
186
|
"title": "Limitar número de mensagens de histórico",
|
|
186
187
|
"unlimited": "Sem limite de mensagens de histórico"
|
|
187
188
|
},
|
|
@@ -182,6 +182,7 @@
|
|
|
182
182
|
"enableHistoryCount": {
|
|
183
183
|
"alias": "Без ограничений",
|
|
184
184
|
"limited": "Содержит только {{number}} сообщений",
|
|
185
|
+
"setlimited": "Установить ограничение на количество использованных сообщений",
|
|
185
186
|
"title": "Ограничение истории сообщений",
|
|
186
187
|
"unlimited": "Без ограничения истории сообщений"
|
|
187
188
|
},
|
|
@@ -182,6 +182,7 @@
|
|
|
182
182
|
"enableHistoryCount": {
|
|
183
183
|
"alias": "Sınırsız",
|
|
184
184
|
"limited": "Yalnızca {{number}} konuşma mesajını içerir",
|
|
185
|
+
"setlimited": "Kullanılan mesaj sayısı",
|
|
185
186
|
"title": "Geçmiş Mesaj Sayısı Sınırlama",
|
|
186
187
|
"unlimited": "Sınırsız geçmiş mesaj sayısı"
|
|
187
188
|
},
|
|
@@ -182,6 +182,7 @@
|
|
|
182
182
|
"enableHistoryCount": {
|
|
183
183
|
"alias": "Không giới hạn",
|
|
184
184
|
"limited": "Chỉ chứa {{number}} tin nhắn trò chuyện",
|
|
185
|
+
"setlimited": "Thiết lập số lượng tin nhắn lịch sử",
|
|
185
186
|
"title": "Giới hạn số lượng tin nhắn lịch sử",
|
|
186
187
|
"unlimited": "Không giới hạn số lượng tin nhắn lịch sử"
|
|
187
188
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.162.
|
|
3
|
+
"version": "0.162.7",
|
|
4
4
|
"description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"framework",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActionIcon, SliderWithInput } from '@lobehub/ui';
|
|
2
2
|
import { Popover, Switch } from 'antd';
|
|
3
3
|
import { Timer, TimerOff } from 'lucide-react';
|
|
4
|
-
import { memo } from 'react';
|
|
4
|
+
import { memo, useState } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { Flexbox } from 'react-layout-kit';
|
|
7
7
|
|
|
@@ -10,12 +10,20 @@ import { agentSelectors } from '@/store/agent/selectors';
|
|
|
10
10
|
|
|
11
11
|
const History = memo(() => {
|
|
12
12
|
const { t } = useTranslation('setting');
|
|
13
|
+
const [popoverOpen, setPopoverOpen] = useState(false);
|
|
13
14
|
|
|
14
15
|
const [historyCount, unlimited, updateAgentConfig] = useAgentStore((s) => {
|
|
15
16
|
const config = agentSelectors.currentAgentChatConfig(s);
|
|
16
17
|
return [config.historyCount, !config.enableHistoryCount, s.updateAgentChatConfig];
|
|
17
18
|
});
|
|
18
19
|
|
|
20
|
+
const title = t(
|
|
21
|
+
unlimited
|
|
22
|
+
? 'settingChat.enableHistoryCount.unlimited'
|
|
23
|
+
: 'settingChat.enableHistoryCount.limited',
|
|
24
|
+
{ number: historyCount || 0 },
|
|
25
|
+
);
|
|
26
|
+
|
|
19
27
|
return (
|
|
20
28
|
<Popover
|
|
21
29
|
arrow={false}
|
|
@@ -44,18 +52,16 @@ const History = memo(() => {
|
|
|
44
52
|
</Flexbox>
|
|
45
53
|
</Flexbox>
|
|
46
54
|
}
|
|
55
|
+
onOpenChange={setPopoverOpen}
|
|
56
|
+
open={popoverOpen}
|
|
47
57
|
placement={'top'}
|
|
58
|
+
title={t('settingChat.enableHistoryCount.setlimited')}
|
|
48
59
|
trigger={'click'}
|
|
49
60
|
>
|
|
50
61
|
<ActionIcon
|
|
51
62
|
icon={unlimited ? TimerOff : Timer}
|
|
52
63
|
placement={'bottom'}
|
|
53
|
-
title={
|
|
54
|
-
unlimited
|
|
55
|
-
? 'settingChat.enableHistoryCount.unlimited'
|
|
56
|
-
: 'settingChat.enableHistoryCount.limited',
|
|
57
|
-
{ number: historyCount || 0 },
|
|
58
|
-
)}
|
|
64
|
+
title={popoverOpen ? undefined : title}
|
|
59
65
|
/>
|
|
60
66
|
</Popover>
|
|
61
67
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ActionIcon, SliderWithInput } from '@lobehub/ui';
|
|
2
2
|
import { Popover } from 'antd';
|
|
3
3
|
import { Thermometer } from 'lucide-react';
|
|
4
|
-
import { memo } from 'react';
|
|
4
|
+
import { memo, useState } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
|
|
7
7
|
import { useAgentStore } from '@/store/agent';
|
|
@@ -9,12 +9,15 @@ import { agentSelectors } from '@/store/agent/selectors';
|
|
|
9
9
|
|
|
10
10
|
const Temperature = memo(() => {
|
|
11
11
|
const { t } = useTranslation('setting');
|
|
12
|
+
const [popoverOpen, setPopoverOpen] = useState(false);
|
|
12
13
|
|
|
13
14
|
const [temperature, updateAgentConfig] = useAgentStore((s) => {
|
|
14
15
|
const config = agentSelectors.currentAgentConfig(s);
|
|
15
16
|
return [config.params?.temperature, s.updateAgentConfig];
|
|
16
17
|
});
|
|
17
18
|
|
|
19
|
+
const title = t('settingModel.temperature.titleWithValue', { value: temperature });
|
|
20
|
+
|
|
18
21
|
return (
|
|
19
22
|
<Popover
|
|
20
23
|
arrow={false}
|
|
@@ -32,14 +35,13 @@ const Temperature = memo(() => {
|
|
|
32
35
|
value={temperature}
|
|
33
36
|
/>
|
|
34
37
|
}
|
|
38
|
+
onOpenChange={setPopoverOpen}
|
|
39
|
+
open={popoverOpen}
|
|
35
40
|
placement={'top'}
|
|
41
|
+
title={t('settingModel.temperature.title')}
|
|
36
42
|
trigger={'click'}
|
|
37
43
|
>
|
|
38
|
-
<ActionIcon
|
|
39
|
-
icon={Thermometer}
|
|
40
|
-
placement={'bottom'}
|
|
41
|
-
title={t('settingModel.temperature.titleWithValue', { value: temperature })}
|
|
42
|
-
/>
|
|
44
|
+
<ActionIcon icon={Thermometer} placement={'bottom'} title={popoverOpen ? undefined : title} />
|
|
43
45
|
</Popover>
|
|
44
46
|
);
|
|
45
47
|
});
|
|
@@ -2,7 +2,7 @@ import { ActionIcon, Alert, Highlighter } from '@lobehub/ui';
|
|
|
2
2
|
import { Button, Dropdown } from 'antd';
|
|
3
3
|
import { createStyles } from 'antd-style';
|
|
4
4
|
import { Mic, MicOff } from 'lucide-react';
|
|
5
|
-
import { memo } from 'react';
|
|
5
|
+
import { memo, useState } from 'react';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { Flexbox } from 'react-layout-kit';
|
|
8
8
|
|
|
@@ -43,6 +43,11 @@ const CommonSTT = memo<{
|
|
|
43
43
|
}) => {
|
|
44
44
|
const { t } = useTranslation('chat');
|
|
45
45
|
const { styles } = useStyles();
|
|
46
|
+
const [dropdownOpen, setDropdownOpen] = useState(false);
|
|
47
|
+
|
|
48
|
+
const handleDropdownVisibleChange = (open: boolean) => {
|
|
49
|
+
setDropdownOpen(open);
|
|
50
|
+
};
|
|
46
51
|
|
|
47
52
|
return (
|
|
48
53
|
<Dropdown
|
|
@@ -74,6 +79,14 @@ const CommonSTT = memo<{
|
|
|
74
79
|
menu={{
|
|
75
80
|
activeKey: 'time',
|
|
76
81
|
items: [
|
|
82
|
+
{
|
|
83
|
+
key: 'title',
|
|
84
|
+
label: (
|
|
85
|
+
<Flexbox>
|
|
86
|
+
<div style={{ fontWeight: 'bolder' }}>{t('stt.action')}</div>
|
|
87
|
+
</Flexbox>
|
|
88
|
+
),
|
|
89
|
+
},
|
|
77
90
|
{
|
|
78
91
|
key: 'time',
|
|
79
92
|
label: (
|
|
@@ -85,7 +98,8 @@ const CommonSTT = memo<{
|
|
|
85
98
|
},
|
|
86
99
|
],
|
|
87
100
|
}}
|
|
88
|
-
|
|
101
|
+
onOpenChange={handleDropdownVisibleChange}
|
|
102
|
+
open={dropdownOpen || !!error || isRecording || isLoading}
|
|
89
103
|
placement={mobile ? 'topRight' : 'top'}
|
|
90
104
|
trigger={['click']}
|
|
91
105
|
>
|
|
@@ -96,7 +110,7 @@ const CommonSTT = memo<{
|
|
|
96
110
|
placement={'bottom'}
|
|
97
111
|
size={mobile ? { blockSize: 36, fontSize: 16 } : { fontSize: 22 }}
|
|
98
112
|
style={{ flex: 'none' }}
|
|
99
|
-
title={desc}
|
|
113
|
+
title={dropdownOpen ? '' : desc}
|
|
100
114
|
/>
|
|
101
115
|
</Dropdown>
|
|
102
116
|
);
|
|
@@ -117,16 +117,16 @@ export const createChatSlice: StateCreator<
|
|
|
117
117
|
() => sessionService.getSessionConfig(INBOX_SESSION_ID),
|
|
118
118
|
{
|
|
119
119
|
onSuccess: (data) => {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
);
|
|
120
|
+
set(
|
|
121
|
+
{
|
|
122
|
+
defaultAgentConfig: merge(get().defaultAgentConfig, defaultAgentConfig),
|
|
123
|
+
isInboxAgentConfigInit: true,
|
|
124
|
+
},
|
|
125
|
+
false,
|
|
126
|
+
'initDefaultAgent',
|
|
127
|
+
);
|
|
129
128
|
|
|
129
|
+
if (data) {
|
|
130
130
|
get().internal_dispatchAgentMap(INBOX_SESSION_ID, data, 'initInbox');
|
|
131
131
|
}
|
|
132
132
|
},
|