Fix: update LayoutRecognizeFormField to accept ownerTenantId and refactor model handling in LLM requests (#16781)

This commit is contained in:
chanx
2026-07-10 09:36:25 +08:00
committed by GitHub
parent 0095fa048f
commit 8236f2cabb
15 changed files with 47 additions and 20 deletions

View File

@@ -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