Skip to content

Conversation

@jrjrguo
Copy link
Member

@jrjrguo jrjrguo commented Nov 12, 2025

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:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Copilot AI review requested due to automatic review settings November 12, 2025 07:16
@jrjrguo jrjrguo requested a review from MikeyMCZ as a code owner November 12, 2025 07:16
Copilot finished reviewing on behalf of jrjrguo November 12, 2025 07:18
Copy link
Contributor

Copilot AI left a 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., tolanguage)
  • Replaces setup.py with pyproject.toml for 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

@github-actions
Copy link

github-actions bot commented Nov 12, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

azure-ai-translation-text

@jrjrguo jrjrguo requested a review from Han-msft as a code owner November 14, 2025 07:39
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.

1 participant