@lobehub/chat 1.47.15 → 1.47.17

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,64 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.47.17](https://github.com/lobehub/lobe-chat/compare/v1.47.16...v1.47.17)
6
+
7
+ <sup>Released on **2025-01-22**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Upgrade `react-i18next` to ^15.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Upgrade `react-i18next` to ^15, closes [#5553](https://github.com/lobehub/lobe-chat/issues/5553) ([d0275fd](https://github.com/lobehub/lobe-chat/commit/d0275fd))
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 1.47.16](https://github.com/lobehub/lobe-chat/compare/v1.47.15...v1.47.16)
31
+
32
+ <sup>Released on **2025-01-22**</sup>
33
+
34
+ #### ♻ Code Refactoring
35
+
36
+ - **misc**: Move hooks and component.
37
+
38
+ #### 💄 Styles
39
+
40
+ - **misc**: Add gemini new model.
41
+
42
+ <br/>
43
+
44
+ <details>
45
+ <summary><kbd>Improvements and Fixes</kbd></summary>
46
+
47
+ #### Code refactoring
48
+
49
+ - **misc**: Move hooks and component, closes [#5551](https://github.com/lobehub/lobe-chat/issues/5551) ([c5db091](https://github.com/lobehub/lobe-chat/commit/c5db091))
50
+
51
+ #### Styles
52
+
53
+ - **misc**: Add gemini new model, closes [#5546](https://github.com/lobehub/lobe-chat/issues/5546) ([ebdd626](https://github.com/lobehub/lobe-chat/commit/ebdd626))
54
+
55
+ </details>
56
+
57
+ <div align="right">
58
+
59
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
60
+
61
+ </div>
62
+
5
63
  ### [Version 1.47.15](https://github.com/lobehub/lobe-chat/compare/v1.47.14...v1.47.15)
6
64
 
7
65
  <sup>Released on **2025-01-22**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Upgrade react-i18next to ^15."
6
+ ]
7
+ },
8
+ "date": "2025-01-22",
9
+ "version": "1.47.17"
10
+ },
11
+ {
12
+ "children": {
13
+ "improvements": [
14
+ "Add gemini new model."
15
+ ]
16
+ },
17
+ "date": "2025-01-22",
18
+ "version": "1.47.16"
19
+ },
2
20
  {
3
21
  "children": {
4
22
  "improvements": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.47.15",
3
+ "version": "1.47.17",
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",
@@ -202,7 +202,7 @@
202
202
  "react-dom": "^19.0.0",
203
203
  "react-fast-marquee": "^1.6.5",
204
204
  "react-hotkeys-hook": "^4.6.1",
205
- "react-i18next": "14.0.2",
205
+ "react-i18next": "^15.4.0",
206
206
  "react-layout-kit": "^1.9.1",
207
207
  "react-lazy-load": "^4.0.1",
208
208
  "react-pdf": "^9.2.1",
@@ -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';