@lobehub/chat 0.114.5 → 0.114.6

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,23 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.114.6](https://github.com/lobehub/lobe-chat/compare/v0.114.5...v0.114.6)
6
+
7
+ <sup>Released on **2023-12-22**</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
+
5
22
  ### [Version 0.114.5](https://github.com/lobehub/lobe-chat/compare/v0.114.4...v0.114.5)
6
23
 
7
24
  <sup>Released on **2023-12-19**</sup>
package/README.md CHANGED
@@ -172,9 +172,9 @@ e-commerce platform data access, and various third-party services.
172
172
  | [weather GPT](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **Steven Tey** on **2023-12-16**</sup> | Get current weather information for a specific location.<br/>`weather` |
173
173
  | [Ask Your PDF](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **AskYourPDF** on **2023-12-16**</sup> | Unlock the power of your PDFs!, dive into your documents, find answers, and bring information to your fingertips.<br/>`pdf` `document` `web` |
174
174
  | [Clock Time](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **LobeHub** on **2023-11-01**</sup> | Display a clock to show current time<br/>`clock` `time` |
175
- | [Pollinate drawing](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **AI0x0** on **2023-12-10**</sup> | Generate images through pollinations.ai<br/>`drawing` `image` |
175
+ | [Mindmap](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **Moonlit7** on **2023-12-19**</sup> | A mindmap generation assistant<br/>`mindmap` |
176
176
 
177
- > 📊 Total plugins: [<kbd>**8**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
177
+ > 📊 Total plugins: [<kbd>**9**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
178
178
 
179
179
  <!-- PLUGIN LIST -->
180
180
 
@@ -206,14 +206,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
206
206
 
207
207
  <!-- AGENT LIST -->
208
208
 
209
- | Recent Submits | Description |
210
- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
211
- | [Dream Painter](https://chat-preview.lobehub.com/market?agent=dream-painter)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | A dream artist who can bring your dreams into reality.<br/>`txt-2-img` `painter` |
212
- | [NewsHub](https://chat-preview.lobehub.com/market?agent=news-hub)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | A news search assistant proficient at finding and presenting relevant news<br/>`news` `search` `helper` |
213
- | [NewsNest](https://chat-preview.lobehub.com/market?agent=news-nest)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | A news search assistant, can help you find and display relevant news based on your needs.<br/>`news` `search` |
214
- | [Travel Assistant](https://chat-preview.lobehub.com/market?agent=travel-assistant)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | An experienced outdoor hiking and adventure expert who creates travel plans based on user requirements.<br/>`outdoor` `hiking` |
209
+ | Recent Submits | Description |
210
+ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
211
+ | [Dream Painter](https://chat-preview.lobehub.com/market?agent=dream-painter)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | A dream artist who can bring your dreams into reality.<br/>`txt-2-img` `painter` |
212
+ | [NewsHub](https://chat-preview.lobehub.com/market?agent=news-hub)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | A news search assistant proficient at finding and presenting relevant news<br/>`news` `search` `helper` |
213
+ | [NewsNest](https://chat-preview.lobehub.com/market?agent=news-nest)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | A news search assistant, can help you find and display relevant news based on your needs.<br/>`news` `search` |
214
+ | [Research Assistant](https://chat-preview.lobehub.com/market?agent=research-assistant)<br/><sup>By **[ccsen](https://github.com/ccsen)** on **2023-12-19**</sup> | Capable of answering questions, conducting research, drafting content, and more, utilizing scientific research papers.<br/>`research-assistant` `literature-retrieval` `writing` `scientific-research` `citation` |
215
215
 
216
- > 📊 Total agents: [<kbd>**77**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
216
+ > 📊 Total agents: [<kbd>**78**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
217
217
 
218
218
  <!-- AGENT LIST -->
219
219
 
package/README.zh-CN.md CHANGED
@@ -153,9 +153,9 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
153
153
  | [天气 GPT](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **Steven Tey** on **2023-12-16**</sup> | 获取特定位置的当前天气信息。<br/>`天气` |
154
154
  | [AskYouPDF](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **AskYourPDF** on **2023-12-16**</sup> | 释放您的 PDF 的力量!深入您的文档,找到答案,并将信息带到您的指尖。<br/>`pdf` `文档` `web` |
155
155
  | [时钟时间](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **LobeHub** on **2023-11-01**</sup> | 显示一个时钟来展示当前时间<br/>`时钟` `时间` |
156
- | [授粉绘画](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **AI0x0** on **2023-12-10**</sup> | 通过 pollinations.ai 进行图像生成<br/>`drawing` `image` |
156
+ | [思维导图](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **Moonlit7** on **2023-12-19**</sup> | 思维导图生成助手<br/>`思维导图` `脑图` |
157
157
 
158
- > 📊 Total plugins: [<kbd>**8**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
158
+ > 📊 Total plugins: [<kbd>**9**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
159
159
 
160
160
  <!-- PLUGIN LIST -->
161
161
 
@@ -183,14 +183,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
183
183
 
184
184
  <!-- AGENT LIST -->
185
185
 
186
- | 最近新增 | 助手说明 |
187
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
188
- | [梦境画家](https://chat-preview.lobehub.com/market?agent=dream-painter)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | 一位能将你的梦想变成现实的梦境艺术家。<br/>`txt-2-img` `painter` |
189
- | [NewsHub](https://chat-preview.lobehub.com/market?agent=news-hub)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | 一个新闻搜索助手,擅长查找和呈现相关新闻<br/>`新闻` `搜索` `助手` |
190
- | [NewsNest](https://chat-preview.lobehub.com/market?agent=news-nest)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | 一个新闻搜索助手,可以根据您的需求帮助您查找和显示相关新闻。<br/>`新闻` `搜索` |
191
- | [旅行助手](https://chat-preview.lobehub.com/market?agent=travel-assistant)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | 一位经验丰富的户外徒步和冒险专家,根据用户需求制定旅行计划。<br/>`户外` `徒步` |
186
+ | 最近新增 | 助手说明 |
187
+ | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
188
+ | [梦境画家](https://chat-preview.lobehub.com/market?agent=dream-painter)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | 一位能将你的梦想变成现实的梦境艺术家。<br/>`txt-2-img` `painter` |
189
+ | [NewsHub](https://chat-preview.lobehub.com/market?agent=news-hub)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | 一个新闻搜索助手,擅长查找和呈现相关新闻<br/>`新闻` `搜索` `助手` |
190
+ | [NewsNest](https://chat-preview.lobehub.com/market?agent=news-nest)<br/><sup>By **[ccdanpian](https://github.com/ccdanpian)** on **2023-12-19**</sup> | 一个新闻搜索助手,可以根据您的需求帮助您查找和显示相关新闻。<br/>`新闻` `搜索` |
191
+ | [研究助理](https://chat-preview.lobehub.com/market?agent=research-assistant)<br/><sup>By **[ccsen](https://github.com/ccsen)** on **2023-12-19**</sup> | 能够回答问题,进行研究,起草内容等,利用科学研究论文。<br/>`research-assistant` `literature-retrieval` `writing` `scientific-research` `citation` |
192
192
 
193
- > 📊 Total agents: [<kbd>**77**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
193
+ > 📊 Total agents: [<kbd>**78**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
194
194
 
195
195
  <!-- AGENT LIST -->
196
196
 
@@ -80,6 +80,7 @@ services:
80
80
  lobe-chat:
81
81
  image: lobehub/lobe-chat
82
82
  container_name: lobe-chat
83
+ restart: always
83
84
  ports:
84
85
  - '3210:3210'
85
86
  environment:
@@ -80,6 +80,7 @@ services:
80
80
  lobe-chat:
81
81
  image: lobehub/lobe-chat
82
82
  container_name: lobe-chat
83
+ restart: always
83
84
  ports:
84
85
  - '3210:3210'
85
86
  environment:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.114.5",
3
+ "version": "0.114.6",
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,6 +1,6 @@
1
1
  import { ActionIcon } from '@lobehub/ui';
2
2
  import { Bot, MessageSquare } from 'lucide-react';
3
- import { usePathname, useRouter } from 'next/navigation';
3
+ import Link from 'next/link';
4
4
  import { memo } from 'react';
5
5
  import { useTranslation } from 'react-i18next';
6
6
 
@@ -14,37 +14,39 @@ export interface TopActionProps {
14
14
  }
15
15
 
16
16
  const TopActions = memo<TopActionProps>(({ tab, setTab }) => {
17
- const pathname = usePathname();
18
- const router = useRouter();
19
17
  const { t } = useTranslation('common');
20
18
  const switchBackToChat = useSessionStore((s) => s.switchBackToChat);
19
+
21
20
  return (
22
21
  <>
23
- <ActionIcon
24
- active={tab === SidebarTabKey.Chat}
25
- icon={MessageSquare}
26
- onClick={() => {
27
- // 如果已经在 chat 路径下了,那么就不用再跳转了
28
- if (pathname?.startsWith('/chat')) return;
22
+ <Link
23
+ href={'/chat'}
24
+ onClick={(e) => {
25
+ e.preventDefault();
29
26
  switchBackToChat();
30
27
  setTab(SidebarTabKey.Chat);
31
28
  }}
32
- placement={'right'}
33
- size="large"
34
- title={t('tab.chat')}
35
- />
36
- <ActionIcon
37
- active={tab === SidebarTabKey.Market}
38
- icon={Bot}
39
- onClick={() => {
40
- if (pathname?.startsWith('/market')) return;
41
- router.push('/market');
42
- setTab(SidebarTabKey.Market);
43
- }}
44
- placement={'right'}
45
- size="large"
46
- title={t('tab.market')}
47
- />
29
+ >
30
+ <ActionIcon
31
+ active={tab === SidebarTabKey.Chat}
32
+ icon={MessageSquare}
33
+ placement={'right'}
34
+ size="large"
35
+ title={t('tab.chat')}
36
+ />
37
+ </Link>
38
+ <Link href={'/market'}>
39
+ <ActionIcon
40
+ active={tab === SidebarTabKey.Market}
41
+ icon={Bot}
42
+ onClick={() => {
43
+ setTab(SidebarTabKey.Market);
44
+ }}
45
+ placement={'right'}
46
+ size="large"
47
+ title={t('tab.market')}
48
+ />
49
+ </Link>
48
50
  </>
49
51
  );
50
52
  });
@@ -29,6 +29,12 @@ const StoreHydration = memo(() => {
29
29
  },
30
30
  [router],
31
31
  );
32
+ useEffect(() => {
33
+ router.prefetch('/chat');
34
+ router.prefetch('/market');
35
+ router.prefetch('/settings/common');
36
+ router.prefetch('/settings/agent');
37
+ }, [router]);
32
38
 
33
39
  return null;
34
40
  });