From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +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