wwf
3 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
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}