opencommit
opencommit copied to clipboard
[Bug]: ollama output erroneously considers sample data
trafficstars
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
- Possibly need to specify to ollama that the sample git diff is, indeed, a sample.
- Ensure the correct git diff is considered, and in its entirety (it seems to skip many changes)
- Consider a
OC_OLLAMA_MODELvariable rather than hard-codedmistralLLM.
Steps to Reproduce
No response
Relevant log output
No response
will be releasing next version this weekend, lets see if this is healed, thank you @digitalstudium <3
done, 3.0.12 is out, please npm i -g opencommit