Closed Lodour closed 1 year ago
There is indeed a message sent to OpenAI But currently I am using the turbo-3.5 model, while aicommits uses the davinci-3 model. Although turbo is cheaper and faster than davinci, the accuracy of the messages is still to be checked, I will come up with prompt edit feature in the next version to improve this problem.
I think I will also add the configuration of switching models (davinci or turbo) in the next version 🧐
@Lodour The latest version 🌟(v1.6.0)🌟 should be resolve this issue request , please have a try. 💪 👀 Let me know if there are still any issues.
aiType
option can choose AI model => https://cz-git.qbb.sh/config/engineer#aitype
Note the consumption of tokens if choose davinci
model@Zhengqbbb Updated! Thanks for the prompt update!
✅ Checklist
📄 System Info
🔎 Description
Concise Description
czg ai
produces the same commit message (shown below) no matter when I add or delete a badge from README.It seems that
czg ai
cannot send the correct add / delete diff to OpenAI, asaicommits
does not have this issue.Expected behavior
The AI-generated message should reflect if I am adding or deleting content.
Steps to reproduce
Initialize the repo and
README.md
with the following content:Remove the badge so the file becomes:
Check the diff and then run
git add .
:Run
czg ai
, check the commit message and abort (note the "add"):Run
aicommits
, check the commit message and abort (note the "Remove"):Screenshots or Screen Recording(if possible)
🔗 Reproduction link / repo:
No response