@lobehub/chat 0.119.7 → 0.119.8
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,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.119.8](https://github.com/lobehub/lobe-chat/compare/v0.119.7...v0.119.8)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-01-07**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix spotting tool call correctly.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix spotting tool call correctly, closes [#972](https://github.com/lobehub/lobe-chat/issues/972) ([216e700](https://github.com/lobehub/lobe-chat/commit/216e700))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 0.119.7](https://github.com/lobehub/lobe-chat/compare/v0.119.6...v0.119.7)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2024-01-07**</sup>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.119.
|
|
3
|
+
"version": "0.119.8",
|
|
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",
|
|
@@ -11,7 +11,7 @@ interface LocaleLayoutProps extends PropsWithChildren {
|
|
|
11
11
|
lang?: string;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
const
|
|
14
|
+
const Locale = memo<LocaleLayoutProps>(({ children, lang }) => {
|
|
15
15
|
const { data: locale } = useSWR(
|
|
16
16
|
lang,
|
|
17
17
|
async () =>
|
|
@@ -41,10 +41,4 @@ const InnerLocale = memo<LocaleLayoutProps>(({ children, lang }) => {
|
|
|
41
41
|
return <ConfigProvider locale={locale}>{children}</ConfigProvider>;
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
// <Suspense fallback={<Loading />}>
|
|
46
|
-
// <InnerLocale {...props} />
|
|
47
|
-
// </Suspense>
|
|
48
|
-
// ));
|
|
49
|
-
|
|
50
|
-
export default InnerLocale;
|
|
44
|
+
export default Locale;
|
|
@@ -303,7 +303,13 @@ export const chatMessage: StateCreator<
|
|
|
303
303
|
set({ messages }, false, n(`dispatchMessage/${payload.type}`, payload));
|
|
304
304
|
},
|
|
305
305
|
fetchAIChatMessage: async (messages, assistantId) => {
|
|
306
|
-
const {
|
|
306
|
+
const {
|
|
307
|
+
toggleChatLoading,
|
|
308
|
+
refreshMessages,
|
|
309
|
+
updateMessageContent,
|
|
310
|
+
dispatchMessage,
|
|
311
|
+
createSmoothMessage,
|
|
312
|
+
} = get();
|
|
307
313
|
|
|
308
314
|
const abortController = toggleChatLoading(
|
|
309
315
|
true,
|
|
@@ -403,6 +409,12 @@ export const chatMessage: StateCreator<
|
|
|
403
409
|
// is this message is just a function call
|
|
404
410
|
if (isFunctionMessageAtStart(output)) {
|
|
405
411
|
stopAnimation();
|
|
412
|
+
dispatchMessage({
|
|
413
|
+
id: assistantId,
|
|
414
|
+
key: 'content',
|
|
415
|
+
type: 'updateMessage',
|
|
416
|
+
value: output,
|
|
417
|
+
});
|
|
406
418
|
isFunctionCall = true;
|
|
407
419
|
}
|
|
408
420
|
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Icon } from '@lobehub/ui';
|
|
2
|
-
import { Loader2 } from 'lucide-react';
|
|
3
|
-
import { memo } from 'react';
|
|
4
|
-
import { Center } from 'react-layout-kit';
|
|
5
|
-
|
|
6
|
-
const Loading = memo(() => (
|
|
7
|
-
<div
|
|
8
|
-
style={{
|
|
9
|
-
backdropFilter: 'blur(3px)',
|
|
10
|
-
height: '100%',
|
|
11
|
-
width: '100vw',
|
|
12
|
-
zIndex: 100,
|
|
13
|
-
}}
|
|
14
|
-
>
|
|
15
|
-
<Center flex={1} gap={12} width={'100%'}>
|
|
16
|
-
<Icon icon={Loader2} spin />
|
|
17
|
-
</Center>
|
|
18
|
-
</div>
|
|
19
|
-
));
|
|
20
|
-
|
|
21
|
-
export default Loading;
|