Feat/swappable modes #4
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added a dropdown in the UI header to switch between different system prompt modes (like Conversation, Coder, etc.).
I was getting annoyed when I was trying to get info on something but it would only answer with a couple words and ran me in circles. Instead of needing to change via the txt file every time, this should be much easier.
I added a few just super quick example prompts.
code/prompts
folder (which you can set inserver.py
).UI Changes:
<select>
dropdown toindex.html
(in the header)./get_modes
API endpoint.Backend Logic:
SpeechPipelineManager
.server.py
now just calls methods on the manager via/get_modes
and/set_mode
API endpoints.code/system_prompt.txt
.I also have a placeholder settings button in there for adding the ability to edit prompts, change models, or voices or such. I wasn't going to leave it in because I didn't do the logic yet, but then the UI looked weird so I just left it.