mirror of https://github.com/langgenius/dify.git
fix: enable memory add sys query var input
This commit is contained in:
parent
2a2f4cd4d5
commit
ab56e6b6af
|
|
@ -263,7 +263,15 @@ const useConfig = (id: string, payload: LLMNodeType) => {
|
|||
})
|
||||
}, [runInputData, setRunInputData])
|
||||
|
||||
const varInputs = getInputVars(isChatModel ? (inputs.prompt_template as PromptItem[]).map(item => item.text) : [(inputs.prompt_template as PromptItem).text])
|
||||
const allVarStrArr = (() => {
|
||||
const arr = isChatModel ? (inputs.prompt_template as PromptItem[]).map(item => item.text) : [(inputs.prompt_template as PromptItem).text]
|
||||
if (isChatMode && isChatModel && !!inputs.memory)
|
||||
arr.push('{{#sys.query#}}')
|
||||
|
||||
return arr
|
||||
})()
|
||||
|
||||
const varInputs = getInputVars(allVarStrArr)
|
||||
|
||||
return {
|
||||
readOnly,
|
||||
|
|
|
|||
Loading…
Reference in New Issue