Repository navigation
feat(cli): support MARKITDOWN_CU_ENDPOINT / MARKITDOWN_DOCINTEL_ENDPOINT - #2358
Merged
Adam Fourney (afourney) merged 3 commits intoSep 1, 2026
Merged
Conversation
…CINTEL_ENDPOINT. Lets an operator configure the Azure endpoint once in the environment, so callers only need --use-cu or -d. Explicit flags still take precedence, and an empty variable is treated as unser. Fixes microsoft#2326.
Contributor
Author
|
@microsoft-github-policy-service agree |
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
Suppressed comments (1)
packages/markitdown/src/markitdown/main.py:222
- The adjacent literals concatenate without whitespace, producing
--use-cu.Pass --cu-endpoint...in the error output. Add a separating space.
"Content Understanding Endpoint (--cu-endpoint) is required when using --use-cu."
"Pass --cu-endpoint or set MARKITDOWN_CU_ENDPOINT."
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
Fixes #2326.
--cu-endpointand-e/--endpointnow fall back toMARKITDOWN_CU_ENDPOINTandMARKITDOWN_DOCINTEL_ENDPOINT, matching howAZURE_API_KEYis already read fromthe environment. This lets the operator configure the endpoint at deploy time
instead of every caller passing it on the command line.
"".Tests:
TestEndpointEnvVarsinpackages/markitdown/tests/test_cu_converter.py