mirror of
https://github.com/Azure/co-op-translator
synced 2026-08-09 12:00:08 +00:00
24 lines
1.2 KiB
Bash
24 lines
1.2 KiB
Bash
# Azure AI Service Credentials (Required for image translation)
|
|
AZURE_AI_SERVICE_API_KEY="your_azure_ai_service_api_key" # API key from Azure AI Service resource
|
|
AZURE_AI_SERVICE_ENDPOINT="https://your_azure_ai_service_endpoint" # Endpoint from Azure AI Service resource
|
|
|
|
# Optional fallback set example (index 1)
|
|
AZURE_AI_SERVICE_API_KEY_1="your_azure_ai_service_api_key_1"
|
|
AZURE_AI_SERVICE_ENDPOINT_1="https://your_azure_ai_service_endpoint_1"
|
|
|
|
# Azure OpenAI Credentials (Required for text translation)
|
|
AZURE_OPENAI_API_KEY="your_azure_openai_api_key"
|
|
AZURE_OPENAI_ENDPOINT="https://your_azure_openai_endpoint"
|
|
AZURE_OPENAI_MODEL_NAME="your_model_name"
|
|
AZURE_OPENAI_CHAT_DEPLOYMENT_NAME="your_deployment_name"
|
|
AZURE_OPENAI_API_VERSION="your_api_version"
|
|
|
|
# Optional fallback sets: duplicate the full AZURE_OPENAI_* set with suffix _1/_2 (same index for all variables)
|
|
|
|
# OpenAI Credentials
|
|
OPENAI_API_KEY="your_openai_api_key"
|
|
OPENAI_ORG_ID="your_openai_org_id"
|
|
OPENAI_CHAT_MODEL_ID="your_chat_model_id(ex. gpt-4o)"
|
|
OPENAI_BASE_URL="https://api.openai.com/v1 (If you don't have a custom base URL, you can delete this line, then it will use the default base URL)"
|
|
|
|
# Optional fallback sets: duplicate the full OPENAI_* set with suffix _1/_2 (same index for all variables) |