feat: remove loading from document table and fixed the issue where gif images could not be uploaded on the configuration page (#122)

* feat: fixed the issue where gif images could not be uploaded on the configuration page

* feat: remove loading from document table
This commit is contained in:
balibabu
2024-03-14 19:22:39 +08:00
committed by GitHub
parent 2ca0dc0fc5
commit 937048e5fb
6 changed files with 25 additions and 23 deletions

View File

@ -55,7 +55,7 @@ const Configuration = () => {
const embeddingModelOptions = useSelectLlmOptions();
const onFinish = async (values: any) => {
const avatar = getBase64FromUploadFileList(values.avatar);
const avatar = await getBase64FromUploadFileList(values.avatar);
dispatch({
type: 'kSModel/updateKb',
payload: {
@ -123,6 +123,7 @@ const Configuration = () => {
<Upload
listType="picture-card"
maxCount={1}
beforeUpload={() => false}
showUploadList={{ showPreviewIcon: false, showRemoveIcon: false }}
>
<button style={{ border: 0, background: 'none' }} type="button">
@ -184,7 +185,7 @@ const Configuration = () => {
{({ getFieldValue }) => {
const parserId = getFieldValue('parser_id');
if (parserId === 'general') {
if (parserId === 'naive') {
return (
<Form.Item label="Chunk token number" tooltip="xxx">
<Flex gap={20} align="center">