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

View File

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