@lobehub/chat 0.78.1 → 0.79.0
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 +25 -0
- package/locales/en_US/common.json +1 -0
- package/locales/ru_RU/common.json +1 -0
- package/locales/zh_CN/common.json +1 -0
- package/locales/zh_TW/common.json +1 -0
- package/package.json +1 -1
- package/src/locales/default/common.ts +1 -0
- package/src/pages/chat/features/Conversation/ChatList/index.tsx +19 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [Version 0.79.0](https://github.com/lobehub/lobe-chat/compare/v0.78.1...v0.79.0)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2023-09-25**</sup>
|
|
8
|
+
|
|
9
|
+
#### ✨ Features
|
|
10
|
+
|
|
11
|
+
- **conversation**: Add history range divider.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's improved
|
|
19
|
+
|
|
20
|
+
- **conversation**: Add history range divider, closes [#118](https://github.com/lobehub/lobe-chat/issues/118) ([92d2c96](https://github.com/lobehub/lobe-chat/commit/92d2c96))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 0.78.1](https://github.com/lobehub/lobe-chat/compare/v0.78.0...v0.78.1)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2023-09-21**</sup>
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"globalSetting": "Export Global Settings"
|
|
34
34
|
},
|
|
35
35
|
"feedback": "Feedback",
|
|
36
|
+
"historyRange": "History Range",
|
|
36
37
|
"import": "Import Configuration",
|
|
37
38
|
"inbox": {
|
|
38
39
|
"defaultMessage": "Hello, I'm your intelligent agent. You can ask me any questions and I will do my best to answer you. If you need a more professional or customized agent, you can click <kbd>+</kbd> to create a custom agent.",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"globalSetting": "Экспорт глобальных настроек"
|
|
34
34
|
},
|
|
35
35
|
"feedback": "Обратная связь",
|
|
36
|
+
"historyRange": "Исторический диапазон",
|
|
36
37
|
"import": "Импорт конфига",
|
|
37
38
|
"inbox": {
|
|
38
39
|
"defaultMessage": "Hello, I'm your intelligent assistant. You can ask me any questions and I will do my best to answer you. If you need a more professional or customized assistant, you can click <kbd>+</kbd> to create a custom assistant.",
|
package/package.json
CHANGED
|
@@ -21,14 +21,26 @@ const List = () => {
|
|
|
21
21
|
|
|
22
22
|
const data = useSessionStore(chatSelectors.currentChatsWithGuideMessage, isEqual);
|
|
23
23
|
|
|
24
|
-
const [
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
const [
|
|
25
|
+
displayMode,
|
|
26
|
+
enableHistoryCount,
|
|
27
|
+
historyCount,
|
|
28
|
+
chatLoadingId,
|
|
29
|
+
deleteMessage,
|
|
30
|
+
resendMessage,
|
|
31
|
+
dispatchMessage,
|
|
32
|
+
] = useSessionStore((s) => {
|
|
33
|
+
const config = agentSelectors.currentAgentConfig(s);
|
|
34
|
+
return [
|
|
35
|
+
config.displayMode,
|
|
36
|
+
config.enableHistoryCount,
|
|
37
|
+
config.historyCount,
|
|
27
38
|
s.chatLoadingId,
|
|
28
39
|
s.deleteMessage,
|
|
29
40
|
s.resendMessage,
|
|
30
41
|
s.dispatchMessage,
|
|
31
|
-
]
|
|
42
|
+
];
|
|
43
|
+
});
|
|
32
44
|
|
|
33
45
|
const renderMessage: RenderMessage = useCallback(
|
|
34
46
|
(content, message: ChatMessage) => {
|
|
@@ -72,6 +84,8 @@ const List = () => {
|
|
|
72
84
|
return (
|
|
73
85
|
<ChatList
|
|
74
86
|
data={data}
|
|
87
|
+
enableHistoryCount={enableHistoryCount}
|
|
88
|
+
historyCount={historyCount}
|
|
75
89
|
loadingId={chatLoadingId}
|
|
76
90
|
onActionClick={(key, id) => {
|
|
77
91
|
switch (key) {
|
|
@@ -100,6 +114,7 @@ const List = () => {
|
|
|
100
114
|
copySuccess: t('copySuccess'),
|
|
101
115
|
delete: t('delete'),
|
|
102
116
|
edit: t('edit'),
|
|
117
|
+
history: t('historyRange'),
|
|
103
118
|
regenerate: t('regenerate'),
|
|
104
119
|
}}
|
|
105
120
|
type={displayMode || 'chat'}
|