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: Ability to fully customize the system role #19

Open
rudism opened this issue Mar 22, 2023 · 6 comments · May be fixed by #24
Open

Feature request: Ability to fully customize the system role #19

rudism opened this issue Mar 22, 2023 · 6 comments · May be fixed by #24

Comments

@rudism
Copy link

rudism commented Mar 22, 2023

It looks like the system role is either constructed from the personality drop down for regular chats, or hard coded to You are ChatGPT, a large language model trained by OpenAI for prompt-based chats. It would be nice if there were also some way to specify a fully custom system role for a chat session. Maybe when creating a prompt the user could specify whether that prompt should be sent as a user role or the system role.

@Supernova3339
Copy link
Collaborator

Hi, when you play a different prompt this will change the AI's role.

@rudism
Copy link
Author

rudism commented Mar 22, 2023

I'm referring to this system prompt, I would like for the option to customize this instead

"You are ChatGPT, a large language model trained by OpenAI.",

The reason being it allows you to give instructions for the session without also retrieving a response to those instructions (as is the case currently).

@Supernova3339
Copy link
Collaborator

I'm referring to this system prompt, I would like for the option to customize this instead

"You are ChatGPT, a large language model trained by OpenAI.",

The reason being it allows you to give instructions for the session without also retrieving a response to those instructions (as is the case currently).

that is the preloaded prompt, you can change the scenario by adding your own and hitting the "play" button

@rudism
Copy link
Author

rudism commented Mar 23, 2023

Is that how it's intended to work? Because when I hit the play button on a prompt this is what gets sent to OpenAI when I inpsect the browser request:

image

The thing I would like to achieve when I press the play button is, instead of two messages being sent (a system role message with the generic prompt, plus a user role message with my custom prompt), I would like just one message to be sent (a system role message with my custom prompt).

Actually maybe the behavior I'm looking for when I press the play button is to, instead of immediately sending two messages to the API (the generic system role and my prompt as the user role), just open a new chat session without making any API requests yet, then on the first message I send it should send two messages--my custom prompt as the system role and my first chat message as the user role. That way my prompt is given as the pretext for the conversation but the first response from the API will be to what I opened the chat with.

Basically I expected the prompt to set up the chat sessions without having ChatGPT actually respond to the prompt every time. But maybe that wasn't the intent for the "prompt" feature to begin with?

Based on this OpenAI community discussion it sounds like it also might matter whether the system message is sent as the first or last one in the array.

@rudism rudism linked a pull request Mar 23, 2023 that will close this issue
@rudism
Copy link
Author

rudism commented Mar 23, 2023

I've opened #24 with some changes that implement what I'm describing here.

@Supernova3339
Copy link
Collaborator

Supernova3339 commented Mar 23, 2023 via email

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