Add --docintel-api-version to CLI and document default behavior#1563
Open
kei-yamazaki wants to merge 1 commit intomicrosoft:mainfrom
Open
Add --docintel-api-version to CLI and document default behavior#1563kei-yamazaki wants to merge 1 commit intomicrosoft:mainfrom
--docintel-api-version to CLI and document default behavior#1563kei-yamazaki wants to merge 1 commit intomicrosoft:mainfrom
Conversation
|
Remove UI layers |
|
|
||
| markitdown = MarkItDown(**markitdown_kwargs) | ||
| else: | ||
| markitdown = MarkItDown(enable_plugins=args.use_plugins) |
Samayyy-1112
suggested changes
Feb 20, 2026
|
|
||
| markitdown = MarkItDown(**markitdown_kwargs) | ||
| else: | ||
| markitdown = MarkItDown(enable_plugins=args.use_plugins) |
| assert result.returncode != 0 | ||
| assert "--docintel-api-version requires --use-docintel." in result.stdout | ||
|
|
||
|
|
tipex-16
approved these changes
Feb 24, 2026
|
Good |
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
This PR adds a new CLI option,
--docintel-api-version, so users can explicitly choose the Azure Document Intelligence API version when running with--use-docintel.Changes
--docintel-api-versionto the CLI.MarkItDown(..., docintel_api_version=...).2024-07-31-previewwhen the option is not provided.--docintel-api-versionis only accepted with--use-docintel.Why
Document Intelligence API versions can differ by environment and rollout timing.
Allowing explicit version selection improves reproducibility and makes debugging easier.
Backward compatibility
Example
markitdown input.pdf -d -e "<document_intelligence_endpoint>" --docintel-api-version 2024-07-31-preview