diff --git a/web/app/components/workflow/nodes/llm/node.tsx b/web/app/components/workflow/nodes/llm/node.tsx index 69372a4a54..521ac05dd4 100644 --- a/web/app/components/workflow/nodes/llm/node.tsx +++ b/web/app/components/workflow/nodes/llm/node.tsx @@ -14,13 +14,16 @@ const Node: FC> = ({ const { textGenerationModelList, } = useTextGenerationCurrentProviderAndModelAndModelList() + const hasSetModel = provider && modelId return (
- + {hasSetModel && ( + + )}
) } diff --git a/web/app/components/workflow/nodes/question-classifier/node.tsx b/web/app/components/workflow/nodes/question-classifier/node.tsx index 431c1ba810..8680880d8e 100644 --- a/web/app/components/workflow/nodes/question-classifier/node.tsx +++ b/web/app/components/workflow/nodes/question-classifier/node.tsx @@ -22,13 +22,17 @@ const Node: FC> = (props) => { const { textGenerationModelList, } = useTextGenerationCurrentProviderAndModelAndModelList() + const hasSetModel = provider && modelId + return (
- + {hasSetModel && ( + + )}
{topics.map((topic, index) => (