mirror of
				https://github.com/infiniflow/ragflow.git
				synced 2025-10-31 17:59:43 +00:00 
			
		
		
		
	### 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)
This commit is contained in:
		
							parent
							
								
									4f9504305a
								
							
						
					
					
						commit
						5229a76f68
					
				| @ -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 }) => { | ||||
|       <Form.Item name="description" label={t('description')}> | ||||
|         <Input /> | ||||
|       </Form.Item> | ||||
|       <Form.Item | ||||
|         label={t('language')} | ||||
|         name="language" | ||||
|         initialValue={'English'} | ||||
|         rules={[{ required: true, message: t('languageMessage') }]} | ||||
|       > | ||||
|         <Select placeholder={t('languagePlaceholder')}> | ||||
|           <Option value="English">{t('english')}</Option> | ||||
|           <Option value="Chinese">{t('chinese')}</Option> | ||||
|           <Option value="Vietnamese">{t('vietnamese')}</Option> | ||||
|           <Option value="Portuguese (Brazil)">{t('portugueseBr')}</Option> | ||||
|         </Select> | ||||
|       </Form.Item> | ||||
|       <Form.Item | ||||
|         name="permission" | ||||
|         label={t('permissions')} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 balibabu
						balibabu