mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-09 12:54:47 +08:00
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:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user