Azure AI စတင်ပြင်ဆင်ခြင်း¶
Use this guide when you want to configure Azure OpenAI for text translation and Azure AI Vision for image text extraction.
Prerequisites¶
- An Azure subscription.
- Permission to create or use Azure AI resources and model deployments.
- A project in Azure AI Foundry or equivalent access to Azure OpenAI and Azure AI Vision resources.
Create an Azure AI Project¶
- Azure AI Foundry ကို ဖွင့်ပါ။
- ပရောဂျက် အသစ် တစ်ခု ဖန်တီးရန် သို့မဟုတ် ရွေးချယ်ပါ။
- ပရောဂျက်အတွက် AI hub တစ်ခု ဖန်တီးရန် သို့မဟုတ် ရွေးချယ်ပါ။
- ဖန်တီးပြီးနောက် ပရောဂျက် အကျဉ်းချုံး ကို ဖွင့်ပါ။
Deploy an Azure OpenAI Model¶
- ပရောဂျက်တွင် Models + endpoints ကို ဖွင့်ပါ။
- Deploy model ကို ရွေးပါ။
- ဥပမာ
gpt-4oအဖြစ် GPT မော်ဒယ် တစ်ခု ရွေးချယ်ပါ။ - မော်ဒယ်ကို တပ်ဆင်ပါ။
- endpoint, deployment name, model name, API key, နှင့် API version များကို မှတ်ထားပါ။
Note
Azure OpenAI API version သည် Azure AI Foundry တွင် ပြသထားသော model version နှင့် သီးခြားပါသည်။ သင့် deployment အတွက် ထောက်ပံ့ထားသော API version ကို ရွေးချယ်ပါ။
Configure Azure AI Vision¶
Image translation uses Azure AI Vision to extract text from source images before the text is translated.
In your Azure AI project, find the Azure AI Services key and endpoint.

Record:
- Azure AI Service endpoint
- Azure AI Service API key
Environment Variables¶
Add the credentials to your .env file or CI secrets.
# Azure AI Vision, ပုံဘာသာပြန်ခြင်းအတွက် လိုအပ်သည်
AZURE_AI_SERVICE_API_KEY="..."
AZURE_AI_SERVICE_ENDPOINT="https://<resource>.cognitiveservices.azure.com/"
# Azure OpenAI, စာသားဘာသာပြန်ခြင်းအတွက် လိုအပ်သည်
AZURE_OPENAI_API_KEY="..."
AZURE_OPENAI_ENDPOINT="https://<resource>.openai.azure.com/"
AZURE_OPENAI_MODEL_NAME="gpt-4o"
AZURE_OPENAI_CHAT_DEPLOYMENT_NAME="<deployment>"
AZURE_OPENAI_API_VERSION="2024-12-01-preview"
Co-op Translator also supports optional fallback credential sets. Duplicate a complete provider set with suffixes such as _1 or _2; all variables in a fallback set must share the same suffix.
AZURE_OPENAI_API_KEY_1="..."
AZURE_OPENAI_ENDPOINT_1="https://<resource-1>.openai.azure.com/"
AZURE_OPENAI_MODEL_NAME_1="gpt-4o"
AZURE_OPENAI_CHAT_DEPLOYMENT_NAME_1="<deployment-1>"
AZURE_OPENAI_API_VERSION_1="2024-12-01-preview"
Next Steps¶
- Return to ဆက်တင် to set up local or CI environment variables.
- Use CLI Reference for translation commands.
- Use GitHub Actions to automate translation pull requests.