Skip to content

Commit f2805ef

Browse files
Added Claude Case that was missing
1 parent f77b288 commit f2805ef

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66

77
"github.com/atotto/clipboard"
88
"github.com/dfanso/commit-msg/src/chatgpt"
9+
"github.com/dfanso/commit-msg/src/claude"
910
"github.com/dfanso/commit-msg/src/gemini"
1011
"github.com/dfanso/commit-msg/src/grok"
1112
"github.com/dfanso/commit-msg/src/internal/display"
@@ -115,6 +116,8 @@ func main() {
115116
commitMsg, err = gemini.GenerateCommitMessage(config, changes, apiKey)
116117
} else if os.Getenv("COMMIT_LLM") == "chatgpt" {
117118
commitMsg, err = chatgpt.GenerateCommitMessage(config, changes, apiKey)
119+
} else if os.Getenv("COMMIT_LLM") == "claude" {
120+
commitMsg, err = claude.GenerateCommitMessage(config, changes, apiKey)
118121
} else {
119122
commitMsg, err = grok.GenerateCommitMessage(config, changes, apiKey)
120123
}

0 commit comments

Comments
 (0)