@lobehub/chat 0.89.5 → 0.89.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.89.6](https://github.com/lobehub/lobe-chat/compare/v0.89.5...v0.89.6)
6
+
7
+ <sup>Released on **2023-10-15**</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.89.5](https://github.com/lobehub/lobe-chat/compare/v0.89.4...v0.89.5)
6
23
 
7
24
  <sup>Released on **2023-10-15**</sup>
package/README.md CHANGED
@@ -176,22 +176,26 @@ We have carried out a series of optimization designs for mobile devices to enhan
176
176
 
177
177
  ## 🛳 Self Hosting
178
178
 
179
- LobeChat provides [Self-Hosted Version][deploy-link] with Vercel and [Docker Image][docker-release-link]. This allows you to deploy your own chatbot within a few minutes without any prior knowledge.
180
-
181
- <br/>
179
+ LobeChat provides Self-Hosted Version with Vercel and [Docker Image][docker-release-link]. This allows you to deploy your own chatbot within a few minutes without any prior knowledge.
182
180
 
183
181
  ### `A` Deploying with Vercel
184
182
 
185
183
  If you want to deploy this service yourself on Vercel, you can follow these steps:
186
184
 
187
185
  - Prepare your [OpenAI API Key](https://platform.openai.com/account/api-keys).
188
- - Click the button below to start deployment: Deploy with Vercel. Log in directly with your GitHub account, and remember to fill in the API Key and access code CODE on the environment variable page;
186
+ - Click the button below to start deployment: Deploy with Vercel. Log in directly with your GitHub account, and remember to fill in the `OPENAI_API_KEY`(required) and `ACCESS_CODE` (recommended) on the environment variable section;
189
187
  - After deployment, you can start using it;
190
188
  - Bind a custom domain (optional): The DNS of the domain assigned by Vercel is polluted in some areas; binding a custom domain can connect directly.
191
189
 
190
+ <div align="center">
191
+
192
+ [![][deploy-button-image]][deploy-link]
193
+
194
+ </div>
195
+
192
196
  #### Keep Updated
193
197
 
194
- If you have deployed your own project following the one-click deployment steps in the README, you might encounter constant prompts indicating "updates available." This is because Vercel defaults to creating a new project instead of forking this one, resulting in an inability to detect updates accurately.
198
+ If you have deployed your own project following the one-click deployment steps in the README, you might encounter constant prompts indicating "updates available." This is because Vercel defaults to creating a new project instead of forking this one, resulting in an inability to detect updates accurately.
195
199
 
196
200
  > **Important**\
197
201
  > We suggest you redeploy using the following steps, [📘 Maintaining Updates with LobeChat Self-Deployment](https://github.com/lobehub/lobe-chat/wiki/Upstream-Sync).
@@ -371,7 +375,8 @@ This project is [MIT](./LICENSE) licensed.
371
375
  [codespaces-shield]: https://github.com/codespaces/badge.svg
372
376
  [contributors-contrib]: https://contrib.rocks/image?repo=lobehub/lobe-chat
373
377
  [contributors-link]: https://github.com/lobehub/lobe-chat/graphs/contributors
374
- [deploy-link]: https://vercel.com/new/clone?repository-link=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat&env=OPENAI_API_KEY&envDescription=Find%20your%20OpenAI%20API%20Key%20by%20click%20the%20right%20Learn%20More%20button.%20%20&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=lobe-chat&repository-name=lobe-chat
378
+ [deploy-button-image]: https://vercel.com/button
379
+ [deploy-link]: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat&env=OPENAI_API_KEY&envDescription=Find%20your%20OpenAI%20API%20Key%20by%20click%20the%20right%20Learn%20More%20button.&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=lobe-chat&repository-name=lobe-chat
375
380
  [discord-link]: https://discord.gg/AYFPHvv2jT
376
381
  [discord-shield]: https://img.shields.io/discord/1127171173982154893?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=flat-square
377
382
  [discord-shield-badge]: https://img.shields.io/discord/1127171173982154893?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=for-the-badge
package/README.zh-CN.md CHANGED
@@ -178,7 +178,7 @@ LobeChat 提供了两种独特的主题模式 - 明亮模式和暗黑模式,
178
178
 
179
179
  ## 🛳 开箱即用
180
180
 
181
- LobeChat 提供了 Vercel 的 [自托管版本][deploy-link] 和 [Docker 镜像][docker-release-link],这使你可以在几分钟内构建自己的聊天机器人,无需任何基础知识。
181
+ LobeChat 提供了 Vercel 的 自托管版本 和 [Docker 镜像][docker-release-link],这使你可以在几分钟内构建自己的聊天机器人,无需任何基础知识。
182
182
 
183
183
  <br/>
184
184
 
@@ -187,10 +187,16 @@ LobeChat 提供了 Vercel 的 [自托管版本][deploy-link] 和 [Docker 镜像]
187
187
  如果想在 Vercel 上部署该服务,可以按照以下步骤进行操作:
188
188
 
189
189
  - 准备好你的 [OpenAI API Key](https://platform.openai.com/account/api-keys) 。
190
- - 点击下方按钮开始部署: Deploy with Vercel,直接使用 GitHub 账号登录即可,记得在环境变量页填入 API Key 和页面访问密码 CODE;
190
+ - 点击下方按钮开始部署: Deploy with Vercel,直接使用 GitHub 账号登录即可,记得在环境变量页填入 `OPENAI_API_KEY` (必填) and `ACCESS_CODE`(推荐);
191
191
  - 部署完毕后,即可开始使用;
192
192
  - 绑定自定义域名(可选):Vercel 分配的域名 DNS 在某些区域被污染了,绑定自定义域名即可直连。
193
193
 
194
+ <div align="center">
195
+
196
+ [![][deploy-button-image]][deploy-link]
197
+
198
+ </div>
199
+
194
200
  #### 保持更新
195
201
 
196
202
  如果你根据 README 中的一键部署步骤部署了自己的项目,你可能会发现总是被提示 “有可用更新”。这是因为 Vercel 默认为你创建新项目而非 fork 本项目,这将导致无法准确检测更新。
@@ -373,7 +379,8 @@ This project is [MIT](./LICENSE) licensed.
373
379
  [codespaces-shield]: https://github.com/codespaces/badge.svg
374
380
  [contributors-contrib]: https://contrib.rocks/image?repo=lobehub/lobe-chat
375
381
  [contributors-link]: https://github.com/lobehub/lobe-chat/graphs/contributors
376
- [deploy-link]: https://vercel.com/new/clone?repository-link=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat&env=OPENAI_API_KEY&envDescription=Find%20your%20OpenAI%20API%20Key%20by%20click%20the%20right%20Learn%20More%20button.%20%20&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=lobe-chat&repository-name=lobe-chat
382
+ [deploy-button-image]: https://vercel.com/button
383
+ [deploy-link]: https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Flobehub%2Flobe-chat&env=OPENAI_API_KEY&envDescription=Find%20your%20OpenAI%20API%20Key%20by%20click%20the%20right%20Learn%20More%20button.&envLink=https%3A%2F%2Fplatform.openai.com%2Faccount%2Fapi-keys&project-name=lobe-chat&repository-name=lobe-chat
377
384
  [discord-link]: https://discord.gg/AYFPHvv2jT
378
385
  [discord-shield]: https://img.shields.io/discord/1127171173982154893?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=flat-square
379
386
  [discord-shield-badge]: https://img.shields.io/discord/1127171173982154893?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=for-the-badge
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.89.5",
3
+ "version": "0.89.6",
4
4
  "description": "An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application",
5
5
  "keywords": [
6
6
  "chatbot",
@@ -13,7 +13,7 @@ import ChatInput from './features/ChatInput';
13
13
  import SideBar from './features/SideBar';
14
14
  import Layout from './layout.desktop';
15
15
 
16
- const Mobile: FC = dynamic(() => import('../(mobile)')) as FC;
16
+ const Mobile: FC = dynamic(() => import('../(mobile)'), { ssr: false }) as FC;
17
17
 
18
18
  const DesktopPage = memo(() => (
19
19
  <ResponsiveIndex Mobile={Mobile}>
@@ -8,7 +8,7 @@ import ResponsiveIndex from '@/components/ResponsiveIndex';
8
8
  import EditPage from '../features/EditPage';
9
9
  import Layout from './layout.desktop';
10
10
 
11
- const Mobile: FC = dynamic(() => import('../(mobile)')) as FC;
11
+ const Mobile: FC = dynamic(() => import('../(mobile)'), { ssr: false }) as FC;
12
12
 
13
13
  const ChatSettings = memo(() => (
14
14
  <ResponsiveIndex Mobile={Mobile}>
@@ -11,7 +11,8 @@ import { AgentsMarketIndexItem } from '@/types/market';
11
11
  import Index from '../index';
12
12
  import Layout from './layout.desktop';
13
13
 
14
- const Mobile: FC = dynamic(() => import('../(mobile)')) as FC;
14
+ const Mobile: FC = dynamic(() => import('../(mobile)'), { ssr: false }) as FC;
15
+
15
16
  export default memo<{ defaultAgents?: AgentsMarketIndexItem[] }>(({ defaultAgents }) => (
16
17
  <ResponsiveIndex Mobile={Mobile}>
17
18
  <Layout>
@@ -8,7 +8,7 @@ import ResponsiveIndex from '@/components/ResponsiveIndex';
8
8
  import Common from '../common';
9
9
  import Layout from './layout.desktop';
10
10
 
11
- const Mobile: FC = dynamic(() => import('../(mobile)')) as FC;
11
+ const Mobile: FC = dynamic(() => import('../(mobile)'), { ssr: false }) as FC;
12
12
 
13
13
  export default memo(() => (
14
14
  <ResponsiveIndex Mobile={Mobile}>
@@ -7,7 +7,7 @@ import ResponsiveLayout from '@/layout/ResponsiveLayout.client';
7
7
 
8
8
  import DesktopLayout from './layout.desktop';
9
9
 
10
- const MobileLayout = dynamic(() => import('../(mobile)/layout.mobile')) as FC;
10
+ const MobileLayout = dynamic(() => import('../(mobile)/layout.mobile'), { ssr: false }) as FC;
11
11
 
12
12
  export default memo(({ children }: PropsWithChildren) => (
13
13
  <ResponsiveLayout Desktop={DesktopLayout} Mobile={MobileLayout}>
@@ -9,7 +9,7 @@ import Footer from './features/Footer';
9
9
  import Showcase from './features/Showcase';
10
10
  import Layout from './layout.desktop';
11
11
 
12
- const Mobile: FC = dynamic(() => import('../(mobile)')) as FC;
12
+ const Mobile: FC = dynamic(() => import('../(mobile)'), { ssr: false }) as FC;
13
13
 
14
14
  export default memo(() => (
15
15
  <ResponsiveIndex Mobile={Mobile}>
@@ -13,7 +13,7 @@ import { SessionLoadingState } from '../store/initialState';
13
13
  import AutoGenerateInput from './AutoGenerateInput';
14
14
  import BackgroundSwatches from './BackgroundSwatches';
15
15
 
16
- const EmojiPicker = dynamic(() => import('@/components/EmojiPicker'));
16
+ const EmojiPicker = dynamic(() => import('@/components/EmojiPicker'), { ssr: false });
17
17
 
18
18
  const AgentMeta = memo(() => {
19
19
  const { t } = useTranslation('setting');
@@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next';
6
6
 
7
7
  import { pluginSelectors, usePluginStore } from '@/store/plugin';
8
8
 
9
- const EmojiPicker = dynamic(() => import('@/components/EmojiPicker'));
9
+ const EmojiPicker = dynamic(() => import('@/components/EmojiPicker'), { ssr: false });
10
10
 
11
11
  const MetaForm = memo<{ form: FormInstance; mode?: 'edit' | 'create' }>(({ form, mode }) => {
12
12
  const isEditMode = mode === 'edit';