From 00398ed3bc9b9756a105dede965ff72bbaf24a98 Mon Sep 17 00:00:00 2001 From: Octopus Date: Mon, 6 Apr 2026 13:29:18 +0800 Subject: [PATCH] fix: update default Document Intelligence API version to 2024-11-30 (fixes #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. --- .../src/markitdown/converters/_doc_intel_converter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/markitdown/src/markitdown/converters/_doc_intel_converter.py b/packages/markitdown/src/markitdown/converters/_doc_intel_converter.py index fd843f231..a1090af95 100644 --- a/packages/markitdown/src/markitdown/converters/_doc_intel_converter.py +++ b/packages/markitdown/src/markitdown/converters/_doc_intel_converter.py @@ -134,7 +134,7 @@ def __init__( self, *, endpoint: str, - api_version: str = "2024-07-31-preview", + api_version: str = "2024-11-30", credential: AzureKeyCredential | TokenCredential | None = None, file_types: List[DocumentIntelligenceFileType] = [ DocumentIntelligenceFileType.DOCX, @@ -152,7 +152,7 @@ def __init__( Args: endpoint (str): The endpoint for the Document Intelligence service. - api_version (str): The API version to use. Defaults to "2024-07-31-preview". + api_version (str): The API version to use. Defaults to "2024-11-30". credential (AzureKeyCredential | TokenCredential | None): The credential to use for authentication. file_types (List[DocumentIntelligenceFileType]): The file types to accept. Defaults to all supported file types. """