Download

Beta

Enterprise Docs Blog Workflows Styles
GitHub

Generative AI
3 min

How to set up RelaGit to use generative AI features.

You may not know it, but RelaGit can generate commit messages for you based on the changes you’ve made. This can be done through a number of AI models from OpenAI, Google Gemini, or Anthropic’s Claude.

Note

While the flagship models from each provider are made available, we do not recommend picking them as they may have higher costs per request. On average each completion from RelaGit is around 500-1000 tokens.

Picking a provider

To get started, you’ll need to pick a provider to use. Head to Settings > AI > Provider

RelaGit settings, AI tab with Gemini 1.5 Pro selected.

RelaGit settings, AI tab with Gemini 1.5 Pro selected.

You can then scroll down and paste in your API key for the provider you’ve chosen.

RelaGit settings, AI tab with API key input field.
RelaGit settings, AI tab with API key input field.

Generating a commit message

Once you’ve set up your provider, you can generate a commit message by clicking the “Generate Commit Details” button in the commit message input field.

RelaGit commit message input field with 'Generate Commit Details' button hovered.

RelaGit commit message input field with “Generate Commit Details” button hovered.