-
Notifications
You must be signed in to change notification settings - Fork 9
Cannot Create or Edit Group Chat Prompts #29
Description
Describe the bug
It took me an embarrassingly long time to figure this out. I modify my prompts to enforce third person past tense which SOTA LLMs almost always respect right out of the gate. In singular chats it works fine but I was trying to figure out why group chats were all over the place with tense and POV at the start, despite the initial scenario text being 3rd person past, and having to edit every character's entry until the LLM finally got the pattern. In going to the logs, I was seeing the beginning of a prompt that wasn't the one I had setup as system default.
I could not find any prompt that matched that among the stock ones in the Prompt Editor.
I work in much older systems than Rust or Typescript (think like COBOL) but poking around the files, I found the group chat prompt under
src-tauri\src\chat_manager\prompt_engine.rs
I'm not going to pretend to know Rust, but from references like PromptType::GroupChatPrompt and PromptType::GroupChatRoleplayPrompt in different files, it's clear that group chats get a different system prompt than singular chats and I can't find a way to create or edit group chat prompts. Setting an override prompt on a character isn't respected within a group chat (makes sense).
I actually think the PromptType is a fantastic design. Group chats need extra handling that individual chats don't (they want to devolve into pandemonium). Not to mention the conversational versus roleplay variants on both group chats and reply helper have different needs. I think the Prompt Editor just needs to include the other types of prompts not displayed and that, maybe from a dropdown, the user can pick what PromptType a prompt they've created is supposed to be. That's probably more complicated to add than I'm thinking, but it's the kind of thing power users would expect to be able to do. Tweaking group chat prompts to get a particular model to behave better is par for the course with group chat shenanigans that some models handle better than others.
Version
- Pre-Release v0.1.139 (windows-cpu)