fix: thumbnails are too large in the chat box #818 (#819)

### What problem does this PR solve?

fix: thumbnails are too large in the chat box #818

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2024-05-17 14:16:55 +08:00
committed by GitHub
parent c3bc72dfd9
commit 4ca176bd41
7 changed files with 43 additions and 15 deletions

View File

@ -6,6 +6,7 @@ import {
useSubmitKnowledgeConfiguration,
} from './hooks';
import LayoutRecognize from '@/components/layout-recognize';
import MaxTokenNumber from '@/components/max-token-number';
import { useTranslate } from '@/hooks/commonHooks';
import { FormInstance } from 'antd/lib';
@ -99,11 +100,17 @@ const ConfigurationForm = ({ form }: { form: FormInstance }) => {
const parserId = getFieldValue('parser_id');
if (parserId === 'naive') {
return <MaxTokenNumber></MaxTokenNumber>;
return (
<>
<MaxTokenNumber></MaxTokenNumber>
<LayoutRecognize></LayoutRecognize>
</>
);
}
return null;
}}
</Form.Item>
<Form.Item>
<div className={styles.buttonWrapper}>
<Space>