@lobehub/chat 1.47.2 → 1.47.3
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,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.47.3](https://github.com/lobehub/lobe-chat/compare/v1.47.2...v1.47.3)
|
6
|
+
|
7
|
+
<sup>Released on **2025-01-18**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Fix hydration error.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: Fix hydration error, closes [#5502](https://github.com/lobehub/lobe-chat/issues/5502) ([cbe469a](https://github.com/lobehub/lobe-chat/commit/cbe469a))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.47.2](https://github.com/lobehub/lobe-chat/compare/v1.47.1...v1.47.2)
|
6
31
|
|
7
32
|
<sup>Released on **2025-01-17**</sup>
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.47.
|
3
|
+
"version": "1.47.3",
|
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",
|
@@ -39,7 +39,7 @@
|
|
39
39
|
"db:push-test": "NODE_ENV=test drizzle-kit push",
|
40
40
|
"db:studio": "drizzle-kit studio",
|
41
41
|
"db:z-pull": "drizzle-kit introspect",
|
42
|
-
"dev": "next dev --
|
42
|
+
"dev": "next dev --turbopack -p 3010",
|
43
43
|
"docs:i18n": "lobe-i18n md && npm run lint:md && npm run lint:mdx",
|
44
44
|
"docs:seo": "lobe-seo && npm run lint:mdx",
|
45
45
|
"i18n": "npm run workflow:i18n && lobe-i18n",
|
@@ -4,8 +4,7 @@ import urlJoin from 'url-join';
|
|
4
4
|
import { INBOX_SESSION_ID } from '@/const/session';
|
5
5
|
import { useIsMobile } from '@/hooks/useIsMobile';
|
6
6
|
import { useQueryRoute } from '@/hooks/useQueryRoute';
|
7
|
-
import {
|
8
|
-
import { ChatSettingsTabs, SettingsTabs, SidebarTabKey } from '@/store/global/initialState';
|
7
|
+
import { ChatSettingsTabs, SettingsTabs } from '@/store/global/initialState';
|
9
8
|
import { useSessionStore } from '@/store/session';
|
10
9
|
|
11
10
|
export const useOpenChatSettings = (tab: ChatSettingsTabs = ChatSettingsTabs.Meta) => {
|
@@ -15,9 +14,6 @@ export const useOpenChatSettings = (tab: ChatSettingsTabs = ChatSettingsTabs.Met
|
|
15
14
|
|
16
15
|
return useMemo(() => {
|
17
16
|
if (activeId === INBOX_SESSION_ID) {
|
18
|
-
useGlobalStore.setState({
|
19
|
-
sidebarKey: SidebarTabKey.Setting,
|
20
|
-
});
|
21
17
|
return () => router.push(urlJoin('/settings', SettingsTabs.Agent));
|
22
18
|
}
|
23
19
|
if (mobile) {
|
@@ -2,8 +2,6 @@ import { createTRPCClient, httpBatchLink } from '@trpc/client';
|
|
2
2
|
import { createTRPCReact } from '@trpc/react-query';
|
3
3
|
import superjson from 'superjson';
|
4
4
|
|
5
|
-
import { fetchErrorNotification } from '@/components/Error/fetchErrorNotification';
|
6
|
-
import { loginRequired } from '@/components/Error/loginRequiredNotification';
|
7
5
|
import { ModelProvider } from '@/libs/agent-runtime';
|
8
6
|
import type { LambdaRouter } from '@/server/routers/lambda';
|
9
7
|
|
@@ -17,6 +15,9 @@ const links = [
|
|
17
15
|
|
18
16
|
const errorRes: ErrorResponse = await response.clone().json();
|
19
17
|
|
18
|
+
const { loginRequired } = await import('@/components/Error/loginRequiredNotification');
|
19
|
+
const { fetchErrorNotification } = await import('@/components/Error/fetchErrorNotification');
|
20
|
+
|
20
21
|
errorRes.forEach((item) => {
|
21
22
|
const errorData = item.error.json;
|
22
23
|
|