mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-12 18:22:48 +03:00
Net-new public /v1/ocr endpoint (CORS -> Zod -> auth -> handler) proxying Mistral OCR, built on OmniRoute's existing moderations pattern: new ocrRegistry (OCR_PROVIDERS/parseOcrModel), handler open-sse/handlers/ocr.ts, route src/app/api/v1/ocr, and v1OcrSchema. Adds a registry-backed "ocr" media serviceKind so Mistral surfaces under an OCR category in the dashboard, plus the ocr endpoint category. Fills the Mistral moderation registry gap (api.mistral.ai/v1/moderations, mistral-moderation-latest). Co-authored-by: Waguri Agent <waguriagent@gmail.com> Inspired-by: https://github.com/decolua/9router/pull/2064