Skip to content

fix(doc-intel): default api_version to None in DocumentIntelligenceConverter - #2267

Open
MeiSiristhebest wants to merge 1 commit into
microsoft:mainfrom
MeiSiristhebest:fix/docintel-default-apiversion
Open

fix(doc-intel): default api_version to None in DocumentIntelligenceConverter#2267
MeiSiristhebest wants to merge 1 commit into
microsoft:mainfrom
MeiSiristhebest:fix/docintel-default-apiversion

Conversation

@MeiSiristhebest

Copy link
Copy Markdown

Description

DocumentIntelligenceConverter previously set a default api_version="2024-07-31-preview". This prevented users from using Azure Document Intelligence SDK's native default API version (e.g. 2024-11-30).

This PR changes the default api_version parameter in DocumentIntelligenceConverter.__init__ to None and passes api_version to DocumentIntelligenceClient only when explicitly specified.

Fixes #1904

…nverter

Do not set a default api_version string in DocumentIntelligenceConverter. If api_version is omitted or None, avoid passing api_version kwarg to DocumentIntelligenceClient so Azure SDK uses its native default version.

Fixes microsoft#1904
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.

DocumentIntelligenceConverter should not set a default api_version

1 participant