fix(api): report effective MarkItDown image OCR capability - #2738
Closed
Sanderhoff-alt wants to merge 1 commit into
Closed
fix(api): report effective MarkItDown image OCR capability#2738Sanderhoff-alt wants to merge 1 commit into
Sanderhoff-alt wants to merge 1 commit into
Conversation
Expose markitdown_image_ocr from /version so clients can distinguish file upload support from usable MarkItDown OCR. Report true only when file uploads and OCR are enabled, MarkItDown is registered, and the parser allowlist permits it. Regenerate clients and cover each gate with integration tests.
Sanderhoff-alt
marked this pull request as ready for review
July 16, 2026 10:00
Collaborator
|
I'd prefer to not expose the markitdown flag. maybe a better alternative is to expose if image (or some format) is supported or not as flag for now I'll close until we have clear use case |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
features.markitdown_image_ocrfromGET /versionso clients can distinguish general file upload support from usable MarkItDown image OCR.Why
The optional MarkItDown OCR integration was controlled by dedicated server configuration, but
/versiononly exposedfile_upload_api. Clients could determine that the upload endpoint existed but could not determine whether image OCR was actually available. The missing capability flag made integrations rely on trial requests and conversion failures.Impact
Clients can now check
version.features.markitdown_image_ocrbefore offering or invoking MarkItDown image OCR. Existing deployments keep the default valuefalseunless the complete runtime capability is available.Validation