mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 02:55:55 +08:00
Feat: Add the Experimental text to the option of the large model of the Image2text type of LayoutRecognizeItem (#5495)
### What problem does this PR solve? Feat: Add the Experimental text to the option of the large model of the Image2text type of LayoutRecognizeItem ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
06e0c7d1a9
commit
6a71314d70
@ -20,7 +20,24 @@ const LayoutRecognize = () => {
|
|||||||
value: x,
|
value: x,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
return [...list, ...allOptions[LlmModelType.Image2text]];
|
const image2TextList = allOptions[LlmModelType.Image2text].map((x) => {
|
||||||
|
return {
|
||||||
|
...x,
|
||||||
|
options: x.options.map((y) => {
|
||||||
|
return {
|
||||||
|
...y,
|
||||||
|
label: (
|
||||||
|
<div className="flex justify-between items-center gap-2">
|
||||||
|
{y.label}
|
||||||
|
<span className="text-red-500 text-sm">Experimental</span>
|
||||||
|
</div>
|
||||||
|
),
|
||||||
|
};
|
||||||
|
}),
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
return [...list, ...image2TextList];
|
||||||
}, [allOptions, t]);
|
}, [allOptions, t]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -30,7 +47,7 @@ const LayoutRecognize = () => {
|
|||||||
initialValue={DocumentType.DeepDOC}
|
initialValue={DocumentType.DeepDOC}
|
||||||
tooltip={t('layoutRecognizeTip')}
|
tooltip={t('layoutRecognizeTip')}
|
||||||
>
|
>
|
||||||
<Select options={options} />
|
<Select options={options} popupMatchSelectWidth={false} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user