Skip to content

Commit Groq AI is a Visual Studio Code extension that uses the Groq API to enhance the code commit process.

License

Notifications You must be signed in to change notification settings

FrancoStino/commitgroq

Repository files navigation

Commit Groq AI


Version Installs Rating License


Commit Groq AI is a Visual Studio Code extension that uses the Groq API to enhance the code commit process.

Configuration

To use Commit Groq, you need to configure your Groq API key. Follow these steps:

  1. Get an API key from Groq (if you don't have one already).
  2. Click on Sparkle icon on Source Control Bar.
  3. Insert your Free or Paid API key.
  4. Select Model if it's not already selected.
  5. Enjoy.

Features

Commit Groq Demo

  • Automatic generation of commit messages based on modified code.
  • Code analysis for improvement suggestions before committing.
  • Seamless integration with Git workflow in VS Code.
  • Ability to translate commit messages into multiple languages.

Usage

  1. Make your code changes as usual.
  2. When you're ready to commit, use the "Commit Groq AI" command from the command palette CTRL+SHIFT+P or CMD+SHIFT+P.
  3. The extension will generate a commit message based on your changes.
  4. Review and modify the message if necessary, then proceed with the commit.

Settings

This extension contributes the following settings:

  • Model: You can select the model from the plugin configuration on settings.
Models Provider Type
gemma-7b-it Google Cloud
gemma2-9b-it Google Cloud
llama3-groq-70b-8192-tool-use-preview Groq Cloud
llama3-groq-8b-8192-tool-use-preview Groq Cloud
llama-3.1-70b-versatile Meta Cloud
llama-3.1-8b-instant Meta Cloud
llama-guard-3-8b Meta Cloud
llama3-70b-8192 Meta Cloud
llama3-8b-8192 Meta Cloud
llama-3.2-11b-text-preview Meta Cloud
llama-3.2-90b-text-preview Meta Cloud
llama-3.2-3b-preview Meta Cloud
llama-3.2-11b-vision-preview Meta Cloud
llama-3.2-1b-preview Meta Cloud
mixtral-8x7b-32768 Mistral AI Cloud
  • Custom Description: It allows you to add a description to the commit message.

  • Use Emojis: It allows you to enable or disable the use of emojis in commit messages.

  • Custom Emojis: It allows you to write down the emojis you want to use in the next template object in the VSCode config.json.

"commitgroq.commitEmojis": {
"feat": "",
"fix": "🐛",
"docs": "📝",
"style": "💎",
"refactor": "♻️",
"test": "🧪",
"chore": "📦",
"revert": ""
}
  • Custom Summary Prompt: The prompt that will be used to generate the summary of all git diff.

  • Custom Commit Prompt: The prompt that will be used to generate the commit message.

  • Custom Summary Temperature: The temperature that will be used to generate the summary of all git diff.

  • Custom Commit Temperature: The temperature that will be used to generate the commit message.

  • Force Commit Lowercase: It allows you to enable or disable the lowercase of the commit message.

  • Force Commit Without dot at the end: It allows you to enable or disable the commit message without dot at the end.

  • Commit Language: It allows you to select the language for the commit message translation.

    Language
    🇬🇧 English
    🇨🇳 Mandarin Chinese
    🇮🇳 Hindi
    🇪🇸 Spanish
    🇫🇷 French
    🇮🇹 Italian
    🇸🇦 Arabic
    🇧🇩 Bengali
    🇷🇺 Russian
    🇵🇹 Portuguese
    🇯🇵 Japanese

Reset API Key

  1. CTRL+SHIFT+P or CMD+SHIFT+P
  2. Type "Reset Groq API Key"

Get Models

  1. Go to settings -> Search for "Commit Groq AI" -> Model
  2. Click on link "Get Groq Models"
OR
  1. CTRL+SHIFT+P or CMD+SHIFT+P
  2. Type "Get Groq Models"

Known Issues

There are currently no known issues. If you encounter any problems, please open an issue on our GitHub repository.


For more information


Happy coding with Commit Groq AI!

About

Commit Groq AI is a Visual Studio Code extension that uses the Groq API to enhance the code commit process.

Resources

License

Stars

Watchers

Forks