[Translation] Update azure-ai-translation-document to 2026-03-01 API version#47837
Draft
jrjrguo wants to merge 3 commits into
Draft
[Translation] Update azure-ai-translation-document to 2026-03-01 API version#47837jrjrguo wants to merge 3 commits into
jrjrguo wants to merge 3 commits into
Conversation
Adds custom translation model deployment name support (deployment_name on TranslationTarget/begin_translation, DocumentStatus, and single-document translate) and image translation support (translate_text_within_image plus image-scan reporting fields). Introduces the BatchOptions model, sets the default service API version to 2026-03-01, adds samples and unit tests, and bumps the version to 1.2.0b1.
added 2 commits
July 4, 2026 17:10
… test harness Adds deployment_name and image-translation live tests (sync + async) and the image test document. Refactors the test storage helpers to authenticate to Azure Storage with a token credential (DefaultAzureCredential) and pass plain container URLs to the Document Translation service (accessed via the Translator resource's managed identity), so tests run without account-key/shared-key access.
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.
Summary
Updates
azure-ai-translation-documentto the Document Translation2026-03-01service API version, mirroring the .NET regeneration in Azure/azure-sdk-for-net#60219. Released as the 2.0.0 GA for Python.Features Added
deployment_nameonTranslationTargetand as a keyword onbegin_translation(batch).deployment_namekeyword onSingleDocumentTranslationClient.translate(single document).deployment_nameonDocumentStatus(the deployment used).translate_text_within_imagekeyword onbegin_translationandtranslate.BatchOptionsmodel (carriestranslate_text_within_image) onStartTranslationDetails.options.DocumentStatus(image_characters_detected,images_charged,total_image_scans_succeeded,total_image_scans_failed) andTranslationStatusSummary(total_image_scans_succeeded,total_image_scans_failed,total_images_charged).Breaking Changes
2024-05-01to2026-03-01. Passapi_version="2024-05-01"to retain the previous behavior.Other
2.0.0(GA);tsp-location.yamlupdated to the 2026-03-01 spec. Note: Python follows its own version line (previous GA was 1.1.0), so this is 2.0.0 rather than matching .NET's 3.0.0.Notes for reviewers
typespec-pythonemitter restructures the client and would break this package's customizations. A follow-up full regeneration will require aligning the emitter with the customization layer.