@lobehub/chat 0.160.1 → 0.160.2
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.160.2](https://github.com/lobehub/lobe-chat/compare/v0.160.1...v0.160.2)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-05-19**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Upgrade antd and fix lint type.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Upgrade antd and fix lint type, closes [#2567](https://github.com/lobehub/lobe-chat/issues/2567) ([efe28da](https://github.com/lobehub/lobe-chat/commit/efe28da))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 0.160.1](https://github.com/lobehub/lobe-chat/compare/v0.160.0...v0.160.1)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2024-05-18**</sup>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.160.
|
|
3
|
+
"version": "0.160.2",
|
|
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",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"@vercel/speed-insights": "^1.0.10",
|
|
111
111
|
"ahooks": "^3.7.11",
|
|
112
112
|
"ai": "3.0.19",
|
|
113
|
-
"antd": "^5.17.
|
|
113
|
+
"antd": "^5.17.3",
|
|
114
114
|
"antd-style": "^3.6.2",
|
|
115
115
|
"brotli-wasm": "^3.0.0",
|
|
116
116
|
"chroma-js": "^2.4.2",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Avatar, Icon } from '@lobehub/ui';
|
|
2
2
|
import { Dropdown } from 'antd';
|
|
3
3
|
import { createStyles } from 'antd-style';
|
|
4
|
-
import type { ItemType } from 'antd/es/menu/
|
|
4
|
+
import type { ItemType } from 'antd/es/menu/interface';
|
|
5
5
|
import isEqual from 'fast-deep-equal';
|
|
6
6
|
import { ArrowRight, Store, ToyBrick } from 'lucide-react';
|
|
7
7
|
import { PropsWithChildren, memo } from 'react';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Icon } from '@lobehub/ui';
|
|
2
2
|
import { Dropdown } from 'antd';
|
|
3
3
|
import { createStyles } from 'antd-style';
|
|
4
|
+
import type { ItemType } from 'antd/es/menu/interface';
|
|
4
5
|
import isEqual from 'fast-deep-equal';
|
|
5
6
|
import { LucideArrowRight } from 'lucide-react';
|
|
6
7
|
import { useRouter } from 'next/navigation';
|
|
@@ -48,7 +49,7 @@ const ModelSwitchPanel = memo<PropsWithChildren>(({ children }) => {
|
|
|
48
49
|
const router = useRouter();
|
|
49
50
|
const enabledList = useUserStore(modelProviderSelectors.modelProviderListForModelSelect, isEqual);
|
|
50
51
|
|
|
51
|
-
const items = useMemo(() => {
|
|
52
|
+
const items = useMemo<ItemType[]>(() => {
|
|
52
53
|
const getModelItems = (provider: ModelProviderCard) => {
|
|
53
54
|
const items = provider.chatModels.map((model) => ({
|
|
54
55
|
key: model.id,
|