Open doggy8088 opened 11 months ago
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.
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 you can try the following command to change the summarize prefix:
codegpt commit --template_vars summarize_prefix=foobar
Good, thanks 😊
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.
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:
Check if the folder exists:
$HOME/.config/codegpt/prompt_templates
If the folder exists, read the templates from the folder automatically.
Set
codegpt.prompt_template_path
config