di-sukharev / opencommit

Generate conventional git commit messages with AI in 1 second 🤯🔫
https://www.npmjs.com/package/opencommit
MIT License
5.98k stars 318 forks source link

[Bug]: ollama output erroneously considers sample data #302

Open gudlyf opened 6 months ago

gudlyf commented 6 months ago

Opencommit Version

3.0.11

Node Version

21.6.2

NPM Version

10.2.4

What OS are you seeing the problem on?

Mac

What happened?

When using ollama as the AI engine, it mistakenly considers the example git diff of server.ts in its output.

Example:

Changed port variable case and added support for configurable port in server.ts

Often times, it is the ONLY change it displays. It also ignores formatting, emoji, etc.

(In addition, the mistral LLM is hard-coded for some reason, when it should be possible to try others)

Expected Behavior

Output should look like it does with using OpenAI and not consider the sample input git diff.

Current Behavior

See "What happened."

Possible Solution

Steps to Reproduce

No response

Relevant log output

No response

di-sukharev commented 6 months ago

will be releasing next version this weekend, lets see if this is healed, thank you @digitalstudium <3

di-sukharev commented 6 months ago

done, 3.0.12 is out, please npm i -g opencommit