Prompt Flexibility #135
Replies: 2 comments 4 replies
-
Heya, the prompt moderation stuff in stablecog.py and viewhandler.py is running a function ( Lines 133 to 157 in 15d41f3 On line 155, this is where the words in negative_prompt_prefix (as z ) are added to the beginning of the negative prompt.You can edit this function to do prompt prefix/suffix, too. I do this as a hobby, too. I'm no programmer, no knowledge of good practices or fundamentals, so a lot of the code is "hm this feels right, and it works". |
Beta Was this translation helpful? Give feedback.
-
Well, my trial and error skills and google skills have pretty much broken for the day. I got as far as changing the name before I broke it pretty bad trying to move it to a suffix, glad to have had backups lol. Move the Z and the Y, didn't break anything but didn't work either. So now I'm scanning other files to find anything I need to move as well. Prolly something really simple I'm over looking and will notice if I come back bright eyed and bushy tailed. Should be easier than adding a whole prompt suffix I would imagine... Really though that may be out of my depth but it's not gonna stop me from trying... Well, least til my wife gets mad at me for wasting a week off in front of a PC. TBH if that happens at the rate I'm going and the rate I get distracted I may just adopt a "if it ain't broke don't fix it" attitude. |
Beta Was this translation helpful? Give feedback.
-
The issue I'm having/trying to solve is in bold for anyone who just wants to get to the meat of it.
I've been toying around adding and subtracting things that I don't feel is the fit for me or need in my bot (like hyperlinks, loras, etc). I've done pretty good up until now... I've run into a road block and if someone wants to point me in the right direction or help in anyway. it'd be appreciated.
So my issue... The config file has a negative prompt prefix. Since with this kinda stuff it matters if its prefix or suffix and I've been trying, and failing to add a suffix. I've also been trying to add a positive prompt suffix & prefix to no avail. Just been opening files looking for anything and everything that references prompts to try and at least find where the edit should happen
This is a hobby for me, so it may be somewhere obvious, but I've just been opening things in notepad++ and scanning for what references it that keeps popping the mismatch and rewriting it.
Anyone point me in the right direction on this? or is anyone already working on it/done with it and I'm just wasting my time?
Beta Was this translation helpful? Give feedback.
All reactions