Models
The pelikhan/action-continuous-translation
GitHub action supports many different LLM provider
through GenAIScript.
Choosing models
Section titled “Choosing models”You can provide a full mapping of language to model id to control which model is used for each language
through the model_alias
parameter.
For each language, you can specify a translation
and validation
model as a YAML object.
with: model_alias: | translation_fr: github:openai/gpt-4.1 validation_es: openai:gpt-4o
Configuring secrets
Section titled “Configuring secrets”The LLM provider secrets need to be explicitely passed as parameters to the action.
with: github_token: ${{ secrets.GITHUB_TOKEN }} openai_api_key: ${{ secrets.OPENAI_API_KEY }} openai_api_base: ${{ env.OPENAI_API_BASE }} azure_openai_api_endpoint: ${{ env.AZURE_OPENAI_API_ENDPOINT }} azure_openai_api_key: ${{ secrets.AZURE_OPENAI_API_KEY }} azure_openai_subscription_id: ${{ env.AZURE_OPENAI_SUBSCRIPTION_ID }} azure_openai_api_version: ${{ env.AZURE_OPENAI_API_VERSION }} azure_openai_api_credentials: ${{ env.AZURE_OPENAI_API_CREDENTIALS }}
github_token
Section titled “github_token”Type: string
(secret recommended)
Default: ${{ secrets.GITHUB_TOKEN }}
Your GitHub token with at least models: read
permission.
Read further details under the GenAIScript GitHub Models Permissions docs.
openai_api_key
Section titled “openai_api_key”Type: string
(secret recommended)
Default: ${{ secrets.OPENAI_API_KEY }}
Your OpenAI API key. Read more here.
openai_api_base
Section titled “openai_api_base”Type: string
(environment variable recommended)
Default: ${{ env.OPENAI_API_BASE }}
The OpenAI API base URL.
azure_openai_api_endpoint
Section titled “azure_openai_api_endpoint”Type: string
(environment variable recommended)
Default: ${{ env.AZURE_OPENAI_API_ENDPOINT }}
The Azure OpenAI endpoint. To find this endpoint, go to you Azure Portal, open your Azure OpenAI resource. Find Keys and Endpoints and finally copy the Endpoint.
azure_openai_api_key
Section titled “azure_openai_api_key”Type: string
(secret recommended)
Default: ${{ secrets.AZURE_OPENAI_API_KEY }}
The Azure OpenAI API key.
azure_openai_subscription_id
Section titled “azure_openai_subscription_id”Type: string
(environment variable recommended)
Default: ${{ env.AZURE_OPENAI_SUBSCRIPTION_ID }}
The Azure OpenAI subscription ID to list available deployments.
azure_openai_api_version
Section titled “azure_openai_api_version”Type: string
(environment variable recommended)
Default: ${{ env.AZURE_OPENAI_API_VERSION }}
The Azure OpenAI API version.
azure_openai_api_credentials
Section titled “azure_openai_api_credentials”Type: string
(environment variable recommended)
Default: ${{ env.AZURE_OPENAI_API_CREDENTIALS }}
The Azure OpenAI API credentials type.
Leave this as 'default'
unless you have a special Azure setup.