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

system role for GPT #293

Open
victor141516 opened this issue Apr 14, 2023 · 3 comments · May be fixed by #294
Open

system role for GPT #293

victor141516 opened this issue Apr 14, 2023 · 3 comments · May be fixed by #294

Comments

@victor141516
Copy link

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

@wong2
Copy link
Collaborator

wong2 commented Apr 14, 2023

What will you use it for?

@victor141516
Copy link
Author

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

@wong2
Copy link
Collaborator

wong2 commented Apr 14, 2023

I see. PR is welcomed!

@victor141516 victor141516 linked a pull request Apr 14, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants