@lobehub/chat 1.34.3 → 1.34.5
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 +50 -0
- package/changelog/v1.json +18 -0
- package/locales/ar/chat.json +1 -0
- package/locales/bg-BG/chat.json +1 -0
- package/locales/de-DE/chat.json +1 -0
- package/locales/en-US/chat.json +1 -0
- package/locales/es-ES/chat.json +1 -0
- package/locales/fa-IR/chat.json +1 -0
- package/locales/fr-FR/chat.json +1 -0
- package/locales/it-IT/chat.json +1 -0
- package/locales/ja-JP/chat.json +1 -0
- package/locales/ko-KR/chat.json +1 -0
- package/locales/nl-NL/chat.json +1 -0
- package/locales/pl-PL/chat.json +1 -0
- package/locales/pt-BR/chat.json +1 -0
- package/locales/ru-RU/chat.json +1 -0
- package/locales/tr-TR/chat.json +1 -0
- package/locales/vi-VN/chat.json +1 -0
- package/locales/zh-CN/chat.json +1 -0
- package/locales/zh-TW/chat.json +1 -0
- package/package.json +1 -1
- package/src/config/modelProviders/google.ts +19 -4
- package/src/features/Conversation/components/History/index.tsx +3 -2
- package/src/features/Portal/Thread/Header/index.tsx +28 -5
- package/src/locales/default/chat.ts +1 -0
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,56 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.34.5](https://github.com/lobehub/lobe-chat/compare/v1.34.4...v1.34.5)
|
6
|
+
|
7
|
+
<sup>Released on **2024-11-28**</sup>
|
8
|
+
|
9
|
+
#### 💄 Styles
|
10
|
+
|
11
|
+
- **misc**: Add Google LearnLM model.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### Styles
|
19
|
+
|
20
|
+
- **misc**: Add Google LearnLM model, closes [#4821](https://github.com/lobehub/lobe-chat/issues/4821) ([f900c0a](https://github.com/lobehub/lobe-chat/commit/f900c0a))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
30
|
+
### [Version 1.34.4](https://github.com/lobehub/lobe-chat/compare/v1.34.3...v1.34.4)
|
31
|
+
|
32
|
+
<sup>Released on **2024-11-27**</sup>
|
33
|
+
|
34
|
+
#### 💄 Styles
|
35
|
+
|
36
|
+
- **misc**: Add switch portal thread.
|
37
|
+
|
38
|
+
<br/>
|
39
|
+
|
40
|
+
<details>
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
42
|
+
|
43
|
+
#### Styles
|
44
|
+
|
45
|
+
- **misc**: Add switch portal thread, closes [#4819](https://github.com/lobehub/lobe-chat/issues/4819) ([8dbf3ce](https://github.com/lobehub/lobe-chat/commit/8dbf3ce))
|
46
|
+
|
47
|
+
</details>
|
48
|
+
|
49
|
+
<div align="right">
|
50
|
+
|
51
|
+
[](#readme-top)
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
5
55
|
### [Version 1.34.3](https://github.com/lobehub/lobe-chat/compare/v1.34.2...v1.34.3)
|
6
56
|
|
7
57
|
<sup>Released on **2024-11-27**</sup>
|
package/changelog/v1.json
CHANGED
@@ -1,4 +1,22 @@
|
|
1
1
|
[
|
2
|
+
{
|
3
|
+
"children": {
|
4
|
+
"improvements": [
|
5
|
+
"Add Google LearnLM model."
|
6
|
+
]
|
7
|
+
},
|
8
|
+
"date": "2024-11-28",
|
9
|
+
"version": "1.34.5"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"children": {
|
13
|
+
"improvements": [
|
14
|
+
"Add switch portal thread."
|
15
|
+
]
|
16
|
+
},
|
17
|
+
"date": "2024-11-27",
|
18
|
+
"version": "1.34.4"
|
19
|
+
},
|
2
20
|
{
|
3
21
|
"children": {
|
4
22
|
"fixes": [
|
package/locales/ar/chat.json
CHANGED
@@ -32,6 +32,7 @@
|
|
32
32
|
"duplicateTitle": "{{title}} نسخة",
|
33
33
|
"emptyAgent": "لا يوجد مساعد",
|
34
34
|
"historyRange": "نطاق التاريخ",
|
35
|
+
"historySummary": "ملخص الرسائل التاريخية",
|
35
36
|
"inbox": {
|
36
37
|
"desc": "قم بتشغيل مجموعة الدماغ وأشعل شرارة التفكير. مساعدك الذكي، هنا حيث يمكنك التواصل بكل شيء",
|
37
38
|
"title": "دردشة عشوائية"
|
package/locales/bg-BG/chat.json
CHANGED
@@ -32,6 +32,7 @@
|
|
32
32
|
"duplicateTitle": "{{title}} Копие",
|
33
33
|
"emptyAgent": "Няма наличен асистент",
|
34
34
|
"historyRange": "Диапазон на историята",
|
35
|
+
"historySummary": "Исторически обобщение на съобщения",
|
35
36
|
"inbox": {
|
36
37
|
"desc": "Активирай мозъчния клъстер и събуди креативното мислене. Твоят виртуален агент е тук, за да общува с теб за всичко.",
|
37
38
|
"title": "Просто чати"
|
package/locales/de-DE/chat.json
CHANGED
@@ -32,6 +32,7 @@
|
|
32
32
|
"duplicateTitle": "{{title}} Kopie",
|
33
33
|
"emptyAgent": "Kein Assistent verfügbar",
|
34
34
|
"historyRange": "Verlaufsbereich",
|
35
|
+
"historySummary": "Zusammenfassung historischer Nachrichten",
|
35
36
|
"inbox": {
|
36
37
|
"desc": "Aktiviere das Gehirncluster und entfache den Funken des Denkens. Dein intelligenter Assistent, der mit dir über alles kommuniziert.",
|
37
38
|
"title": "Lass uns plaudern"
|
package/locales/en-US/chat.json
CHANGED
@@ -32,6 +32,7 @@
|
|
32
32
|
"duplicateTitle": "{{title}} Copy",
|
33
33
|
"emptyAgent": "No assistant available",
|
34
34
|
"historyRange": "History Range",
|
35
|
+
"historySummary": "Historical Message Summary",
|
35
36
|
"inbox": {
|
36
37
|
"desc": "Activate the brain cluster and spark creative thinking. Your virtual assistant is here to communicate with you about everything.",
|
37
38
|
"title": "Just Chat"
|
package/locales/es-ES/chat.json
CHANGED
@@ -32,6 +32,7 @@
|
|
32
32
|
"duplicateTitle": "{{title}} Copia",
|
33
33
|
"emptyAgent": "No hay asistente disponible",
|
34
34
|
"historyRange": "Rango de historial",
|
35
|
+
"historySummary": "Resumen de mensajes históricos",
|
35
36
|
"inbox": {
|
36
37
|
"desc": "Despierta la mente con el poder del cerebro colectivo. Tu asistente inteligente está aquí para conversar contigo sobre cualquier cosa.",
|
37
38
|
"title": "Charla casual"
|
package/locales/fa-IR/chat.json
CHANGED
@@ -32,6 +32,7 @@
|
|
32
32
|
"duplicateTitle": "نسخهای از {{title}}",
|
33
33
|
"emptyAgent": "دستیار موجود نیست",
|
34
34
|
"historyRange": "محدوده تاریخی",
|
35
|
+
"historySummary": "خلاصه پیامهای تاریخی",
|
35
36
|
"inbox": {
|
36
37
|
"desc": "خوشههای مغزی را فعال کنید و جرقههای تفکر را برانگیزید. دستیار هوشمند شما اینجاست تا با شما در مورد هر چیزی صحبت کند.",
|
37
38
|
"title": "گپ دوستانه"
|
package/locales/fr-FR/chat.json
CHANGED
@@ -32,6 +32,7 @@
|
|
32
32
|
"duplicateTitle": "{{title}} Copie",
|
33
33
|
"emptyAgent": "Aucun assistant disponible",
|
34
34
|
"historyRange": "Plage d'historique",
|
35
|
+
"historySummary": "Résumé des messages historiques",
|
35
36
|
"inbox": {
|
36
37
|
"desc": "Débloquez le potentiel de votre esprit. Votre agent intelligent est là pour discuter avec vous de tout et de rien.",
|
37
38
|
"title": "Discutons un peu"
|
package/locales/it-IT/chat.json
CHANGED
@@ -32,6 +32,7 @@
|
|
32
32
|
"duplicateTitle": "{{title}} Copia",
|
33
33
|
"emptyAgent": "Nessun assistente disponibile",
|
34
34
|
"historyRange": "Intervallo cronologico",
|
35
|
+
"historySummary": "Riepilogo della storia",
|
35
36
|
"inbox": {
|
36
37
|
"desc": "Attiva il cluster cerebrale, accendi la scintilla del pensiero. Il tuo assistente intelligente, qui per comunicare con te su tutto.",
|
37
38
|
"title": "Chiacchierata casuale"
|
package/locales/ja-JP/chat.json
CHANGED
package/locales/ko-KR/chat.json
CHANGED
package/locales/nl-NL/chat.json
CHANGED
@@ -32,6 +32,7 @@
|
|
32
32
|
"duplicateTitle": "{{title}} Kopie",
|
33
33
|
"emptyAgent": "Geen assistent beschikbaar",
|
34
34
|
"historyRange": "Geschiedenisbereik",
|
35
|
+
"historySummary": "Geschiedenis samenvatting",
|
35
36
|
"inbox": {
|
36
37
|
"desc": "Activeer de hersencluster en laat de vonken van gedachten overslaan. Je slimme assistent, hier om met je over alles te praten.",
|
37
38
|
"title": "Praat maar raak"
|
package/locales/pl-PL/chat.json
CHANGED
@@ -32,6 +32,7 @@
|
|
32
32
|
"duplicateTitle": "{{title}} kopia",
|
33
33
|
"emptyAgent": "Brak asystenta",
|
34
34
|
"historyRange": "Zakres historii",
|
35
|
+
"historySummary": "Podsumowanie wiadomości historycznych",
|
35
36
|
"inbox": {
|
36
37
|
"desc": "Włącz klastry mózgów, rozpal iskrę myślenia. Twój inteligentny asystent, gotowy do rozmowy o wszystkim.",
|
37
38
|
"title": "Pogadajmy sobie"
|
package/locales/pt-BR/chat.json
CHANGED
@@ -32,6 +32,7 @@
|
|
32
32
|
"duplicateTitle": "{{title}} Cópia",
|
33
33
|
"emptyAgent": "Sem assistente disponível",
|
34
34
|
"historyRange": "Intervalo de Histórico",
|
35
|
+
"historySummary": "Resumo das mensagens históricas",
|
35
36
|
"inbox": {
|
36
37
|
"desc": "Ative o cluster cerebral, inspire faíscas de pensamento. Seu assistente inteligente, aqui para conversar sobre tudo.",
|
37
38
|
"title": "Conversa Aleatória"
|
package/locales/ru-RU/chat.json
CHANGED
@@ -32,6 +32,7 @@
|
|
32
32
|
"duplicateTitle": "{{title}} Копия",
|
33
33
|
"emptyAgent": "Нет ассистента",
|
34
34
|
"historyRange": "История сообщений",
|
35
|
+
"historySummary": "Сводка исторических сообщений",
|
35
36
|
"inbox": {
|
36
37
|
"desc": "Зажги искру мысли, открой кластер мозгов. Твой виртуальный ассистент, готовый обсудить все с тобой.",
|
37
38
|
"title": "Просто поболтаем"
|
package/locales/tr-TR/chat.json
CHANGED
@@ -32,6 +32,7 @@
|
|
32
32
|
"duplicateTitle": "{{title}} Kopya",
|
33
33
|
"emptyAgent": "Asistan yok",
|
34
34
|
"historyRange": "Geçmiş Aralığı",
|
35
|
+
"historySummary": "Tarihsel haber özeti",
|
35
36
|
"inbox": {
|
36
37
|
"desc": "Beyin fırtınasını başlatın ve yaratıcı düşünmeye başlayın. Sanal asistanınız burada, her konuda sizinle iletişim kurmak için hazır.",
|
37
38
|
"title": "Sohbet Et"
|
package/locales/vi-VN/chat.json
CHANGED
@@ -32,6 +32,7 @@
|
|
32
32
|
"duplicateTitle": "{{title}} Bản sao",
|
33
33
|
"emptyAgent": "Không có trợ lý",
|
34
34
|
"historyRange": "Phạm vi lịch sử",
|
35
|
+
"historySummary": "Tóm tắt tin tức lịch sử",
|
35
36
|
"inbox": {
|
36
37
|
"desc": "Kích hoạt cụm não, khơi dậy tia lửa tư duy. Trợ lý thông minh của bạn, ở đây để trò chuyện với bạn về mọi thứ.",
|
37
38
|
"title": "Chuyện phiếm"
|
package/locales/zh-CN/chat.json
CHANGED
package/locales/zh-TW/chat.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.34.
|
3
|
+
"version": "1.34.5",
|
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",
|
@@ -5,7 +5,7 @@ const Google: ModelProviderCard = {
|
|
5
5
|
chatModels: [
|
6
6
|
{
|
7
7
|
description:
|
8
|
-
'Gemini Exp 1121 是Google最新的实验性多模态AI
|
8
|
+
'Gemini Exp 1121 是 Google 最新的实验性多模态AI模型,拥有改进的编码、推理和视觉能力。',
|
9
9
|
displayName: 'Gemini Experimental 1121',
|
10
10
|
enabled: true,
|
11
11
|
functionCall: true,
|
@@ -22,9 +22,8 @@ const Google: ModelProviderCard = {
|
|
22
22
|
},
|
23
23
|
{
|
24
24
|
description:
|
25
|
-
'Gemini Exp 1114 是Google
|
25
|
+
'Gemini Exp 1114 是 Google 的实验性多模态AI模型,对输出质量有一定改进。',
|
26
26
|
displayName: 'Gemini Experimental 1114',
|
27
|
-
enabled: true,
|
28
27
|
functionCall: true,
|
29
28
|
id: 'gemini-exp-1114',
|
30
29
|
maxOutput: 8192,
|
@@ -39,7 +38,23 @@ const Google: ModelProviderCard = {
|
|
39
38
|
},
|
40
39
|
{
|
41
40
|
description:
|
42
|
-
'
|
41
|
+
'LearnLM 是一个实验性的、特定于任务的语言模型,经过训练以符合学习科学原则,可在教学和学习场景中遵循系统指令,充当专家导师等。',
|
42
|
+
displayName: 'LearnLM 1.5 Pro Experimental',
|
43
|
+
functionCall: true,
|
44
|
+
id: 'learnlm-1.5-pro-experimental',
|
45
|
+
maxOutput: 8192,
|
46
|
+
pricing: {
|
47
|
+
cachedInput: 0,
|
48
|
+
input: 0,
|
49
|
+
output: 0,
|
50
|
+
},
|
51
|
+
releasedAt: '2024-11-19',
|
52
|
+
tokens: 32_767 + 8192,
|
53
|
+
vision: true,
|
54
|
+
},
|
55
|
+
{
|
56
|
+
description:
|
57
|
+
'Gemini 1.5 Flash 是 Google 最新的多模态AI模型,具备快速处理能力,支持文本、图像和视频输入,适用于多种任务的高效扩展。',
|
43
58
|
displayName: 'Gemini 1.5 Flash',
|
44
59
|
enabled: true,
|
45
60
|
functionCall: true,
|
@@ -4,6 +4,7 @@ import { Typography } from 'antd';
|
|
4
4
|
import { createStyles } from 'antd-style';
|
5
5
|
import { ScrollText } from 'lucide-react';
|
6
6
|
import { memo } from 'react';
|
7
|
+
import { useTranslation } from 'react-i18next';
|
7
8
|
import { Center, Flexbox } from 'react-layout-kit';
|
8
9
|
|
9
10
|
import { useChatStore } from '@/store/chat';
|
@@ -28,6 +29,7 @@ const useStyles = createStyles(({ css, token }) => ({
|
|
28
29
|
|
29
30
|
const History = memo(() => {
|
30
31
|
const { styles, theme } = useStyles();
|
32
|
+
const { t } = useTranslation('chat');
|
31
33
|
const [content, model] = useChatStore((s) => {
|
32
34
|
const history = topicSelectors.currentActiveTopicSummary(s);
|
33
35
|
return [history?.content, history?.model];
|
@@ -46,8 +48,7 @@ const History = memo(() => {
|
|
46
48
|
style={{ color: theme.colorTextDescription }}
|
47
49
|
/>
|
48
50
|
</Center>
|
49
|
-
<Typography.Text type={'secondary'}
|
50
|
-
|
51
|
+
<Typography.Text type={'secondary'}>{t('historySummary')}</Typography.Text>
|
51
52
|
{model && (
|
52
53
|
<div>
|
53
54
|
<ModelTag model={model} />
|
@@ -1,20 +1,43 @@
|
|
1
1
|
import { ActionIcon } from '@lobehub/ui';
|
2
|
-
import { XIcon } from 'lucide-react';
|
2
|
+
import { ArrowLeftRight, XIcon } from 'lucide-react';
|
3
|
+
import { memo } from 'react';
|
4
|
+
import { Flexbox } from 'react-layout-kit';
|
3
5
|
|
4
6
|
import SidebarHeader from '@/components/SidebarHeader';
|
5
7
|
import { useChatStore } from '@/store/chat';
|
6
8
|
|
7
9
|
import Title from './Title';
|
8
10
|
|
9
|
-
const Header = () => {
|
10
|
-
const closeThreadPortal = useChatStore((s) =>
|
11
|
+
const Header = memo(() => {
|
12
|
+
const [hasPortal, portalThreadId, closeThreadPortal, switchThread] = useChatStore((s) => [
|
13
|
+
!!s.portalThreadId,
|
14
|
+
s.portalThreadId,
|
15
|
+
s.closeThreadPortal,
|
16
|
+
s.switchThread,
|
17
|
+
]);
|
18
|
+
|
11
19
|
return (
|
12
20
|
<SidebarHeader
|
13
|
-
actions={
|
21
|
+
actions={
|
22
|
+
<Flexbox horizontal>
|
23
|
+
{hasPortal && (
|
24
|
+
<ActionIcon
|
25
|
+
icon={ArrowLeftRight}
|
26
|
+
onClick={() => {
|
27
|
+
if (!portalThreadId) return;
|
28
|
+
|
29
|
+
switchThread(portalThreadId);
|
30
|
+
closeThreadPortal();
|
31
|
+
}}
|
32
|
+
/>
|
33
|
+
)}
|
34
|
+
<ActionIcon icon={XIcon} onClick={closeThreadPortal} />
|
35
|
+
</Flexbox>
|
36
|
+
}
|
14
37
|
style={{ paddingBlock: 8, paddingInline: 8 }}
|
15
38
|
title={<Title />}
|
16
39
|
/>
|
17
40
|
);
|
18
|
-
};
|
41
|
+
});
|
19
42
|
|
20
43
|
export default Header;
|