diff --git a/web/app/components/workflow/nodes/question-classifier/panel.tsx b/web/app/components/workflow/nodes/question-classifier/panel.tsx index 299cfdcf1b..8e27f5dceb 100644 --- a/web/app/components/workflow/nodes/question-classifier/panel.tsx +++ b/web/app/components/workflow/nodes/question-classifier/panel.tsx @@ -1,146 +1,146 @@ -import type { FC } from 'react' -import React from 'react' -import { useTranslation } from 'react-i18next' -import VarReferencePicker from '../_base/components/variable/var-reference-picker' -import ConfigVision from '../_base/components/config-vision' -import useConfig from './use-config' -import ClassList from './components/class-list' -import AdvancedSetting from './components/advanced-setting' -import type { QuestionClassifierNodeType } from './types' -import Field from '@/app/components/workflow/nodes/_base/components/field' -import ModelParameterModal from '@/app/components/header/account-setting/model-provider-page/model-parameter-modal' -import type { NodePanelProps } from '@/app/components/workflow/types' -import Split from '@/app/components/workflow/nodes/_base/components/split' -import OutputVars, { VarItem } from '@/app/components/workflow/nodes/_base/components/output-vars' -import { FieldCollapse } from '@/app/components/workflow/nodes/_base/components/collapse' - -const i18nPrefix = 'workflow.nodes.questionClassifiers' - -const Panel: FC> = ({ - id, - data, -}) => { - const { t } = useTranslation() - - const { - readOnly, - inputs, - handleModelChanged, - isChatMode, - isChatModel, - handleCompletionParamsChange, - handleQueryVarChange, - handleTopicsChange, - hasSetBlockStatus, - availableVars, - availableNodesWithParent, - handleInstructionChange, - handleMemoryChange, - isVisionModel, - handleVisionResolutionChange, - handleVisionResolutionEnabledChange, - filterVar, - handleSortTopic, - } = useConfig(id, data) - - const model = inputs.model - - return ( -
-
- - - - - - - - - - - - -
- - - - -
- - <> - - - - -
-
- ) -} - -export default React.memo(Panel) +import type { FC } from 'react' +import React from 'react' +import { useTranslation } from 'react-i18next' +import VarReferencePicker from '../_base/components/variable/var-reference-picker' +import ConfigVision from '../_base/components/config-vision' +import useConfig from './use-config' +import ClassList from './components/class-list' +import AdvancedSetting from './components/advanced-setting' +import type { QuestionClassifierNodeType } from './types' +import Field from '@/app/components/workflow/nodes/_base/components/field' +import ModelParameterModal from '@/app/components/header/account-setting/model-provider-page/model-parameter-modal' +import type { NodePanelProps } from '@/app/components/workflow/types' +import Split from '@/app/components/workflow/nodes/_base/components/split' +import OutputVars, { VarItem } from '@/app/components/workflow/nodes/_base/components/output-vars' +import { FieldCollapse } from '@/app/components/workflow/nodes/_base/components/collapse' + +const i18nPrefix = 'workflow.nodes.questionClassifiers' + +const Panel: FC> = ({ + id, + data, +}) => { + const { t } = useTranslation() + + const { + readOnly, + inputs, + handleModelChanged, + isChatMode, + isChatModel, + handleCompletionParamsChange, + handleQueryVarChange, + handleTopicsChange, + hasSetBlockStatus, + availableVars, + availableNodesWithParent, + handleInstructionChange, + handleMemoryChange, + isVisionModel, + handleVisionResolutionChange, + handleVisionResolutionEnabledChange, + filterVar, + handleSortTopic, + } = useConfig(id, data) + + const model = inputs.model + + return ( +
+
+ + + + + + + + + + + + +
+ + + + +
+ + <> + + + + +
+
+ ) +} + +export default React.memo(Panel)