From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/workflow/nodes/question-classifier/node.tsx | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/app/components/workflow/nodes/question-classifier/node.tsx b/app/components/workflow/nodes/question-classifier/node.tsx index 87ec68b..8ca721f 100644 --- a/app/components/workflow/nodes/question-classifier/node.tsx +++ b/app/components/workflow/nodes/question-classifier/node.tsx @@ -9,14 +9,13 @@ useTextGenerationCurrentProviderAndModelAndModelList, } from '@/app/components/header/account-setting/model-provider-page/hooks' import ModelSelector from '@/app/components/header/account-setting/model-provider-page/model-selector' -import ReadonlyInputWithSelectVar from '../_base/components/readonly-input-with-select-var' const i18nPrefix = 'workflow.nodes.questionClassifiers' const Node: FC<NodeProps<QuestionClassifierNodeType>> = (props) => { const { t } = useTranslation() - const { data, id } = props + const { data } = props const { provider, name: modelId } = data.model // const tempTopics = data.topics const topics = data.classes @@ -33,7 +32,6 @@ {hasSetModel && ( <ModelSelector defaultModel={{ provider, model: modelId }} - triggerClassName='!h-6 !rounded-md' modelList={textGenerationModelList} readonly /> @@ -48,12 +46,7 @@ > <InfoPanel title={`${t(`${i18nPrefix}.class`)} ${index + 1}`} - content={ - <ReadonlyInputWithSelectVar - value={topic.name} - nodeId={id} - /> - } + content={topic.name} /> <NodeSourceHandle {...props} -- Gitblit v1.8.0