Skip to content

Models

The pelikhan/action-continuous-translation GitHub action supports many different LLM provider through GenAIScript.

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

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 }}

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.

Type: string (secret recommended)
Default: ${{ secrets.OPENAI_API_KEY }}

Your OpenAI API key. Read more here.

Type: string (environment variable recommended)
Default: ${{ env.OPENAI_API_BASE }}

The OpenAI API base URL.

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.

Type: string (secret recommended)
Default: ${{ secrets.AZURE_OPENAI_API_KEY }}

The Azure OpenAI API key.

Type: string (environment variable recommended)
Default: ${{ env.AZURE_OPENAI_SUBSCRIPTION_ID }}

The Azure OpenAI subscription ID to list available deployments.

Type: string (environment variable recommended)
Default: ${{ env.AZURE_OPENAI_API_VERSION }}

The Azure OpenAI API version.

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.