Skip to content

Commit 9e41121

Browse files
authored
Merge pull request #70 from adeeshperera/main
2 parents 2a2bf89 + 12bdb45 commit 9e41121

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

cmd/cli/createMsg.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"github.com/dfanso/commit-msg/internal/gemini"
1212
"github.com/dfanso/commit-msg/internal/git"
1313
"github.com/dfanso/commit-msg/internal/grok"
14+
"github.com/dfanso/commit-msg/internal/groq"
1415
"github.com/dfanso/commit-msg/internal/ollama"
1516
"github.com/dfanso/commit-msg/internal/stats"
1617
"github.com/dfanso/commit-msg/pkg/types"
@@ -120,6 +121,8 @@ func CreateCommitMsg () {
120121

121122
case "Claude":
122123
commitMsg, err = claude.GenerateCommitMessage(config, changes, apiKey)
124+
case "Groq":
125+
commitMsg, err = groq.GenerateCommitMessage(config, changes, apiKey)
123126
case "Ollama":
124127
model := "llama3:latest"
125128

@@ -138,6 +141,8 @@ func CreateCommitMsg () {
138141
pterm.Error.Printf("OpenAI API error. Check your OPENAI_API_KEY environment variable or run: commit llm setup\n")
139142
case "Claude":
140143
pterm.Error.Printf("Claude API error. Check your CLAUDE_API_KEY environment variable or run: commit llm setup\n")
144+
case "Groq":
145+
pterm.Error.Printf("Groq API error. Check your GROQ_API_KEY environment variable or run: commit llm setup\n")
141146
case "Grok":
142147
pterm.Error.Printf("Grok API error. Check your GROK_API_KEY environment variable or run: commit llm setup\n")
143148
default:

cmd/cli/llmSetup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
func SetupLLM() error {
1313

14-
providers := []string{"OpenAI", "Claude", "Gemini", "Grok", "Ollama"}
14+
providers := []string{"OpenAI", "Claude", "Gemini", "Grok", "Groq", "Ollama"}
1515
prompt := promptui.Select{
1616
Label: "Select LLM",
1717
Items: providers,

0 commit comments

Comments
 (0)