andrewyng / translation-agent

MIT License
4.88k stars 564 forks source link

can support Azure openai #43

Open Midnight-719 opened 2 months ago

Midnight-719 commented 2 months ago

Context

What is the purpose of this PR? Is it to

This PR adds support for Azure OpenAI integration. It includes environment variable templates for Azure OpenAI in the .env.sample file and implements the Azure client in src/translation_agent/utils.py.

Changelog

What are the changes made in this PR?

Test plan

Please make sure to do each of the following if applicable to your PR. (If you're not sure about any one of these just ask and we will happily help.)