aicommits icon indicating copy to clipboard operation
aicommits copied to clipboard

Feature: Add flag for custom prompts to increase user flexibility and language support

Open atikahe opened this issue 2 years ago • 2 comments

Advantages of having a flag to allow additional custom prompt:

  1. 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).
  2. Support for other languages without any changes on the program.
  3. Save the custom prompt so user don't have to re-type each time.

atikahe avatar Feb 22 '23 10:02 atikahe

Will be happy to submit a PR if this is useful 🔥

atikahe avatar Feb 22 '23 10:02 atikahe

Language request is a duplicate of https://github.com/Nutlope/aicommits/issues/30

Not sure what you mean by custom prompt.

privatenumber avatar Feb 22 '23 11:02 privatenumber

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

law-chain-hot avatar Feb 28 '23 06:02 law-chain-hot

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.

privatenumber avatar Mar 10 '23 23:03 privatenumber