Skip to content

feat: support API version selection for Document Intelligence #1253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 21, 2025

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
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