mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-04 06:40:29 +08:00
Fix: update LayoutRecognizeFormField to accept ownerTenantId and refactor model handling in LLM requests (#16781)
This commit is contained in:
@@ -32,6 +32,7 @@ export function LayoutRecognizeFormField({
|
||||
showMineruOptions = true,
|
||||
showPaddleocrOptions = true,
|
||||
testId,
|
||||
ownerTenantId,
|
||||
}: {
|
||||
name?: string;
|
||||
horizontal?: boolean;
|
||||
@@ -40,11 +41,15 @@ export function LayoutRecognizeFormField({
|
||||
showMineruOptions?: boolean;
|
||||
showPaddleocrOptions?: boolean;
|
||||
testId?: string;
|
||||
ownerTenantId?: string;
|
||||
}) {
|
||||
const form = useFormContext();
|
||||
|
||||
const { t } = useTranslate('knowledgeDetails');
|
||||
const { data: allAddedModels } = useFetchAllAddedModels();
|
||||
const { data: allAddedModels } = useFetchAllAddedModels(
|
||||
undefined,
|
||||
ownerTenantId,
|
||||
);
|
||||
|
||||
const treeData = useMemo(() => {
|
||||
const list = optionsWithoutLLM
|
||||
|
||||
Reference in New Issue
Block a user