@lobehub/chat 0.89.5 → 0.89.7
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/.github/workflows/pr-welcome.yml +3 -0
- package/CHANGELOG.md +42 -0
- package/README.md +11 -6
- package/README.zh-CN.md +10 -3
- package/package.json +2 -2
- package/src/app/chat/(desktop)/index.tsx +1 -1
- package/src/app/chat/settings/(desktop)/index.tsx +1 -1
- package/src/app/market/(desktop)/index.tsx +2 -1
- package/src/app/settings/(desktop)/index.tsx +1 -1
- package/src/app/settings/(desktop)/layout.responsive.tsx +1 -1
- package/src/app/welcome/(desktop)/index.tsx +1 -1
- package/src/features/AgentSetting/AgentMeta/index.tsx +1 -1
- package/src/features/PluginDevModal/MetaForm.tsx +1 -1
- package/src/features/SideBar/BottomActions.tsx +5 -1
|
@@ -9,6 +9,9 @@ jobs:
|
|
|
9
9
|
if_merged:
|
|
10
10
|
name: Check merged and add comment
|
|
11
11
|
if: github.event.pull_request.merged == true
|
|
12
|
+
permissions:
|
|
13
|
+
issues: write # for actions-cool/issues-helper to update issues
|
|
14
|
+
pull-requests: write # for actions-cool/issues-helper to update PRs
|
|
12
15
|
runs-on: ubuntu-latest
|
|
13
16
|
steps:
|
|
14
17
|
- uses: actions-cool/pr-welcome@main
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,48 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.89.7](https://github.com/lobehub/lobe-chat/compare/v0.89.6...v0.89.7)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2023-10-16**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix setting tab highlight (fix.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix setting tab highlight (fix, closes [#332](https://github.com/lobehub/lobe-chat/issues/332) ([d288f9d](https://github.com/lobehub/lobe-chat/commit/d288f9d))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
### [Version 0.89.6](https://github.com/lobehub/lobe-chat/compare/v0.89.5...v0.89.6)
|
|
31
|
+
|
|
32
|
+
<sup>Released on **2023-10-15**</sup>
|
|
33
|
+
|
|
34
|
+
<br/>
|
|
35
|
+
|
|
36
|
+
<details>
|
|
37
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
38
|
+
|
|
39
|
+
</details>
|
|
40
|
+
|
|
41
|
+
<div align="right">
|
|
42
|
+
|
|
43
|
+
[](#readme-top)
|
|
44
|
+
|
|
45
|
+
</div>
|
|
46
|
+
|
|
5
47
|
### [Version 0.89.5](https://github.com/lobehub/lobe-chat/compare/v0.89.4...v0.89.5)
|
|
6
48
|
|
|
7
49
|
<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
|
|
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
|
|
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."
|
|
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-
|
|
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 的
|
|
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 账号登录即可,记得在环境变量页填入
|
|
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-
|
|
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.
|
|
3
|
+
"version": "0.89.7",
|
|
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",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"eslint": "^8",
|
|
145
145
|
"husky": "^8",
|
|
146
146
|
"jsdom": "^22",
|
|
147
|
-
"lint-staged": "^
|
|
147
|
+
"lint-staged": "^15.0.0",
|
|
148
148
|
"lodash": "^4",
|
|
149
149
|
"next-pwa": "^5",
|
|
150
150
|
"node-fetch": "^3",
|
|
@@ -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';
|
|
@@ -20,7 +20,7 @@ import { ABOUT, CHANGELOG, DISCORD, FEEDBACK, GITHUB, WIKI } from '@/const/url';
|
|
|
20
20
|
import { useExportConfig } from '@/hooks/useExportConfig';
|
|
21
21
|
import { useImportConfig } from '@/hooks/useImportConfig';
|
|
22
22
|
import { GlobalStore, useGlobalStore } from '@/store/global';
|
|
23
|
-
import { SidebarTabKey } from '@/store/global/initialState';
|
|
23
|
+
import { SettingsTabs, SidebarTabKey } from '@/store/global/initialState';
|
|
24
24
|
|
|
25
25
|
export interface BottomActionProps {
|
|
26
26
|
setTab: GlobalStore['switchSideBar'];
|
|
@@ -120,6 +120,10 @@ const BottomActions = memo<BottomActionProps>(({ tab, setTab }) => {
|
|
|
120
120
|
),
|
|
121
121
|
onClick: () => {
|
|
122
122
|
setTab(SidebarTabKey.Setting);
|
|
123
|
+
useGlobalStore.setState({
|
|
124
|
+
settingsTab: SettingsTabs.Common,
|
|
125
|
+
sidebarKey: SidebarTabKey.Setting,
|
|
126
|
+
});
|
|
123
127
|
router.push('/settings/common');
|
|
124
128
|
},
|
|
125
129
|
},
|