@lobehub/chat 1.47.15 → 1.47.16
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 +33 -0
- package/changelog/v1.json +9 -0
- package/package.json +1 -1
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Tags.tsx +1 -1
- package/src/app/(main)/chat/(workspace)/_layout/Mobile/TopicModal.tsx +1 -2
- package/src/app/(main)/chat/(workspace)/features/ShareButton/index.tsx +1 -2
- package/src/config/aiModels/google.ts +20 -1
- package/src/config/modelProviders/google.ts +17 -1
- package/src/features/ChatInput/ActionBar/Tools/Dropdown.tsx +1 -1
- package/src/features/ShareModal/ShareImage/Preview.tsx +1 -1
- /package/src/{app/(main)/chat/(workspace)/features → features}/PluginTag/PluginStatus.tsx +0 -0
- /package/src/{app/(main)/chat/(workspace)/features → features}/PluginTag/index.tsx +0 -0
- /package/src/{app/(main)/chat/(workspace)/features → hooks}/useWorkspaceModal.tsx +0 -0
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,39 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.47.16](https://github.com/lobehub/lobe-chat/compare/v1.47.15...v1.47.16)
|
6
|
+
|
7
|
+
<sup>Released on **2025-01-22**</sup>
|
8
|
+
|
9
|
+
#### ♻ Code Refactoring
|
10
|
+
|
11
|
+
- **misc**: Move hooks and component.
|
12
|
+
|
13
|
+
#### 💄 Styles
|
14
|
+
|
15
|
+
- **misc**: Add gemini new model.
|
16
|
+
|
17
|
+
<br/>
|
18
|
+
|
19
|
+
<details>
|
20
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
21
|
+
|
22
|
+
#### Code refactoring
|
23
|
+
|
24
|
+
- **misc**: Move hooks and component, closes [#5551](https://github.com/lobehub/lobe-chat/issues/5551) ([c5db091](https://github.com/lobehub/lobe-chat/commit/c5db091))
|
25
|
+
|
26
|
+
#### Styles
|
27
|
+
|
28
|
+
- **misc**: Add gemini new model, closes [#5546](https://github.com/lobehub/lobe-chat/issues/5546) ([ebdd626](https://github.com/lobehub/lobe-chat/commit/ebdd626))
|
29
|
+
|
30
|
+
</details>
|
31
|
+
|
32
|
+
<div align="right">
|
33
|
+
|
34
|
+
[](#readme-top)
|
35
|
+
|
36
|
+
</div>
|
37
|
+
|
5
38
|
### [Version 1.47.15](https://github.com/lobehub/lobe-chat/compare/v1.47.14...v1.47.15)
|
6
39
|
|
7
40
|
<sup>Released on **2025-01-22**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.47.
|
3
|
+
"version": "1.47.16",
|
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",
|
@@ -4,11 +4,11 @@ import { memo } from 'react';
|
|
4
4
|
import { Flexbox } from 'react-layout-kit';
|
5
5
|
|
6
6
|
import ModelSwitchPanel from '@/features/ModelSwitchPanel';
|
7
|
+
import PluginTag from '@/features/PluginTag';
|
7
8
|
import { useModelSupportToolUse } from '@/hooks/useModelSupportToolUse';
|
8
9
|
import { useAgentStore } from '@/store/agent';
|
9
10
|
import { agentSelectors } from '@/store/agent/selectors';
|
10
11
|
|
11
|
-
import PluginTag from '../../../features/PluginTag';
|
12
12
|
import KnowledgeTag from './KnowledgeTag';
|
13
13
|
|
14
14
|
const TitleTags = memo(() => {
|
@@ -5,11 +5,10 @@ import { PropsWithChildren, memo } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
6
6
|
|
7
7
|
import { useFetchTopics } from '@/hooks/useFetchTopics';
|
8
|
+
import { useWorkspaceModal } from '@/hooks/useWorkspaceModal';
|
8
9
|
import { useGlobalStore } from '@/store/global';
|
9
10
|
import { systemStatusSelectors } from '@/store/global/selectors';
|
10
11
|
|
11
|
-
import { useWorkspaceModal } from '../../features/useWorkspaceModal';
|
12
|
-
|
13
12
|
const Topics = memo(({ children }: PropsWithChildren) => {
|
14
13
|
const [showAgentSettings, toggleConfig] = useGlobalStore((s) => [
|
15
14
|
systemStatusSelectors.mobileShowTopic(s),
|
@@ -7,10 +7,9 @@ import { memo } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
8
8
|
|
9
9
|
import { DESKTOP_HEADER_ICON_SIZE, MOBILE_HEADER_ICON_SIZE } from '@/const/layoutTokens';
|
10
|
+
import { useWorkspaceModal } from '@/hooks/useWorkspaceModal';
|
10
11
|
import { useChatStore } from '@/store/chat';
|
11
12
|
|
12
|
-
import { useWorkspaceModal } from '../useWorkspaceModal';
|
13
|
-
|
14
13
|
const ShareModal = dynamic(() => import('@/features/ShareModal'));
|
15
14
|
|
16
15
|
interface ShareButtonProps {
|
@@ -1,6 +1,26 @@
|
|
1
1
|
import { AIChatModelCard } from '@/types/aiModel';
|
2
2
|
|
3
3
|
const googleChatModels: AIChatModelCard[] = [
|
4
|
+
{
|
5
|
+
abilities: {
|
6
|
+
functionCall: true,
|
7
|
+
vision: true,
|
8
|
+
},
|
9
|
+
contextWindowTokens: 1_048_576 + 65_536,
|
10
|
+
description:
|
11
|
+
'Gemini 2.0 Flash Exp 是 Google 最新的实验性多模态AI模型,拥有下一代特性,卓越的速度,原生工具调用以及多模态生成。',
|
12
|
+
displayName: 'Gemini 2.0 Flash Thinking Experimental 01-21',
|
13
|
+
enabled: true,
|
14
|
+
id: 'gemini-2.0-flash-thinking-exp-01-21',
|
15
|
+
maxOutput: 65_536,
|
16
|
+
pricing: {
|
17
|
+
cachedInput: 0,
|
18
|
+
input: 0,
|
19
|
+
output: 0,
|
20
|
+
},
|
21
|
+
releasedAt: '2025-01-21',
|
22
|
+
type: 'chat',
|
23
|
+
},
|
4
24
|
{
|
5
25
|
abilities: {
|
6
26
|
functionCall: true,
|
@@ -10,7 +30,6 @@ const googleChatModels: AIChatModelCard[] = [
|
|
10
30
|
description:
|
11
31
|
'Gemini 2.0 Flash Exp 是 Google 最新的实验性多模态AI模型,拥有下一代特性,卓越的速度,原生工具调用以及多模态生成。',
|
12
32
|
displayName: 'Gemini 2.0 Flash Thinking Experimental 1219',
|
13
|
-
enabled: true,
|
14
33
|
id: 'gemini-2.0-flash-thinking-exp-1219',
|
15
34
|
maxOutput: 8192,
|
16
35
|
pricing: {
|
@@ -3,12 +3,28 @@ import { ModelProviderCard } from '@/types/llm';
|
|
3
3
|
// ref: https://ai.google.dev/gemini-api/docs/models/gemini
|
4
4
|
const Google: ModelProviderCard = {
|
5
5
|
chatModels: [
|
6
|
+
{
|
7
|
+
contextWindowTokens: 1_048_576 + 65_536,
|
8
|
+
description:
|
9
|
+
'Gemini 2.0 Flash Exp 是 Google 最新的实验性多模态AI模型,拥有下一代特性,卓越的速度,原生工具调用以及多模态生成。',
|
10
|
+
displayName: 'Gemini 2.0 Flash Thinking Experimental 01-21',
|
11
|
+
enabled: true,
|
12
|
+
functionCall: true,
|
13
|
+
id: 'gemini-2.0-flash-thinking-exp-01-21',
|
14
|
+
maxOutput: 65_536,
|
15
|
+
pricing: {
|
16
|
+
cachedInput: 0,
|
17
|
+
input: 0,
|
18
|
+
output: 0,
|
19
|
+
},
|
20
|
+
releasedAt: '2025-01-21',
|
21
|
+
vision: true,
|
22
|
+
},
|
6
23
|
{
|
7
24
|
contextWindowTokens: 32_767 + 8192,
|
8
25
|
description:
|
9
26
|
'Gemini 2.0 Flash Exp 是 Google 最新的实验性多模态AI模型,拥有下一代特性,卓越的速度,原生工具调用以及多模态生成。',
|
10
27
|
displayName: 'Gemini 2.0 Flash Thinking Experimental 1219',
|
11
|
-
enabled: true,
|
12
28
|
functionCall: true,
|
13
29
|
id: 'gemini-2.0-flash-thinking-exp-1219',
|
14
30
|
maxOutput: 8192,
|
@@ -8,10 +8,10 @@ import { PropsWithChildren, memo } from 'react';
|
|
8
8
|
import { useTranslation } from 'react-i18next';
|
9
9
|
import { Flexbox } from 'react-layout-kit';
|
10
10
|
|
11
|
-
import { useWorkspaceModal } from '@/app/(main)/chat/(workspace)/features/useWorkspaceModal';
|
12
11
|
import PluginStore from '@/features/PluginStore';
|
13
12
|
import { useCheckPluginsIsInstalled } from '@/hooks/useCheckPluginsIsInstalled';
|
14
13
|
import { useFetchInstalledPlugins } from '@/hooks/useFetchInstalledPlugins';
|
14
|
+
import { useWorkspaceModal } from '@/hooks/useWorkspaceModal';
|
15
15
|
import { useAgentStore } from '@/store/agent';
|
16
16
|
import { agentSelectors } from '@/store/agent/selectors';
|
17
17
|
import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig';
|
@@ -4,8 +4,8 @@ import { memo } from 'react';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
5
5
|
import { Flexbox } from 'react-layout-kit';
|
6
6
|
|
7
|
-
import PluginTag from '@/app/(main)/chat/(workspace)/features/PluginTag';
|
8
7
|
import { ProductLogo } from '@/components/Branding';
|
8
|
+
import PluginTag from '@/features/PluginTag';
|
9
9
|
import { useAgentStore } from '@/store/agent';
|
10
10
|
import { agentSelectors } from '@/store/agent/selectors';
|
11
11
|
import { useSessionStore } from '@/store/session';
|
File without changes
|
File without changes
|
File without changes
|