CodeGPT icon indicating copy to clipboard operation
CodeGPT copied to clipboard

Feature request: Make prompt templates customizable

Open doggy8088 opened this issue 2 years ago • 5 comments

I'd like to suggestion providing a way to customize the prompt template when user needed.

Here is the proposal:


Provide two ways to customize the prompt templates:

  1. Check if the folder exists: $HOME/.config/codegpt/prompt_templates

    If the folder exists, read the templates from the folder automatically.

  2. Set codegpt.prompt_template_path config

    codegpt config set codegpt.prompt_templates_path "$HOME/.config/codegpt/prompt_templates"
    

doggy8088 avatar Dec 05 '23 03:12 doggy8088

Recently, our team discussed this requirement, which will allow users to customize templates in the future and connect prompts based on the variables within the template.

appleboy avatar Dec 26 '23 03:12 appleboy

Hi, is there any progress on this feature?

I also hope to be able to customize the prompt. It would be best to support user input for the commit message label because sometimes CodeGPT might provide an incorrect label.

I want to guide it to generate the correct commit message by manually specifying the label.

For example, codegpt commit --feat means generating a commit message with feat: {{ .summarize_title }}.

codegpt commit --fix means generating a commit message with fix: {{ .summarize_title }}.

tisfeng avatar Jul 03 '24 10:07 tisfeng

@tisfeng you can try the following command to change the summarize prefix:

codegpt commit --template_vars summarize_prefix=foobar

appleboy avatar Jul 06 '24 04:07 appleboy

Good, thanks 😊

tisfeng avatar Jul 11 '24 14:07 tisfeng

Has there been any progress on this proposal? 👀

I wrote some LLM prompts that better meet my needs, and I hope there is a way to apply them.

jim60105 avatar Sep 30 '24 09:09 jim60105