sourcegit-scm / sourcegit

Windows/macOS/Linux GUI client for GIT users
MIT License
1.33k stars 134 forks source link

Open AI commit message generation doesn't work #486

Closed srn271 closed 1 month ago

srn271 commented 1 month ago

Hi,

i installed the latest version of SourceGit (8.30) and ollama (0.3.11) and the llama3.1 model.

Whenever i try to generate a commit message, it only outputs a hyphen ("-") per staged file into the subject field. So i tried the commitollama extension for vscode and there it works.

My settings: Server: http://localhost:11434/api/generate Model: llama3.1 API Key: (empty)

Is there any log file that i can investigate?

love-linger commented 1 month ago

change the server to OpenAI compatible layer http://localhost:11434/v1/chat/completions

love-linger commented 1 month ago

https://ollama.com/blog/openai-compatibility

srn271 commented 1 month ago

That's it! Thank you very much!

Great response time!