From 5229a76f689b59daae921d26ffaa2ec1654e1fb1 Mon Sep 17 00:00:00 2001 From: balibabu Date: Fri, 7 Mar 2025 11:03:58 +0800 Subject: [PATCH] Fix: Remove the document language parameter. #5640 (#5728) ### What problem does this PR solve? Fix: Remove the document language parameter. #5686 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- .../knowledge-setting/configuration/index.tsx | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/web/src/pages/add-knowledge/components/knowledge-setting/configuration/index.tsx b/web/src/pages/add-knowledge/components/knowledge-setting/configuration/index.tsx index 87da9427b..4d142cdb4 100644 --- a/web/src/pages/add-knowledge/components/knowledge-setting/configuration/index.tsx +++ b/web/src/pages/add-knowledge/components/knowledge-setting/configuration/index.tsx @@ -2,7 +2,7 @@ import { DocumentParserType } from '@/constants/knowledge'; import { useTranslate } from '@/hooks/common-hooks'; import { normFile } from '@/utils/file-util'; import { PlusOutlined } from '@ant-design/icons'; -import { Button, Form, Input, Radio, Select, Space, Upload } from 'antd'; +import { Button, Form, Input, Radio, Space, Upload } from 'antd'; import { FormInstance } from 'antd/lib'; import { useEffect, useMemo, useState } from 'react'; import { @@ -27,8 +27,6 @@ import { TagConfiguration } from './tag'; import styles from '../index.less'; -const { Option } = Select; - const ConfigurationComponentMap = { [DocumentParserType.Naive]: NaiveConfiguration, [DocumentParserType.Qa]: QAConfiguration, @@ -99,19 +97,6 @@ export const ConfigurationForm = ({ form }: { form: FormInstance }) => { - - -