Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cmd/cli/createMsg.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/dfanso/commit-msg/internal/gemini"
"github.com/dfanso/commit-msg/internal/git"
"github.com/dfanso/commit-msg/internal/grok"
"github.com/dfanso/commit-msg/internal/groq"
"github.com/dfanso/commit-msg/internal/ollama"
"github.com/dfanso/commit-msg/internal/stats"
"github.com/dfanso/commit-msg/pkg/types"
Expand Down Expand Up @@ -120,6 +121,8 @@ func CreateCommitMsg () {

case "Claude":
commitMsg, err = claude.GenerateCommitMessage(config, changes, apiKey)
case "Groq":
commitMsg, err = groq.GenerateCommitMessage(config, changes, apiKey)
case "Ollama":
model := "llama3:latest"

Expand All @@ -138,6 +141,8 @@ func CreateCommitMsg () {
pterm.Error.Printf("OpenAI API error. Check your OPENAI_API_KEY environment variable or run: commit llm setup\n")
case "Claude":
pterm.Error.Printf("Claude API error. Check your CLAUDE_API_KEY environment variable or run: commit llm setup\n")
case "Groq":
pterm.Error.Printf("Groq API error. Check your GROQ_API_KEY environment variable or run: commit llm setup\n")
case "Grok":
pterm.Error.Printf("Grok API error. Check your GROK_API_KEY environment variable or run: commit llm setup\n")
default:
Expand Down
2 changes: 1 addition & 1 deletion cmd/cli/llmSetup.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func SetupLLM() error {

providers := []string{"OpenAI", "Claude", "Gemini", "Grok", "Ollama"}
providers := []string{"OpenAI", "Claude", "Gemini", "Grok", "Groq", "Ollama"}
prompt := promptui.Select{
Label: "Select LLM",
Items: providers,
Expand Down
Loading