Skip to content

system role for GPT #293

@victor141516

Description

@victor141516

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

Activity

wong2

wong2 commented on Apr 14, 2023

@wong2
Collaborator

What will you use it for?

victor141516

victor141516 commented on Apr 14, 2023

@victor141516
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

wong2 commented on Apr 14, 2023

@wong2
Collaborator

I see. PR is welcomed!

github-actions

github-actions commented on Jun 26, 2025

@github-actions

This issue is stale because it has been open for 30 days with no activity.

github-actions

github-actions commented on Jul 10, 2025

@github-actions

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @wong2@victor141516

      Issue actions

        `system` role for GPT · Issue #293 · chathub-dev/chathub