Skip to content

Conversation

@kirisame-wang
Copy link
Contributor

Description

Added support for specifying the Azure Document Intelligence API version via the docintel_api_version parameter in the MarkItDown class. This allows clients to customize the API version used by the converter.

Changes

  • Added docintel_api_version parameter to the MarkItDown class constructor (via kwargs)
  • Passed the specified version to the Document Intelligence converter if provided

Example Usage

md = MarkItDown(
    docintel_endpoint="your_endpoint",
    docintel_credential="your_credential",
    docintel_api_version="2024-11-30"  # Specify preferred API version
)

Related Issues

Closes #1243 — Allow setting api_version for Document Intelligence endpoint

@afourney afourney merged commit 131f0c7 into microsoft:main May 21, 2025
3 checks passed
azhao25 pushed a commit to azhao25/markitdown that referenced this pull request Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow setting api_version for document intelligence endpoint

2 participants