chathub icon indicating copy to clipboard operation
chathub copied to clipboard

`system` role for GPT

Open victor141516 opened this issue 2 years ago • 3 comments

It would be nice to have an option to change the default system role prompt for the GPT API

I don't know if this is somehow now posible to use this feature right now. I looked for it and didn't found anything, and also I looked at the code and looks like it's not possible

victor141516 avatar Apr 14 '23 09:04 victor141516

What will you use it for?

wong2 avatar Apr 14 '23 09:04 wong2

The system role prompts changes the messages completely based on what you ask.

I use it to generate messages that use a specific strict format. For example I have a super small system prompt that generates only (without any surrounding text) git conventional commit messages. Doing that using an user role prompt is possible but much harder, and usually some of the messages contains extra text around the commit message that breaks the result.

I just thought that having a selector for the role on the prompt library could make this change super easy. I can make a PR for this if you consider a good addition

victor141516 avatar Apr 14 '23 09:04 victor141516

I see. PR is welcomed!

wong2 avatar Apr 14 '23 09:04 wong2