Merge branch 'main' into feat/rag-pipeline

This commit is contained in:
zxhlyh
2025-04-29 16:27:49 +08:00
279 changed files with 4905 additions and 859 deletions

View File

@ -3,9 +3,15 @@ import ChatVariableButton from '@/app/components/workflow/header/chat-variable-b
import {
useNodesReadOnly,
} from '@/app/components/workflow/hooks'
import { useIsChatMode } from '../../hooks'
const ChatVariableTrigger = () => {
const { nodesReadOnly } = useNodesReadOnly()
const isChatMode = useIsChatMode()
if (!isChatMode)
return null
return <ChatVariableButton disabled={nodesReadOnly} />
}
export default memo(ChatVariableTrigger)

View File

@ -74,7 +74,7 @@ const WorkflowPanelOnRight = () => {
)
}
{
showChatVariablePanel && (
showChatVariablePanel && isChatMode && (
<ChatVariablePanel />
)
}