aicommit2 icon indicating copy to clipboard operation
aicommit2 copied to clipboard

"No commit messages were generated"

Open caiguo37 opened this issue 1 year ago • 7 comments
trafficstars

Bug description

I'm using the local model (ollama with codellama) to generate a commit. It works sometimes and fails sometimes with the warning information: "⚠ No commit messages were generated." 截屏2024-05-19 11 33 49

And if I enable OLLAMA_STREAM, after streaming for a while, a new error message is displayed: Failed to extract messages from response. 截屏2024-05-19 11 35 32

aicommit2 version

1.8.6

Environment

System:
    OS: macOS 14.4.1
    CPU: (10) arm64 Apple M2 Pro
    Memory: 252.88 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.5.0 - ~/.asdf/installs/nodejs/21.5.0/bin/node
    npm: 10.2.4 - ~/.asdf/plugins/nodejs/shims/npm
    pnpm: 9.0.4 - ~/.asdf/shims/pnpm

Can you contribute a fix?

  • [ ] I’m interested in opening a pull request for this issue.

caiguo37 avatar May 19 '24 03:05 caiguo37

Thank you for your interest. There seems to be a problem with parsing messages. I'll fix it as soon as possible

tak-bro avatar May 19 '24 13:05 tak-bro

@caiguo37 I fine-tuned the prompt, but sometimes AI doesn't return the correct commit message. I added the logging option to see the full response message. It support from v1.9.0.

You can set it up with the command below. aicommit2 config set logging=true

tak-bro avatar May 24 '24 04:05 tak-bro

截屏2024-05-24 13 59 38

Didn't see any log generated.

caiguo37 avatar May 24 '24 06:05 caiguo37

success.log fail.log fail2.log success2.log

Using the same content, logs of failure and success. Took a glance, didn't find any difference.

caiguo37 avatar May 24 '24 07:05 caiguo37

Thank you for sharing the error log. I checked and found that the fail case is not correct format of a conventional commit message. In the case of fail.log, the type is git, but it is not an conventional commit type. The message in fail2.log is not in the form of type(scope): description.

(I left a comment on another account, so I wrote again.)

tak-bro avatar May 24 '24 07:05 tak-bro

Hello, I apologize for reopening this conversation, but I'm facing the same problem, however I'm using Perplexity, I'm getting the same message on return: AI is performing a code review⚠ No commit messages were generated

Below is the print of my terminal Image

And here is the generated log.

I'm using the latest version of aicommit2 2.2.3

ribeiroevandro avatar Feb 24 '25 01:02 ribeiroevandro

@ribeiroevandro I'm looking into it, but it might take some time...

tak-bro avatar Mar 25 '25 02:03 tak-bro