Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
c166a573
authored
Aug 15, 2025
by
Archer
Committed by
GitHub
Aug 15, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc (#5472)
* doc * fix: pane undefined * fix: pane undefined
parent
2c911374
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
7 deletions
+24
-7
document/content/docs/upgrading/4-12/4121.mdx
+12
-1
document/data/doc-last-modified.json
+1
-1
projects/app/src/web/core/chat/context/chatSettingContext.tsx
+8
-2
projects/app/src/web/core/chat/context/useChatStore.ts
+3
-3
No files found.
document/content/docs/upgrading/4-12/4121.mdx
View file @
c166a573
---
---
title: 'V4.12.1
(进行中)
'
title: 'V4.12.1'
description: 'FastGPT V4.12.1 更新说明'
description: 'FastGPT V4.12.1 更新说明'
---
---
## 更新指南
### 1. 更新镜像:
- 更新 FastGPT 镜像tag: v4.12.1
- 更新 FastGPT 商业版镜像tag: v4.12.1
- 更新 fastgpt-plugin 镜像 tag: v0.1.10
- mcp_server 无需更新
- Sandbox 无需更新
- AIProxy 无需更新
## 🚀 新增内容
## 🚀 新增内容
1. Prompt 自动生成和优化。
1. Prompt 自动生成和优化。
...
...
document/data/doc-last-modified.json
View file @
c166a573
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
"document/content/docs/upgrading/4-11/4110.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/upgrading/4-11/4110.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/upgrading/4-11/4111.mdx"
:
"2025-08-07T22:49:09+08:00"
,
"document/content/docs/upgrading/4-11/4111.mdx"
:
"2025-08-07T22:49:09+08:00"
,
"document/content/docs/upgrading/4-12/4120.mdx"
:
"2025-08-12T22:45:19+08:00"
,
"document/content/docs/upgrading/4-12/4120.mdx"
:
"2025-08-12T22:45:19+08:00"
,
"document/content/docs/upgrading/4-12/4121.mdx"
:
"2025-08-15T17:
10:04
+08:00"
,
"document/content/docs/upgrading/4-12/4121.mdx"
:
"2025-08-15T17:
56:49
+08:00"
,
"document/content/docs/upgrading/4-8/40.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/40.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/41.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/41.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/42.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/42.mdx"
:
"2025-08-02T19:38:37+08:00"
,
...
...
projects/app/src/web/core/chat/context/chatSettingContext.tsx
View file @
c166a573
...
@@ -9,7 +9,7 @@ import { useChatStore } from '@/web/core/chat/context/useChatStore';
...
@@ -9,7 +9,7 @@ import { useChatStore } from '@/web/core/chat/context/useChatStore';
import
type
{
ChatSettingSchema
}
from
'@fastgpt/global/core/chat/setting/type'
;
import
type
{
ChatSettingSchema
}
from
'@fastgpt/global/core/chat/setting/type'
;
import
{
useRequest2
}
from
'@fastgpt/web/hooks/useRequest'
;
import
{
useRequest2
}
from
'@fastgpt/web/hooks/useRequest'
;
import
{
useRouter
}
from
'next/router'
;
import
{
useRouter
}
from
'next/router'
;
import
{
useCallback
,
useMemo
,
useState
}
from
'react'
;
import
{
useCallback
,
use
Effect
,
use
Memo
,
useState
}
from
'react'
;
import
{
createContext
}
from
'use-context-selector'
;
import
{
createContext
}
from
'use-context-selector'
;
type
ChatSettingReturnType
=
ChatSettingSchema
|
undefined
;
type
ChatSettingReturnType
=
ChatSettingSchema
|
undefined
;
...
@@ -94,9 +94,15 @@ export const ChatSettingContextProvider = ({ children }: { children: React.React
...
@@ -94,9 +94,15 @@ export const ChatSettingContextProvider = ({ children }: { children: React.React
setLastPane
(
newPane
);
setLastPane
(
newPane
);
setLastChatAppId
(
_id
);
setLastChatAppId
(
_id
);
},
},
[
setLastPane
,
chatSettings
?.
appId
,
appId
,
router
,
pane
]
[
pane
,
router
,
setLastPane
,
setLastChatAppId
,
chatSettings
?.
appId
]
);
);
useEffect
(()
=>
{
if
(
!
Object
.
values
(
ChatSidebarPaneEnum
).
includes
(
pane
))
{
handlePaneChange
(
ChatSidebarPaneEnum
.
HOME
);
}
},
[
pane
]);
const
logos
:
Pick
<
ChatSettingSchema
,
'wideLogoUrl'
|
'squareLogoUrl'
>
=
useMemo
(
const
logos
:
Pick
<
ChatSettingSchema
,
'wideLogoUrl'
|
'squareLogoUrl'
>
=
useMemo
(
()
=>
({
()
=>
({
wideLogoUrl
:
chatSettings
?.
wideLogoUrl
,
wideLogoUrl
:
chatSettings
?.
wideLogoUrl
,
...
...
projects/app/src/web/core/chat/context/useChatStore.ts
View file @
c166a573
...
@@ -2,7 +2,7 @@ import { create, createJSONStorage, devtools, persist, immer } from '@fastgpt/we
...
@@ -2,7 +2,7 @@ import { create, createJSONStorage, devtools, persist, immer } from '@fastgpt/we
import
{
getNanoid
}
from
'@fastgpt/global/common/string/tools'
;
import
{
getNanoid
}
from
'@fastgpt/global/common/string/tools'
;
import
{
type
OutLinkChatAuthProps
}
from
'@fastgpt/global/support/permission/chat'
;
import
{
type
OutLinkChatAuthProps
}
from
'@fastgpt/global/support/permission/chat'
;
import
type
{
ChatSourceEnum
}
from
'@fastgpt/global/core/chat/constants'
;
import
type
{
ChatSourceEnum
}
from
'@fastgpt/global/core/chat/constants'
;
import
type
{
ChatSidebarPaneEnum
}
from
'@/pageComponents/chat/constants'
;
import
{
ChatSidebarPaneEnum
}
from
'@/pageComponents/chat/constants'
;
type
State
=
{
type
State
=
{
source
?:
`
${
ChatSourceEnum
}
`
;
source
?:
`
${
ChatSourceEnum
}
`
;
...
@@ -17,7 +17,7 @@ type State = {
...
@@ -17,7 +17,7 @@ type State = {
chatId
:
string
;
chatId
:
string
;
setChatId
:
(
e
?:
string
)
=>
any
;
setChatId
:
(
e
?:
string
)
=>
any
;
lastPane
?
:
ChatSidebarPaneEnum
;
lastPane
:
ChatSidebarPaneEnum
;
setLastPane
:
(
e
:
ChatSidebarPaneEnum
)
=>
any
;
setLastPane
:
(
e
:
ChatSidebarPaneEnum
)
=>
any
;
outLinkAuthData
:
OutLinkChatAuthProps
;
outLinkAuthData
:
OutLinkChatAuthProps
;
...
@@ -116,7 +116,7 @@ export const useChatStore = create<State>()(
...
@@ -116,7 +116,7 @@ export const useChatStore = create<State>()(
state
.
lastChatAppId
=
e
;
state
.
lastChatAppId
=
e
;
});
});
},
},
lastPane
:
undefined
,
lastPane
:
ChatSidebarPaneEnum
.
HOME
,
setLastPane
(
e
)
{
setLastPane
(
e
)
{
set
((
state
)
=>
{
set
((
state
)
=>
{
state
.
lastPane
=
e
;
state
.
lastPane
=
e
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment