@lobehub/chat 0.160.0 → 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,56 @@
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
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
30
+ ### [Version 0.160.1](https://github.com/lobehub/lobe-chat/compare/v0.160.0...v0.160.1)
31
+
32
+ <sup>Released on **2024-05-18**</sup>
33
+
34
+ #### 🐛 Bug Fixes
35
+
36
+ - **misc**: Fix enable ollama env.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### What's fixed
44
+
45
+ - **misc**: Fix enable ollama env ([9c3f5a8](https://github.com/lobehub/lobe-chat/commit/9c3f5a8))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ## [Version 0.160.0](https://github.com/lobehub/lobe-chat/compare/v0.159.12...v0.160.0)
6
56
 
7
57
  <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.0",
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.2",
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",
@@ -221,7 +221,7 @@ export const getProviderConfig = () => {
221
221
  AWS_ACCESS_KEY_ID: AWS_ACCESS_KEY_ID,
222
222
  AWS_SECRET_ACCESS_KEY: process.env.AWS_SECRET_ACCESS_KEY || '',
223
223
 
224
- ENABLE_OLLAMA: process.env.ENABLE_OLLAMA === '0',
224
+ ENABLE_OLLAMA: process.env.ENABLE_OLLAMA !== '0',
225
225
  OLLAMA_PROXY_URL: process.env.OLLAMA_PROXY_URL || '',
226
226
  OLLAMA_MODEL_LIST: process.env.OLLAMA_MODEL_LIST || process.env.OLLAMA_CUSTOM_MODELS,
227
227
  };
@@ -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/hooks/useItems';
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,