Documentation
References
Supported Model Providers

Supported Model Providers

OpenAI (opens in a new tab)

Example of Workflow Setting
gpt-translate.yml
- name: Run GPT Translate
  if: contains(github.event.comment.body, '/gpt-translate')
  uses: 3ru/gpt-translate@master
  with:
    apikey: ${{ secrets.OPENAI_API_KEY }}
    provider: 'openai'
    model: 'gpt-4o'

Groq (opens in a new tab)

Example of Workflow Setting
ℹ️

Groq is supported via OpenAI API compatibility (opens in a new tab). Therefore, provider should be openai.

gpt-translate.yml
- name: Run GPT Translate
  if: contains(github.event.comment.body, '/gpt-translate')
  uses: 3ru/gpt-translate@master
  with:
    apikey: ${{ secrets.OPENAI_API_KEY }}
    provider: 'openai'
    model: 'llama3-8b-8192'

Perplexity (opens in a new tab)

Example of Workflow Setting
ℹ️

Perplexity is supported via OpenAI API compatibility. Therefore, provider should be openai.

gpt-translate.yml
- name: Run GPT Translate
  if: contains(github.event.comment.body, '/gpt-translate')
  uses: 3ru/gpt-translate@master
  with:
    apikey: ${{ secrets.OPENAI_API_KEY }}
    provider: 'openai'
    model: 'llama-3-sonar-large-32k-chat'

Fireworks (opens in a new tab)

Example of Workflow Setting
ℹ️

Fireworks is supported via OpenAI API compatibility. Therefore, provider should be openai.

gpt-translate.yml
- name: Run GPT Translate
  if: contains(github.event.comment.body, '/gpt-translate')
  uses: 3ru/gpt-translate@master
  with:
    apikey: ${{ secrets.OPENAI_API_KEY }}
    provider: 'openai'
    model: 'accounts/fireworks/models/firefunction-v2'

Azure (opens in a new tab)

Example of Workflow Setting
gpt-translate.yml
- name: Run GPT Translate
  if: contains(github.event.comment.body, '/gpt-translate')
  uses: 3ru/gpt-translate@master
  with:
    apikey: ${{ secrets.AZURE_API_KEY }}
    provider: 'azure'
    model: 'your-deployment-name'

Set your Azure resource name in the Actions secrets variable AZURE_RESOURCE_NAME.

Anthropic (opens in a new tab)

Example of Workflow Setting
gpt-translate.yml
- name: Run GPT Translate
  if: contains(github.event.comment.body, '/gpt-translate')
  uses: 3ru/gpt-translate@master
  with:
    apikey: ${{ secrets.ANTHROPIC_API_KEY }}
    provider: 'anthropic'
    model: 'claude-3-5-sonnet-20240620'

Google Generative AI (opens in a new tab)

Example of Workflow Setting
gpt-translate.yml
- name: Run GPT Translate
  if: contains(github.event.comment.body, '/gpt-translate')
  uses: 3ru/gpt-translate@master
  with:
    apikey: ${{ secrets.GOOGLE_GENERATIVE_AI_API_KEY }}
    provider: 'google'
    model: 'models/gemini-1.5-pro'

Mistral (opens in a new tab)

Example of Workflow Setting
gpt-translate.yml
- name: Run GPT Translate
  if: contains(github.event.comment.body, '/gpt-translate')
  uses: 3ru/gpt-translate@master
  with:
    apikey: ${{ secrets.MISTRAL_API_KEY }}
    provider: 'mistral'
    model: 'open-mistral-7b'

Cohere (opens in a new tab)

Example of Workflow Setting
gpt-translate.yml
- name: Run GPT Translate
  if: contains(github.event.comment.body, '/gpt-translate')
  uses: 3ru/gpt-translate@master
  with:
    apikey: ${{ secrets.COHERE_API_KEY }}
    provider: 'cohere'
    model: 'command-r-plus'