feat: answer use selector vars

This commit is contained in:
Joel
2024-03-28 17:41:41 +08:00
parent ead55ce931
commit b8818c90b0
2 changed files with 2 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ const Panel: FC<NodePanelProps<AnswerNodeType>> = ({
value={inputs.answer}
onChange={handleAnswerChange}
variables={inputs.variables.map(item => item.variable)}
nodesOutputVars={availableVarList}
/>
</div>
)

View File

@@ -38,8 +38,6 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
handleModelChanged,
hasSetBlockStatus,
handleCompletionParamsChange,
handleVarListChange,
handleAddVariable,
handleContextVarChange,
filterInputVar,
filterVar,
@@ -155,7 +153,7 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
<ConfigPrompt
readOnly={readOnly}
nodeId={id}
filterVar={filterVar}
filterVar={filterInputVar}
isChatModel={isChatModel}
isChatApp={isChatMode}
isShowContext