@lobehub/chat 1.1.8 → 1.1.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,41 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.1.9](https://github.com/lobehub/lobe-chat/compare/v1.1.8...v1.1.9)
6
+
7
+ <sup>Released on **2024-06-24**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix agent tags.
12
+
13
+ #### 💄 Styles
14
+
15
+ - **ui**: Fixed incorrect text display on connect check.
16
+ - **misc**: Always show action on mobile.
17
+
18
+ <br/>
19
+
20
+ <details>
21
+ <summary><kbd>Improvements and Fixes</kbd></summary>
22
+
23
+ #### What's fixed
24
+
25
+ - **misc**: Fix agent tags, closes [#3015](https://github.com/lobehub/lobe-chat/issues/3015) ([01e965b](https://github.com/lobehub/lobe-chat/commit/01e965b))
26
+
27
+ #### Styles
28
+
29
+ - **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))
30
+ - **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))
31
+
32
+ </details>
33
+
34
+ <div align="right">
35
+
36
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
37
+
38
+ </div>
39
+
5
40
  ### [Version 1.1.8](https://github.com/lobehub/lobe-chat/compare/v1.1.7...v1.1.8)
6
41
 
7
42
  <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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.1.8",
3
+ "version": "1.1.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",
@@ -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
  />
@@ -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,
@@ -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,