fix: questioin classify memory limit

This commit is contained in:
Joel 2024-03-27 11:06:40 +08:00
parent f9caa09cac
commit 1c05d2ef7f
2 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@ const Panel: FC<NodePanelProps<QuestionClassifierNodeType>> = ({
readOnly,
inputs,
handleModelChanged,
isChatModel,
isChatMode,
handleCompletionParamsChange,
handleQueryVarChange,
handleTopicsChange,
@ -90,7 +90,7 @@ const Panel: FC<NodePanelProps<QuestionClassifierNodeType>> = ({
supportFold
>
<AdvancedSetting
hideMemorySetting={!isChatModel}
hideMemorySetting={!isChatMode}
instruction={inputs.instruction}
onInstructionChange={handleInstructionChange}
memory={inputs.memory}

View File

@ -140,6 +140,7 @@ const useConfig = (id: string, payload: QuestionClassifierNodeType) => {
readOnly,
inputs,
handleModelChanged,
isChatMode,
isChatModel,
handleCompletionParamsChange,
handleQueryVarChange,