fix: use sys query instead user query

This commit is contained in:
Joel 2024-04-02 18:46:44 +08:00
parent fbdf2ba839
commit fb2fa625b4
2 changed files with 3 additions and 5 deletions

View File

@ -58,7 +58,6 @@ const Editor: FC<Props> = ({
const { eventEmitter } = useEventEmitterContextContext()
const isShowHistory = !isChatModel && isChatApp
const isShowQuery = isShowHistory
const ref = useRef<HTMLDivElement>(null)
const {
@ -155,8 +154,8 @@ const Editor: FC<Props> = ({
},
}}
queryBlock={{
show: justVar ? false : isShowQuery,
selectable: !hasSetBlockStatus?.query,
show: false, // use [sys.query] instead of query block
selectable: false,
}}
workflowVariableBlock={{
show: true,

View File

@ -19,7 +19,6 @@ import ResultPanel from '@/app/components/workflow/run/result-panel'
import TooltipPlus from '@/app/components/base/tooltip-plus'
import { HelpCircle } from '@/app/components/base/icons/src/vender/line/general'
import Editor from '@/app/components/workflow/nodes/_base/components/prompt/editor'
import { QUERY_PLACEHOLDER_TEXT } from '@/app/components/base/prompt-editor/constants'
const i18nPrefix = 'workflow.nodes.llm'
const Panel: FC<NodePanelProps<LLMNodeType>> = ({
@ -190,7 +189,7 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
<HelpCircle className='w-3.5 h-3.5 text-gray-400' />
</TooltipPlus>
</div>}
value={QUERY_PLACEHOLDER_TEXT}
value={'{{#sys.query#}}'}
onChange={() => { }}
readOnly
isShowContext={false}