style: gguf model ux

This commit is contained in:
jialin
2025-10-17 10:15:55 +08:00
parent 37a3aa75cc
commit 005295ac97
19 changed files with 203 additions and 89 deletions
+10 -1
View File
@@ -33,6 +33,15 @@ const LocalPathForm: React.FC = () => {
return null;
}
const handleOnBlur = (e: any) => {
form.setFieldsValue({
backend_parameters: [],
backend_version: '',
backend: '',
env: {}
});
};
const handleLocalPathBlur = async (e: any) => {
const value = e.target.value;
if (value === localPathCache.current || !value) {
@@ -89,7 +98,7 @@ const LocalPathForm: React.FC = () => {
<SealInput.Input
allowClear
required
onBlur={handleLocalPathBlur}
onBlur={handleOnBlur}
onFocus={handleOnFocus}
label={intl.formatMessage({ id: 'models.form.filePath' })}
description={<TooltipList list={localPathTipsList}></TooltipList>}