Nutlope / aicommits

A CLI that writes your git commit messages for you with AI

Home Page:https://www.npmjs.com/package/aicommits

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prompt fine-tuning

KostyaZgara opened this issue · comments

Feature request

It's great to have a properly predefined prompt, but I think it make sense to let users fine-tune provided prompt. For instance, the current suggested commit always starts with a capital letter which I'd like to avoid. So, as I user I want to provide extra instructions to GPT and guide how my commit messages should look like. There are a lot of other use cases where it might be useful.

Example API:

$ aicommits -p "Start commit message from lowercase letter"
$ aicommits --prompt "Don't mention config changes"
$ aicommits -p "Make an accent on user module"

or it can be defined as a global instruction, like

$ aicommits config set prompt="Start commit message from lowercase letter. Put details into the commit body"

Why?

This feature gives me more control over GPT responses and lets me tailor aicommits to my needs. Also, I think this feature unleashes more powerful features which we might don't expect how it could be used

Alternatives

No response

Additional context

No response

commented

@KostyaZgara I've created a new project with your requests. If you're interested, please check it out!
https://github.com/tak-bro/aicommit2