Skip to content

fix(azure): tolerate TranslatorCredential import changes - #102

Open
nateEc wants to merge 1 commit into
abus-aikorea:mainfrom
nateEc:codex/issue-61-azure-translator-import
Open

fix(azure): tolerate TranslatorCredential import changes#102
nateEc wants to merge 1 commit into
abus-aikorea:mainfrom
nateEc:codex/issue-61-azure-translator-import

Conversation

@nateEc

@nateEc nateEc commented Jul 23, 2026

Copy link
Copy Markdown

Summary

  • Makes TranslatorCredential a compatibility import so app startup does not fail on SDK layout changes.
  • Falls back to the Azure Translator REST API when the SDK client cannot be constructed.
  • Normalizes *.cognitiveservices.azure.com endpoints for REST language and translate calls.

Fixes #61.

Verification

  • python3 -m py_compile app/abus_translate_azure.py

- Make TranslatorCredential a compatibility import instead of a startup requirement.

- Fall back to the Azure Translator REST API when the SDK client cannot be created.

- Normalize cognitiveservices endpoints for REST translate and language calls.

- Verified with python3 -m py_compile app/abus_translate_azure.py.
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.

ImportError: cannot import name TranslatorCredential

1 participant