-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Draft] Update azure-ai-translation-text 2.0.0b1 (API Version: 2025-10-01-preview) #43962
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the azure-ai-translation-text SDK to version 2.0.0b1, implementing breaking changes for a new API version (2025-10-01-preview). The update represents a significant refactoring of the translation API.
Key Changes:
- Updates API version from "3.0" to "2025-10-01-preview"
- Refactors request/response models to use new structured input types (TranslateInputItem, TranslationTarget, TranslateBody)
- Removes dictionary and break sentence functionality
- Changes response field names (e.g.,
to→language) - Replaces
setup.pywithpyproject.tomlfor packaging
Reviewed Changes
Copilot reviewed 58 out of 61 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| tsp-location.yaml | Updates API spec location and commit reference |
| tests/test_translation*.py | Refactors tests to use new API models and removes deprecated test cases |
| tests/test_transliteration*.py | Removes edit_distance tests |
| tests/test_get_languages*.py | Updates assertions for new models field instead of dictionary field |
| tests/test_dictionary_*.py | Removes all dictionary-related test files |
| tests/test_break_sentence*.py | Removes all break sentence test files |
| setup.py | Removed in favor of pyproject.toml |
| samples/*.py | Updates sample code for new API patterns |
| azure/ai/translation/text/models/*.py | Major model refactoring with new input/output types |
| azure/ai/translation/text/aio/_operations/*.py | Refactors operations to use new request/response patterns |
| _version.py | Updates version to 2.0.0b1 |
| pyproject.toml | Adds modern Python packaging configuration |
sdk/translation/azure-ai-translation-text/tests/test_translation_async.py
Outdated
Show resolved
Hide resolved
sdk/translation/azure-ai-translation-text/tests/test_translation_async.py
Show resolved
Hide resolved
sdk/translation/azure-ai-translation-text/tests/test_translation_async.py
Show resolved
Hide resolved
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines