aicommits
aicommits copied to clipboard
Feature: Add flag for custom prompts to increase user flexibility and language support
Advantages of having a flag to allow additional custom prompt:
- More flexibility for the user in configuring how they want the commit message to look like. Sometimes we want to use the full Conventional style, sometimes only parts of it (e.g. having "Refactor" or "Feature" prefix, etc).
- Support for other languages without any changes on the program.
- Save the custom prompt so user don't have to re-type each time.
Will be happy to submit a PR if this is useful 🔥
Language request is a duplicate of https://github.com/Nutlope/aicommits/issues/30
Not sure what you mean by custom prompt.
Language request is a duplicate of #30
Not sure what you mean by custom prompt.
I think that @atikahe means having a flag like --custom='<custom prompt>'
, in order to customize the output
which will be append to promptTemplate as following, like
const newPromptTemplate = promptTemplate + `<custom prompt>`
Relative Code👇🏻 https://github.com/Nutlope/aicommits/blob/2041aee003aec7453cc204676f2b358c3b020eeb/src/utils/openai.ts#L7
Closing as language support was added here: https://github.com/Nutlope/aicommits/pull/96
I'm not sure about the custom prompt one but feel free to open a separate issue for that with more details.