deiucanta / chatpad

Not just another ChatGPT user-interface!
https://chatpad.ai
GNU Affero General Public License v3.0
1.36k stars 253 forks source link

send custom prompts with system role #24

Open rudism opened 1 year ago

rudism commented 1 year ago

For your consideration...

Adds a nullable promptId property to the chat database entity to keep track of which prompt a chat was launched from, and changes the behavior of the prompt play button so that it will send the user's prompt with the system role at the beginning of a new prompt-based chat (instead of the current behavior where the user's prompt is immediately sent as a user role message when a prompt play button is clicked).

closes #19

deiucanta commented 1 year ago

Thanks for the PR!

My vision for this has two parts

  1. When "playing" a prompt, it will create a new chat, and populate the textarea with the prompt message. For this, we need a global store like Zustand.
  2. Inside the OpenAI settings modal, we should have a new field for the default system prompt. This will be stored inside the database, inside the general settings object.

Can you update the PR to do this?

Supernova3339 commented 1 year ago

Thanks for the PR!

My vision for this has two parts

  1. When "playing" a prompt, it will create a new chat, and populate the textarea with the prompt message. For this, we need a global store like Zustand.
  2. Inside the OpenAI settings modal, we should have a new field for the default system prompt. This will be stored inside the database, inside the general settings object.

Can you update the PR to do this?

two weeks to a month ( after current workload and big work project ) and I can add in the default system prompt I'd do it sooner but I'm swamped right now :(