@lobehub/chat 0.145.4 โ†’ 0.145.6

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,48 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.145.6](https://github.com/lobehub/lobe-chat/compare/v0.145.5...v0.145.6)
6
+
7
+ <sup>Released on **2024-04-02**</sup>
8
+
9
+ <br/>
10
+
11
+ <details>
12
+ <summary><kbd>Improvements and Fixes</kbd></summary>
13
+
14
+ </details>
15
+
16
+ <div align="right">
17
+
18
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
19
+
20
+ </div>
21
+
22
+ ### [Version 0.145.5](https://github.com/lobehub/lobe-chat/compare/v0.145.4...v0.145.5)
23
+
24
+ <sup>Released on **2024-03-30**</sup>
25
+
26
+ #### ๐Ÿ› Bug Fixes
27
+
28
+ - **misc**: Add qwen api models patch in ollama.
29
+
30
+ <br/>
31
+
32
+ <details>
33
+ <summary><kbd>Improvements and Fixes</kbd></summary>
34
+
35
+ #### What's fixed
36
+
37
+ - **misc**: Add qwen api models patch in ollama, closes [#1630](https://github.com/lobehub/lobe-chat/issues/1630) ([a1e754c](https://github.com/lobehub/lobe-chat/commit/a1e754c))
38
+
39
+ </details>
40
+
41
+ <div align="right">
42
+
43
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
44
+
45
+ </div>
46
+
5
47
  ### [Version 0.145.4](https://github.com/lobehub/lobe-chat/compare/v0.145.3...v0.145.4)
6
48
 
7
49
  <sup>Released on **2024-03-29**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.145.4",
3
+ "version": "0.145.6",
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",
@@ -7,7 +7,6 @@ import ClientResponsiveContent from '@/components/client/ClientResponsiveContent
7
7
  import { useMarketStore } from '@/store/market';
8
8
 
9
9
  import AgentCard from '../features/AgentCard';
10
- import AgentSearchBar from '../features/AgentSearchBar';
11
10
 
12
11
  const Desktop = memo(() => {
13
12
  useEffect(() => {
@@ -15,12 +14,7 @@ const Desktop = memo(() => {
15
14
  useMarketStore.persist.rehydrate();
16
15
  }, []);
17
16
 
18
- return (
19
- <>
20
- <AgentSearchBar />
21
- <AgentCard CardRender={SpotlightCard as FC<SpotlightCardProps>} />
22
- </>
23
- );
17
+ return <AgentCard CardRender={SpotlightCard as FC<SpotlightCardProps>} />;
24
18
  });
25
19
 
26
20
  export default ClientResponsiveContent({ Desktop, Mobile: () => import('../(mobile)') });
@@ -2,12 +2,10 @@
2
2
 
3
3
  import dynamic from 'next/dynamic';
4
4
  import { memo, useEffect } from 'react';
5
- import { Flexbox } from 'react-layout-kit';
6
5
 
7
6
  import { useMarketStore } from '@/store/market';
8
7
 
9
8
  import AgentCard from '../features/AgentCard';
10
- import AgentSearchBar from '../features/AgentSearchBar';
11
9
  import CardRender from './features/AgentCard';
12
10
 
13
11
  const DetailModal = dynamic(() => import('./features/AgentDetail'), { ssr: false });
@@ -20,10 +18,7 @@ export default memo(() => {
20
18
 
21
19
  return (
22
20
  <>
23
- <Flexbox flex={1} gap={16} style={{ padding: 16 }}>
24
- <AgentSearchBar mobile />
25
- <AgentCard CardRender={CardRender} mobile />{' '}
26
- </Flexbox>
21
+ <AgentCard CardRender={CardRender} mobile />
27
22
  <DetailModal />
28
23
  </>
29
24
  );
@@ -10,6 +10,7 @@ import SafeSpacing from '@/components/SafeSpacing';
10
10
  import ClientResponsiveLayout from '@/components/client/ClientResponsiveLayout';
11
11
  import { MAX_WIDTH } from '@/const/layoutTokens';
12
12
 
13
+ import AgentSearchBar from '../../features/AgentSearchBar';
13
14
  import Header from './Header';
14
15
 
15
16
  const SideBar = dynamic(() => import('./AgentDetail'));
@@ -47,6 +48,7 @@ const Desktop = memo<PropsWithChildren>(({ children }) => {
47
48
  random
48
49
  />
49
50
  </Center>
51
+ <AgentSearchBar />
50
52
  {children}
51
53
  </Flexbox>
52
54
  </Flexbox>
@@ -1,12 +1,17 @@
1
1
  import { PropsWithChildren } from 'react';
2
+ import { Flexbox } from 'react-layout-kit';
2
3
 
4
+ import AgentSearchBar from '../../features/AgentSearchBar';
3
5
  import Header from './Header';
4
6
 
5
7
  const MobileLayout = ({ children }: PropsWithChildren) => {
6
8
  return (
7
9
  <>
8
10
  <Header />
9
- {children}
11
+ <Flexbox flex={1} gap={16} style={{ padding: 16 }}>
12
+ <AgentSearchBar mobile />
13
+ {children}
14
+ </Flexbox>
10
15
  </>
11
16
  );
12
17
  };
@@ -7,9 +7,9 @@ import LazyLoad from 'react-lazy-load';
7
7
 
8
8
  import { agentMarketSelectors, useMarketStore } from '@/store/market';
9
9
 
10
+ import Loading from '../../components/Loading';
10
11
  import TagList from '../TagList';
11
12
  import AgentCardItem from './AgentCardItem';
12
- import Loading from './Loading';
13
13
  import { useStyles } from './style';
14
14
 
15
15
  export interface AgentCardProps {
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import { SearchBar } from '@lobehub/ui';
2
4
  import { memo, useCallback, useState } from 'react';
3
5
  import { useTranslation } from 'react-i18next';
@@ -0,0 +1,3 @@
1
+ import Load from './components/Loading';
2
+
3
+ export default () => <Load />;
@@ -0,0 +1,3 @@
1
+ import { Skeleton } from 'antd';
2
+
3
+ export default () => <Skeleton paragraph={{ rows: 8 }} />;
@@ -0,0 +1,3 @@
1
+ import { Skeleton } from 'antd';
2
+
3
+ export default () => <Skeleton paragraph={{ rows: 8 }} />;
@@ -0,0 +1,3 @@
1
+ import { Skeleton } from 'antd';
2
+
3
+ export default () => <Skeleton paragraph={{ rows: 8 }} />;
@@ -0,0 +1,3 @@
1
+ import { Skeleton } from 'antd';
2
+
3
+ export default () => <Skeleton paragraph={{ rows: 8 }} />;
@@ -0,0 +1,3 @@
1
+ import { Skeleton } from 'antd';
2
+
3
+ export default () => <Skeleton paragraph={{ rows: 8 }} />;
@@ -153,6 +153,55 @@ const Ollama: ModelProviderCard = {
153
153
  tokens: 4000,
154
154
  vision: true,
155
155
  },
156
+ // TODO: ๅœจๅ•็‹ฌๆ”ฏๆŒๅƒ้—ฎไน‹ๅŽ่ฟ™ไบ› Qwen ๆจกๅž‹้œ€่ฆ็งปๅŠจๅˆฐๅƒ้—ฎ็š„้…็ฝฎไธญ
157
+ {
158
+ displayName: 'Qwen Plus',
159
+ functionCall: true,
160
+ hidden: true,
161
+ id: 'qwen-plus',
162
+ tokens: 30_000,
163
+ vision: false,
164
+ },
165
+ {
166
+ displayName: 'Qwen Turbo',
167
+ functionCall: true,
168
+ hidden: true,
169
+ id: 'qwen-turbo',
170
+ tokens: 6000,
171
+ vision: false,
172
+ },
173
+ {
174
+ displayName: 'Qwen Max',
175
+ functionCall: true,
176
+ hidden: true,
177
+ id: 'qwen-max',
178
+ tokens: 6000,
179
+ vision: false,
180
+ },
181
+ {
182
+ displayName: 'Qwen Max Long',
183
+ functionCall: true,
184
+ hidden: true,
185
+ id: 'qwen-max-longcontext',
186
+ tokens: 28_000,
187
+ vision: false,
188
+ },
189
+ {
190
+ displayName: 'Qwen VL Max',
191
+ functionCall: false,
192
+ hidden: true,
193
+ id: 'qwen-vl-max',
194
+ tokens: 6000,
195
+ vision: true,
196
+ },
197
+ {
198
+ displayName: 'Qwen VL Plus',
199
+ functionCall: false,
200
+ hidden: true,
201
+ id: 'qwen-vl-plus',
202
+ tokens: 30_000,
203
+ vision: true,
204
+ },
156
205
  ],
157
206
  id: 'ollama',
158
207
  };