Fix: Set embedded models during form initialization. (#14889)

### What problem does this PR solve?

Fix: Set embedded models during form initialization.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2026-05-13 16:34:25 +08:00
committed by GitHub
parent 8b53960819
commit bbb0798c41

View File

@@ -106,7 +106,10 @@ export function InputForm({ onOk }: IModalProps<any>) {
if (parseType === ParseType.BuiltIn) {
form.setValue('pipeline_id', '');
}
}, [parseType, form]);
if (tenantInfo?.embd_id) {
form.setValue('embedding_model', tenantInfo?.embd_id);
}
}, [parseType, form, tenantInfo]);
return (
<Form {...form}>