Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Make prompt templates customizable #142

Open
doggy8088 opened this issue Dec 5, 2023 · 5 comments
Open

Feature request: Make prompt templates customizable #142

doggy8088 opened this issue Dec 5, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@doggy8088
Copy link
Contributor

doggy8088 commented Dec 5, 2023

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"
    
@appleboy appleboy added the enhancement New feature or request label Dec 5, 2023
@appleboy
Copy link
Owner

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.

@tisfeng
Copy link

tisfeng commented Jul 3, 2024

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 }}.

@appleboy
Copy link
Owner

appleboy commented Jul 6, 2024

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

codegpt commit --template_vars summarize_prefix=foobar

@tisfeng
Copy link

tisfeng commented Jul 11, 2024

Good, thanks 😊

@jim60105
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants