A CLI written in Go language that writes git commit messages or do a code review brief for you using ChatGPT AI (gpt-4o, gpt-4-turbo, gpt-3.5-turbo model) and automatically installs a git prepare-commit-msg hook.
MIT License
1.27k
stars
110
forks
source link
refactor: provider handling and core interfaces #173
commit.go
NewOpenAI
initialization with a switch case for different providerscommit.go
core/openai.go
file definingUsage
,Response
, andGenerative
interfacecore/platform.go
file definingPlatform
type and its methodsCompletion
andGetSummaryPrefix
methods inopenai.go
for thecore.Generative
interfaceCompletion
method tocompletion
inopenai.go