Skip to content

feat: support API version selection for Document Intelligence#1253

Merged
afourney merged 2 commits into
microsoft:mainfrom
kirisame-wang:main
May 21, 2025
Merged

feat: support API version selection for Document Intelligence#1253
afourney merged 2 commits into
microsoft:mainfrom
kirisame-wang:main

Conversation

@kirisame-wang

Copy link
Copy Markdown
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
…rosoft#1253)

Co-authored-by: Yi-Cheng Wang <yicheng.wang@heph-ai.com>
Co-authored-by: afourney <adamfo@microsoft.com>
claymorenjoyer pushed a commit to claymorenjoyer/markitdowngui that referenced this pull request Jun 15, 2026
…rosoft#1253)

Co-authored-by: Yi-Cheng Wang <yicheng.wang@heph-ai.com>
Co-authored-by: afourney <adamfo@microsoft.com>
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