Skip to content

Commit 8970a7f

Browse files
removed getenv for ollama model setup
1 parent ab8ea29 commit 8970a7f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

cmd/cli/createMsg.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,8 @@ func CreateCommitMsg () {
121121
case "Claude":
122122
commitMsg, err = claude.GenerateCommitMessage(config, changes, apiKey)
123123
case "Ollama":
124-
model := os.Getenv("OLLAMA_MODEL")
125-
if model == "" {
126-
model = "llama3:latest"
127-
}
124+
model := "llama3:latest"
125+
128126
commitMsg, err = ollama.GenerateCommitMessage(config, changes, apiKey, model)
129127
default:
130128
commitMsg, err = grok.GenerateCommitMessage(config, changes, apiKey)

0 commit comments

Comments
 (0)