fix: make OCR portable and reliable across AMD64 and ARM64 (#519)

* fix: make OCR portable and reliable

* fix: harden OCR installation portability

* fix: pin OCR partials across downloads

* fix: make OCR execution reliably asynchronous

* fix: harden OCR portability and docs routes

* fix: preserve decoder and docs safeguards
This commit is contained in:
SnapOtter
2026-07-15 03:34:24 +08:00
committed by GitHub
parent 58121f205f
commit 991c981529
409 changed files with 67151 additions and 8076 deletions
+5
View File
@@ -36,6 +36,11 @@ export const TOOL_SETTINGS_OVERRIDES: Record<string, unknown> = {
"convert-spreadsheet": { format: "ods" },
"content-aware-resize": { width: 50 },
"ai-canvas-expand": { extendRight: 32 },
// Generated matrices validate route/format contracts, not long-running OCR
// execution. Request the optional tier so model-free test environments fail
// cleanly at ingress instead of saturating their shared CPUs with Tesseract.
ocr: { quality: "balanced" },
"ocr-pdf": { quality: "balanced" },
};
export function defaultSettingsFor(toolId: string): unknown {