fix: update default Document Intelligence API version to 2024-11-30#1669
Open
octo-patch wants to merge 1 commit intomicrosoft:mainfrom
Open
fix: update default Document Intelligence API version to 2024-11-30#1669octo-patch wants to merge 1 commit intomicrosoft:mainfrom
octo-patch wants to merge 1 commit intomicrosoft:mainfrom
Conversation
…ixes microsoft#1473) The default API version was set to the outdated preview 2024-07-31-preview, which is incompatible with Azure AI Foundry Document Intelligence endpoints. Update the default to 2024-11-30 (GA), which is the stable version compatible with both classic and Azure AI Foundry service endpoints.
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 #1473
Problem
The default
api_versioninDocumentIntelligenceConverterwas hardcoded to"2024-07-31-preview", which is an outdated preview version that is not compatible with Azure AI Foundry Document Intelligence service endpoints.The Azure AI Document Intelligence SDK's own default is
"2024-11-30", but markitdown was overriding it with the older preview version. This caused failures when users tried to use markitdown with Azure AI Foundry endpoints without explicitly specifyingdocintel_api_version.Solution
Update the default
api_versionfrom"2024-07-31-preview"to"2024-11-30"(the GA stable version). This version is compatible with both classic Azure Document Intelligence endpoints and Azure AI Foundry service endpoints.Testing
The change is a one-line default value update. Users who need the older preview version can still pass
docintel_api_version="2024-07-31-preview"explicitly. No behavioral changes for users who already specify their api_version.