fix: streamline document parsing settings

This commit is contained in:
lofyer
2026-08-13 00:08:15 +08:00
parent d33df979da
commit 86b63406c2
21 changed files with 1160 additions and 509 deletions
+5 -2
View File
@@ -83,7 +83,8 @@ import type {
DocumentOcrResult,
DocumentParsingDiagnostic,
DocumentParsingSettings,
DocumentParsingSnapshot
DocumentParsingSnapshot,
DocumentParsingTestPurpose
} from './document-parsing-contracts'
import type {
KnowledgeChunkDeleteInput,
@@ -1159,7 +1160,9 @@ export type DesktopApi = {
update: (
input: DocumentParsingSettings
) => Promise<DocumentParsingSnapshot>
test: () => Promise<DocumentParsingDiagnostic | undefined>
test: (
purpose: DocumentParsingTestPurpose
) => Promise<DocumentParsingDiagnostic | undefined>
installOcrModel: (
modelId: string
) => Promise<DocumentParsingSnapshot>