@lobehub/chat 1.1.8 → 1.1.10

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,58 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.1.10](https://github.com/lobehub/lobe-chat/compare/v1.1.9...v1.1.10)
6
+
7
+ <sup>Released on **2024-06-24**</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 1.1.9](https://github.com/lobehub/lobe-chat/compare/v1.1.8...v1.1.9)
23
+
24
+ <sup>Released on **2024-06-24**</sup>
25
+
26
+ #### 🐛 Bug Fixes
27
+
28
+ - **misc**: Fix agent tags.
29
+
30
+ #### 💄 Styles
31
+
32
+ - **ui**: Fixed incorrect text display on connect check.
33
+ - **misc**: Always show action on mobile.
34
+
35
+ <br/>
36
+
37
+ <details>
38
+ <summary><kbd>Improvements and Fixes</kbd></summary>
39
+
40
+ #### What's fixed
41
+
42
+ - **misc**: Fix agent tags, closes [#3015](https://github.com/lobehub/lobe-chat/issues/3015) ([01e965b](https://github.com/lobehub/lobe-chat/commit/01e965b))
43
+
44
+ #### Styles
45
+
46
+ - **ui**: Fixed incorrect text display on connect check, closes [#2994](https://github.com/lobehub/lobe-chat/issues/2994) ([5160f23](https://github.com/lobehub/lobe-chat/commit/5160f23))
47
+ - **misc**: Always show action on mobile, closes [#1863](https://github.com/lobehub/lobe-chat/issues/1863) ([f40292e](https://github.com/lobehub/lobe-chat/commit/f40292e))
48
+
49
+ </details>
50
+
51
+ <div align="right">
52
+
53
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
54
+
55
+ </div>
56
+
5
57
  ### [Version 1.1.8](https://github.com/lobehub/lobe-chat/compare/v1.1.7...v1.1.8)
6
58
 
7
59
  <sup>Released on **2024-06-24**</sup>
package/README.md CHANGED
@@ -265,14 +265,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
265
265
 
266
266
  <!-- AGENT LIST -->
267
267
 
268
- | Recent Submits | Description |
269
- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
270
- | [Fastapi Project Development Assistant](https://chat-preview.lobehub.com/market?agent=fastapi-development)<br/><sup>By **[xwxw098](https://github.com/xwxw098)** on **2024-06-19**</sup> | Proficient in Python modular development, skilled in using FastAPI, PostgreSQL, Tortoise-ORM, and other technologies, able to provide clear code structure and detailed comments for large projects.<br/>`fast-api` `python` `modular-development` |
271
- | [IT Systems Architect](https://chat-preview.lobehub.com/market?agent=it-system-architect)<br/><sup>By **[a562314](https://github.com/a562314)** on **2024-06-19**</sup> | Senior IT architect specializing in requirements analysis, system design, technology selection, and cross-platform system optimization. With over 5 years of experience, proficient in Windows, macOS, and Linux operating systems, skilled in troubleshooting, and security protection.<br/>`it-architecture-design` `problem-solving` `agile-development` `system-optimization` `cross-platform-skills` `teamwork` |
272
- | [Linux Kernel Expert](https://chat-preview.lobehub.com/market?agent=linux-kernel)<br/><sup>By **[wming126](https://github.com/wming126)** on **2024-06-19**</sup> | Role Description: I am an expert in Linux kernel, with a deep understanding and analytical ability of the latest kernel source code (as of June 2024). I can provide users with detailed and accurate information about the Linux kernel.<br/>`linux` `kernel` |
273
- | [NovelAI Drawing Assistant](https://chat-preview.lobehub.com/market?agent=novel-ai-pormpt-helper)<br/><sup>By **[WallBreakerNO4](https://github.com/WallBreakerNO4)** on **2024-06-18**</sup> | I can turn the scenes you describe into prompts for NovelAI<br/>`deep-learning` `image-generation` `algorithm` `prompt` |
274
-
275
- > 📊 Total agents: [<kbd>**292**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
268
+ | Recent Submits | Description |
269
+ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
270
+ | [AOSP Source Code Expert](https://chat-preview.lobehub.com/market?agent=aosp-development)<br/><sup>By **[viruscoding](https://github.com/viruscoding)** on **2024-06-24**</sup> | An expert in AOSP (Android Open Source Project) for Android, with a deep understanding and analytical ability of the latest AOSP source code.<br/>`aosp` |
271
+ | [Fastapi Project Development Assistant](https://chat-preview.lobehub.com/market?agent=fastapi-development)<br/><sup>By **[xwxw098](https://github.com/xwxw098)** on **2024-06-19**</sup> | Proficient in Python modular development, skilled in using FastAPI, PostgreSQL, Tortoise-ORM, and other technologies, able to provide clear code structure and detailed comments for large projects.<br/>`fast-api` `python` `modular-development` |
272
+ | [IT Systems Architect](https://chat-preview.lobehub.com/market?agent=it-system-architect)<br/><sup>By **[a562314](https://github.com/a562314)** on **2024-06-19**</sup> | Senior IT architect specializing in requirements analysis, system design, technology selection, and cross-platform system optimization. With over 5 years of experience, proficient in Windows, macOS, and Linux operating systems, skilled in troubleshooting, and security protection.<br/>`it-architecture-design` `problem-solving` `agile-development` `system-optimization` `cross-platform-skills` `teamwork` |
273
+ | [Linux Kernel Expert](https://chat-preview.lobehub.com/market?agent=linux-kernel)<br/><sup>By **[wming126](https://github.com/wming126)** on **2024-06-19**</sup> | Role Description: I am an expert in Linux kernel, with a deep understanding and analytical ability of the latest kernel source code (as of June 2024). I can provide users with detailed and accurate information about the Linux kernel.<br/>`linux` `kernel` |
274
+
275
+ > 📊 Total agents: [<kbd>**293**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
276
276
 
277
277
  <!-- AGENT LIST -->
278
278
 
package/README.zh-CN.md CHANGED
@@ -253,14 +253,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
253
253
 
254
254
  <!-- AGENT LIST -->
255
255
 
256
- | 最近新增 | 助手说明 |
257
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
258
- | [Fastapi 项目开发助手](https://chat-preview.lobehub.com/market?agent=fastapi-development)<br/><sup>By **[xwxw098](https://github.com/xwxw098)** on **2024-06-19**</sup> | 擅长 Python 模块化开发,熟练运用 FastAPI、PostgreSQL、Tortoise-ORM 等技术栈,能为大型项目提供清晰的代码结构并添加详细注释。<br/>`fast-api` `python` `模块化开发` |
259
- | [IT 系统架构师](https://chat-preview.lobehub.com/market?agent=it-system-architect)<br/><sup>By **[a562314](https://github.com/a562314)** on **2024-06-19**</sup> | 资深 IT 架构师,擅长需求分析、系统设计、技术选型和跨平台系统优化。5 年以上经验,精通 WindowsmacOS 和 Linux 三大操作系统,具备故障排除和安全防护能力<br/>`it架构设计` `问题解决` `敏捷开发` `系统优化` `跨平台技能` |
260
- | [Linux 内核专家](https://chat-preview.lobehub.com/market?agent=linux-kernel)<br/><sup>By **[wming126](https://github.com/wming126)** on **2024-06-19**</sup> | 角色描述: 我是一位精通 Linux 内核的专家,对最新内核源代码(截至 2024 6 月)有着深入的理解和分析能力。我可以为用户提供关于 Linux 内核的详细、准确的信息。<br/>`linux` `kernel` |
261
- | [NovelAI 绘画助手](https://chat-preview.lobehub.com/market?agent=novel-ai-pormpt-helper)<br/><sup>By **[WallBreakerNO4](https://github.com/WallBreakerNO4)** on **2024-06-18**</sup> | 我能将你描述的场景转成 NovelAI prompt<br/>`深度学习` `图像生成` `算法` `提示符` |
262
-
263
- > 📊 Total agents: [<kbd>**292**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
256
+ | 最近新增 | 助手说明 |
257
+ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
258
+ | [AOSP 源码专家](https://chat-preview.lobehub.com/market?agent=aosp-development)<br/><sup>By **[viruscoding](https://github.com/viruscoding)** on **2024-06-24**</sup> | 一位精通 AOSP(Android Open Source Project)安卓的专家,对最新 AOSP 源代码有着深入的理解和分析能力。<br/>`aosp` |
259
+ | [Fastapi 项目开发助手](https://chat-preview.lobehub.com/market?agent=fastapi-development)<br/><sup>By **[xwxw098](https://github.com/xwxw098)** on **2024-06-19**</sup> | 擅长 Python 模块化开发,熟练运用 FastAPIPostgreSQL、Tortoise-ORM 等技术栈,能为大型项目提供清晰的代码结构并添加详细注释。<br/>`fast-api` `python` `模块化开发` |
260
+ | [IT 系统架构师](https://chat-preview.lobehub.com/market?agent=it-system-architect)<br/><sup>By **[a562314](https://github.com/a562314)** on **2024-06-19**</sup> | 资深 IT 架构师,擅长需求分析、系统设计、技术选型和跨平台系统优化。5 年以上经验,精通 Windows、macOS Linux 三大操作系统,具备故障排除和安全防护能力<br/>`it架构设计` `问题解决` `敏捷开发` `系统优化` `跨平台技能` |
261
+ | [Linux 内核专家](https://chat-preview.lobehub.com/market?agent=linux-kernel)<br/><sup>By **[wming126](https://github.com/wming126)** on **2024-06-19**</sup> | 角色描述: 我是一位精通 Linux 内核的专家,对最新内核源代码(截至 2024 6 月)有着深入的理解和分析能力。我可以为用户提供关于 Linux 内核的详细、准确的信息。<br/>`linux` `kernel` |
262
+
263
+ > 📊 Total agents: [<kbd>**293**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
264
264
 
265
265
  <!-- AGENT LIST -->
266
266
 
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "layoutInitializing": "جاري تحميل التخطيط...",
131
131
  "legal": "بيان قانوني",
132
+ "loading": "جارِ التحميل...",
132
133
  "mail": {
133
134
  "business": "شراكات تجارية",
134
135
  "support": "الدعم عبر البريد الإلكتروني"
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "layoutInitializing": "Инициализиране на оформлението...",
131
131
  "legal": "Правно уведомление",
132
+ "loading": "Зареждане...",
132
133
  "mail": {
133
134
  "business": "Бизнес сътрудничество",
134
135
  "support": "Поддръжка по имейл"
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "layoutInitializing": "Layout wird geladen...",
131
131
  "legal": "Rechtliches",
132
+ "loading": "Laden...",
132
133
  "mail": {
133
134
  "business": "Geschäftliche Zusammenarbeit",
134
135
  "support": "E-Mail-Support"
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "layoutInitializing": "Initializing layout...",
131
131
  "legal": "Legal Disclaimer",
132
+ "loading": "Loading...",
132
133
  "mail": {
133
134
  "business": "Business Cooperation",
134
135
  "support": "Email Support"
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "layoutInitializing": "Inicializando diseño...",
131
131
  "legal": "Aviso Legal",
132
+ "loading": "Cargando...",
132
133
  "mail": {
133
134
  "business": "Colaboración Comercial",
134
135
  "support": "Soporte por Correo"
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "layoutInitializing": "Initialisation de la mise en page en cours...",
131
131
  "legal": "Mentions légales",
132
+ "loading": "Chargement en cours...",
132
133
  "mail": {
133
134
  "business": "Partenariats commerciaux",
134
135
  "support": "Support par e-mail"
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "layoutInitializing": "Inizializzazione layout in corso...",
131
131
  "legal": "Avviso legale",
132
+ "loading": "Caricamento in corso...",
132
133
  "mail": {
133
134
  "business": "Collaborazioni commerciali",
134
135
  "support": "Supporto via email"
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "layoutInitializing": "レイアウトを初期化中...",
131
131
  "legal": "法的声明",
132
+ "loading": "読み込み中...",
132
133
  "mail": {
133
134
  "business": "ビジネス提携",
134
135
  "support": "メールサポート"
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "layoutInitializing": "레이아웃을 불러오는 중...",
131
131
  "legal": "법적 고지",
132
+ "loading": "로딩 중...",
132
133
  "mail": {
133
134
  "business": "비즈니스 협력",
134
135
  "support": "이메일 지원"
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "layoutInitializing": "Lay-out wordt geladen...",
131
131
  "legal": "Juridisch",
132
+ "loading": "Laden...",
132
133
  "mail": {
133
134
  "business": "Zakelijke samenwerking",
134
135
  "support": "E-mailondersteuning"
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "layoutInitializing": "Inicjowanie układu...",
131
131
  "legal": "Oświadczenie prawne",
132
+ "loading": "Ładowanie...",
132
133
  "mail": {
133
134
  "business": "Współpraca biznesowa",
134
135
  "support": "Wsparcie mailowe"
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "layoutInitializing": "Inicializando layout...",
131
131
  "legal": "Aviso Legal",
132
+ "loading": "Carregando...",
132
133
  "mail": {
133
134
  "business": "Parcerias Comerciais",
134
135
  "support": "Suporte por E-mail"
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "layoutInitializing": "Инициализация макета...",
131
131
  "legal": "Юридическое уведомление",
132
+ "loading": "Загрузка...",
132
133
  "mail": {
133
134
  "business": "Деловое сотрудничество",
134
135
  "support": "Поддержка по электронной почте"
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "layoutInitializing": "Başlatılıyor...",
131
131
  "legal": "Hukuki Bildirim",
132
+ "loading": "Yükleniyor...",
132
133
  "mail": {
133
134
  "business": "İşbirliği",
134
135
  "support": "E-posta Desteği"
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "layoutInitializing": "Đang tải bố cục...",
131
131
  "legal": "Tuyên bố về pháp lý",
132
+ "loading": "Đang tải...",
132
133
  "mail": {
133
134
  "business": "Hợp tác kinh doanh",
134
135
  "support": "Hỗ trợ qua email"
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "layoutInitializing": "正在加载布局...",
131
131
  "legal": "法律声明",
132
+ "loading": "加载中...",
132
133
  "mail": {
133
134
  "business": "商务合作",
134
135
  "support": "邮件支持"
@@ -129,6 +129,7 @@
129
129
  },
130
130
  "layoutInitializing": "正在載入版面配置...",
131
131
  "legal": "法律聲明",
132
+ "loading": "載入中...",
132
133
  "mail": {
133
134
  "business": "商務合作",
134
135
  "support": "郵件支持"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
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",
@@ -122,7 +122,7 @@
122
122
  "@vercel/analytics": "^1.3.1",
123
123
  "@vercel/speed-insights": "^1.0.12",
124
124
  "ahooks": "^3.8.0",
125
- "ai": "3.0.19",
125
+ "ai": "^3.2.6",
126
126
  "antd": "^5.18.3",
127
127
  "antd-style": "^3.6.2",
128
128
  "brotli-wasm": "^3.0.1",
@@ -56,7 +56,7 @@ const ListItem = memo<ListItemProps & { avatar: string; avatarBackground?: strin
56
56
  avatar={avatarRender}
57
57
  className={cx(styles.container, mobile && styles.mobile)}
58
58
  ref={ref}
59
- showAction={actions && (isHovering || showAction)}
59
+ showAction={actions && (isHovering || showAction || mobile)}
60
60
  title={<span className={styles.title}>{title}</span>}
61
61
  {...(props as any)}
62
62
  />
@@ -0,0 +1,21 @@
1
+ 'use client';
2
+
3
+ import { Icon } from '@lobehub/ui';
4
+ import { Typography } from 'antd';
5
+ import { LoaderCircle } from 'lucide-react';
6
+ import { useTranslation } from 'react-i18next';
7
+ import { Center, Flexbox } from 'react-layout-kit';
8
+
9
+ export default () => {
10
+ const { t } = useTranslation('common');
11
+ return (
12
+ <Center height={'100%'} width={'100%'}>
13
+ <Flexbox align={'center'} gap={8}>
14
+ <div>
15
+ <Icon icon={LoaderCircle} size={'large'} spin />
16
+ </div>
17
+ <Typography.Text type={'secondary'}>{t('loading')}</Typography.Text>
18
+ </Flexbox>
19
+ </Center>
20
+ );
21
+ };
@@ -10,6 +10,7 @@ import { Flexbox } from 'react-layout-kit';
10
10
 
11
11
  import { TraceNameMap } from '@/const/trace';
12
12
  import { useIsMobile } from '@/hooks/useIsMobile';
13
+ import { useProviderName } from '@/hooks/useProviderName';
13
14
  import { chatService } from '@/services/chat';
14
15
  import { ChatMessageError } from '@/types/message';
15
16
 
@@ -20,6 +21,7 @@ interface ConnectionCheckerProps {
20
21
 
21
22
  const Error = memo<{ error: ChatMessageError }>(({ error }) => {
22
23
  const { t } = useTranslation('error');
24
+ const providerName = useProviderName(error.body?.provider);
23
25
 
24
26
  return (
25
27
  <Flexbox gap={8} style={{ maxWidth: '600px', width: '100%' }}>
@@ -32,7 +34,7 @@ const Error = memo<{ error: ChatMessageError }>(({ error }) => {
32
34
  </Highlighter>
33
35
  </Flexbox>
34
36
  }
35
- message={t(`response.${error.type}` as any)}
37
+ message={t(`response.${error.type}` as any, { provider: providerName })}
36
38
  showIcon
37
39
  type={'error'}
38
40
  />
@@ -246,6 +246,7 @@ export class SessionModel {
246
246
  avatar: agent?.avatar ?? avatar ?? undefined,
247
247
  backgroundColor: agent?.backgroundColor ?? backgroundColor ?? undefined,
248
248
  description: agent?.description ?? description ?? undefined,
249
+ tags: agent?.tags ?? undefined,
249
250
  title: agent?.title ?? title ?? undefined,
250
251
  },
251
252
  model: agent?.model,
@@ -129,6 +129,7 @@ export default {
129
129
  },
130
130
  layoutInitializing: '正在加载布局...',
131
131
  legal: '法律声明',
132
+ loading: '加载中...',
132
133
  mail: {
133
134
  business: '商务合作',
134
135
  support: '邮件支持',
@@ -1,27 +1,5 @@
1
1
  // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
- exports[`configRouter > getGlobalConfig > Model Provider env > CUSTOM_MODELS > custom deletion, addition, and renaming of models 1`] = `
4
- [
5
- {
6
- "displayName": "llama",
7
- "enabled": true,
8
- "id": "llama",
9
- },
10
- {
11
- "displayName": "claude-2",
12
- "enabled": true,
13
- "id": "claude-2",
14
- },
15
- {
16
- "displayName": "gpt-4-32k",
17
- "enabled": true,
18
- "functionCall": true,
19
- "id": "gpt-4-0125-preview",
20
- "tokens": 128000,
21
- },
22
- ]
23
- `;
24
-
25
3
  exports[`configRouter > getGlobalConfig > Model Provider env > OPENAI_MODEL_LIST > custom deletion, addition, and renaming of models 1`] = `
26
4
  {
27
5
  "enabled": true,