@lobehub/chat 1.31.7 → 1.31.9

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +2 -2
  3. package/README.zh-CN.md +2 -2
  4. package/package.json +1 -1
  5. package/src/app/(main)/chat/(workspace)/@conversation/default.tsx +1 -3
  6. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatInput/index.tsx +12 -0
  7. package/src/config/modelProviders/google.ts +36 -63
  8. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Desktop/FilePreview/FileItem/Content.tsx +0 -0
  9. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Desktop/FilePreview/FileItem/index.tsx +0 -0
  10. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Desktop/FilePreview/FileItem/style.ts +0 -0
  11. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Desktop/FilePreview/FileItem/utils.ts +0 -0
  12. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Desktop/FilePreview/FileList.tsx +0 -0
  13. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Desktop/FilePreview/index.tsx +0 -0
  14. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Desktop/Footer/SendMore.tsx +0 -0
  15. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Desktop/Footer/index.tsx +0 -0
  16. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Desktop/Header/index.tsx +0 -0
  17. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Desktop/TextArea.test.tsx +0 -0
  18. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Desktop/TextArea.tsx +0 -0
  19. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Desktop/__tests__/useAutoFocus.test.ts +0 -0
  20. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Desktop/index.tsx +0 -0
  21. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Desktop/useAutoFocus.ts +0 -0
  22. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Mobile/Files/FileItem/File.tsx +0 -0
  23. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Mobile/Files/FileItem/Image.tsx +0 -0
  24. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Mobile/Files/FileItem/index.tsx +0 -0
  25. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Mobile/Files/FileItem/style.ts +0 -0
  26. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Mobile/Files/index.tsx +0 -0
  27. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Mobile/InputArea/Container.tsx +0 -0
  28. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Mobile/InputArea/index.tsx +0 -0
  29. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Mobile/Send.tsx +0 -0
  30. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/Mobile/index.tsx +0 -0
  31. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/components/UploadDetail/UploadStatus.tsx +0 -0
  32. /package/src/{app/(main)/chat/(workspace)/@conversation/features → features}/ChatInput/components/UploadDetail/index.tsx +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.31.9](https://github.com/lobehub/lobe-chat/compare/v1.31.8...v1.31.9)
6
+
7
+ <sup>Released on **2024-11-16**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Add gemini-exp-1114 model.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Add gemini-exp-1114 model, closes [#4702](https://github.com/lobehub/lobe-chat/issues/4702) ([b3306f2](https://github.com/lobehub/lobe-chat/commit/b3306f2))
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.31.8](https://github.com/lobehub/lobe-chat/compare/v1.31.7...v1.31.8)
31
+
32
+ <sup>Released on **2024-11-15**</sup>
33
+
34
+ #### ♻ Code Refactoring
35
+
36
+ - **misc**: Move ChatInput to features/ChatInput.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### Code refactoring
44
+
45
+ - **misc**: Move ChatInput to features/ChatInput, closes [#4699](https://github.com/lobehub/lobe-chat/issues/4699) ([5737d3f](https://github.com/lobehub/lobe-chat/commit/5737d3f))
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 1.31.7](https://github.com/lobehub/lobe-chat/compare/v1.31.6...v1.31.7)
6
56
 
7
57
  <sup>Released on **2024-11-15**</sup>
package/README.md CHANGED
@@ -287,12 +287,12 @@ Our marketplace is not just a showcase platform but also a collaborative space.
287
287
 
288
288
  | Recent Submits | Description |
289
289
  | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
290
+ | [Thinking Claude](https://chat-preview.lobehub.com/market?agent=thinking-claude)<br/><sup>By **[AnoyiX](https://github.com/AnoyiX)** on **2024-11-14**</sup> | Let Claude think comprehensively before responding!<br/>`common` |
290
291
  | [Machine Vision LaTeX](https://chat-preview.lobehub.com/market?agent=cv-latex)<br/><sup>By **[5xiao0qing5](https://github.com/5xiao0qing5)** on **2024-10-29**</sup> | Specializes in explaining concepts of machine learning and deep learning<br/>`machine-learning` `deep-learning` `image-processing` `computer-vision` `la-te-x` |
291
292
  | [Domain Analysis Master](https://chat-preview.lobehub.com/market?agent=domain)<br/><sup>By **[ccbikai](https://github.com/ccbikai)** on **2024-10-29**</sup> | Expert in domain analysis and humorous suggestions<br/>`domain-analysis` `humor` `culture` `website-suggestions` `purchase-advice` |
292
293
  | [Ingo Hausmann](https://chat-preview.lobehub.com/market?agent=pc-beschaffung-ingo-hausmann)<br/><sup>By **[bionicprompter](https://github.com/bionicprompter)** on **2024-10-29**</sup> | Ingo Hausmann wants to be advised on a new purchase of PCs<br/>`company` `hardware` `needs-assessment` `it` `applications` |
293
- | [Print to Table](https://chat-preview.lobehub.com/market?agent=print-to-table)<br/><sup>By **[printtotable](https://github.com/printtotable)** on **2024-10-29**</sup> | Transform data from images into organized tables in Excel.<br/>`data-extraction` `tables` `advertising` `influencer` `excel` |
294
294
 
295
- > 📊 Total agents: [<kbd>**430**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
295
+ > 📊 Total agents: [<kbd>**431**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
296
296
 
297
297
  <!-- AGENT LIST -->
298
298
 
package/README.zh-CN.md CHANGED
@@ -276,12 +276,12 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
276
276
 
277
277
  | 最近新增 | 助手说明 |
278
278
  | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
279
+ | [思考克劳德](https://chat-preview.lobehub.com/market?agent=thinking-claude)<br/><sup>By **[AnoyiX](https://github.com/AnoyiX)** on **2024-11-14**</sup> | 让克劳德在回应之前全面思考!<br/>`常见` |
279
280
  | [机器视觉 latex](https://chat-preview.lobehub.com/market?agent=cv-latex)<br/><sup>By **[5xiao0qing5](https://github.com/5xiao0qing5)** on **2024-10-29**</sup> | 擅长机器学习与深度学习概念解析<br/>`机器学习` `深度学习` `图像处理` `计算机视觉` `la-te-x` |
280
281
  | [域名分析大师](https://chat-preview.lobehub.com/market?agent=domain)<br/><sup>By **[ccbikai](https://github.com/ccbikai)** on **2024-10-29**</sup> | 擅长域名分析与幽默建议<br/>`域名分析` `幽默` `文化` `建站建议` `购买建议` |
281
282
  | [英戈・豪斯曼](https://chat-preview.lobehub.com/market?agent=pc-beschaffung-ingo-hausmann)<br/><sup>By **[bionicprompter](https://github.com/bionicprompter)** on **2024-10-29**</sup> | 英戈・豪斯曼希望就新购置的电脑进行咨询<br/>`公司` `硬件` `需求分析` `it` `应用` |
282
- | [打印到表格](https://chat-preview.lobehub.com/market?agent=print-to-table)<br/><sup>By **[printtotable](https://github.com/printtotable)** on **2024-10-29**</sup> | 将图像数据转换为 Excel 中的组织表格。<br/>`数据提取` `表格` `广告` `影响者` `excel` |
283
283
 
284
- > 📊 Total agents: [<kbd>**430**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
284
+ > 📊 Total agents: [<kbd>**431**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
285
285
 
286
286
  <!-- AGENT LIST -->
287
287
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.31.7",
3
+ "version": "1.31.9",
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",
@@ -1,14 +1,12 @@
1
1
  import { isMobileDevice } from '@/utils/server/responsive';
2
2
 
3
3
  import ChatHydration from './features/ChatHydration';
4
- import DesktopChatInput from './features/ChatInput/Desktop';
5
- import MobileChatInput from './features/ChatInput/Mobile';
4
+ import ChatInput from './features/ChatInput';
6
5
  import ChatList from './features/ChatList';
7
6
  import ZenModeToast from './features/ZenModeToast';
8
7
 
9
8
  const ChatConversation = () => {
10
9
  const mobile = isMobileDevice();
11
- const ChatInput = mobile ? MobileChatInput : DesktopChatInput;
12
10
 
13
11
  return (
14
12
  <>
@@ -0,0 +1,12 @@
1
+ import DesktopChatInput from '@/features/ChatInput/Desktop';
2
+ import MobileChatInput from '@/features/ChatInput/Mobile';
3
+ import { isMobileDevice } from '@/utils/server/responsive';
4
+
5
+ const ChatInput = () => {
6
+ const mobile = isMobileDevice();
7
+ const Input = mobile ? MobileChatInput : DesktopChatInput;
8
+
9
+ return <Input />;
10
+ };
11
+
12
+ export default ChatInput;
@@ -3,6 +3,23 @@ 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
+ description:
8
+ 'Gemini Exp 1114 是Google最新的实验性多模态AI模型,具备快速处理能力,支持文本、图像和视频输入,适用于多种任务的高效扩展。',
9
+ displayName: 'Gemini Experimental 1114',
10
+ enabled: true,
11
+ functionCall: true,
12
+ id: 'gemini-exp-1114',
13
+ maxOutput: 8192,
14
+ pricing: {
15
+ cachedInput: 0,
16
+ input: 0,
17
+ output: 0,
18
+ },
19
+ releasedAt: '2024-11-14',
20
+ tokens: 32_767 + 8192,
21
+ vision: true,
22
+ },
6
23
  {
7
24
  description:
8
25
  'Gemini 1.5 Flash 是Google最新的多模态AI模型,具备快速处理能力,支持文本、图像和视频输入,适用于多种任务的高效扩展。',
@@ -49,53 +66,6 @@ const Google: ModelProviderCard = {
49
66
  tokens: 1_000_000 + 8192,
50
67
  vision: true,
51
68
  },
52
- {
53
- description: 'Gemini 1.5 Flash 0827 提供了优化后的多模态处理能力,适用多种复杂任务场景。',
54
- displayName: 'Gemini 1.5 Flash 0827',
55
- functionCall: true,
56
- id: 'gemini-1.5-flash-exp-0827',
57
- maxOutput: 8192,
58
- pricing: {
59
- cachedInput: 0.018_75,
60
- input: 0.075,
61
- output: 0.3,
62
- },
63
- releasedAt: '2024-08-27',
64
- tokens: 1_000_000 + 8192,
65
- vision: true,
66
- },
67
- {
68
- description: 'Gemini 1.5 Flash 8B 是一款高效的多模态模型,支持广泛应用的扩展。',
69
- displayName: 'Gemini 1.5 Flash 8B',
70
- enabled: true,
71
- functionCall: true,
72
- id: 'gemini-1.5-flash-8b',
73
- maxOutput: 8192,
74
- pricing: {
75
- cachedInput: 0.02,
76
- input: 0.075,
77
- output: 0.3,
78
- },
79
- releasedAt: '2024-10-03',
80
- tokens: 1_000_000 + 8192,
81
- vision: true,
82
- },
83
- {
84
- description:
85
- 'Gemini 1.5 Flash 8B 0924 是最新的实验性模型,在文本和多模态用例中都有显著的性能提升。',
86
- displayName: 'Gemini 1.5 Flash 8B 0924',
87
- functionCall: true,
88
- id: 'gemini-1.5-flash-8b-exp-0924',
89
- maxOutput: 8192,
90
- pricing: {
91
- cachedInput: 0.018_75,
92
- input: 0.075,
93
- output: 0.3,
94
- },
95
- releasedAt: '2024-09-24',
96
- tokens: 1_000_000 + 8192,
97
- vision: true,
98
- },
99
69
  {
100
70
  description:
101
71
  'Gemini 1.5 Pro 支持高达200万个tokens,是中型多模态模型的理想选择,适用于复杂任务的多方面支持。',
@@ -146,35 +116,38 @@ const Google: ModelProviderCard = {
146
116
  vision: true,
147
117
  },
148
118
  {
149
- description: 'Gemini 1.5 Pro 0827 结合最新优化技术,带来更高效的多模态数据处理能力。',
150
- displayName: 'Gemini 1.5 Pro 0827',
119
+ description: 'Gemini 1.5 Flash 8B 是一款高效的多模态模型,支持广泛应用的扩展。',
120
+ displayName: 'Gemini 1.5 Flash 8B',
121
+ enabled: true,
151
122
  functionCall: true,
152
- id: 'gemini-1.5-pro-exp-0827',
123
+ id: 'gemini-1.5-flash-8b',
153
124
  maxOutput: 8192,
154
125
  pricing: {
155
- cachedInput: 0.875,
156
- input: 3.5,
157
- output: 10.5,
126
+ cachedInput: 0.02,
127
+ input: 0.075,
128
+ output: 0.3,
158
129
  },
159
- releasedAt: '2024-08-27',
160
- tokens: 2_000_000 + 8192,
130
+ releasedAt: '2024-10-03',
131
+ tokens: 1_000_000 + 8192,
161
132
  vision: true,
162
133
  },
163
134
  {
164
- description: 'Gemini 1.5 Pro 0801 提供出色的多模态处理能力,为应用开发带来更大灵活性。',
165
- displayName: 'Gemini 1.5 Pro 0801',
135
+ description:
136
+ 'Gemini 1.5 Flash 8B 0924 是最新的实验性模型,在文本和多模态用例中都有显著的性能提升。',
137
+ displayName: 'Gemini 1.5 Flash 8B 0924',
166
138
  functionCall: true,
167
- id: 'gemini-1.5-pro-exp-0801',
139
+ id: 'gemini-1.5-flash-8b-exp-0924',
168
140
  maxOutput: 8192,
169
141
  pricing: {
170
- cachedInput: 0.875,
171
- input: 3.5,
172
- output: 10.5,
142
+ cachedInput: 0.018_75,
143
+ input: 0.075,
144
+ output: 0.3,
173
145
  },
174
- releasedAt: '2024-08-01',
175
- tokens: 2_000_000 + 8192,
146
+ releasedAt: '2024-09-24',
147
+ tokens: 1_000_000 + 8192,
176
148
  vision: true,
177
149
  },
150
+ // Gemini 1.0 Pro will be removed on 2025.02.15
178
151
  {
179
152
  description: 'Gemini 1.0 Pro 是Google的高性能AI模型,专为广泛任务扩展而设计。',
180
153
  displayName: 'Gemini 1.0 Pro',