Gemini goodies
My Simple JB π¦
Download HERE.
Old version (for 1206) Version for Claude 3.7 Sonnet (cache friendly)
This is the jb I use for the "classical" User-Assistant RP with Gemini Pro 0205 for single character cards. It has a lot of issues but I hope it helps someone to build their own JB. Please do not use this JB blindly, it's just an example. Refer to the "Credits" for the other people JBs and explanations I took some (all) things from.
To use this JB:
- This JB written from the Gemini's POV, so every instruction there is set to the Assistant role. You will need the relatively new Silly Tavern for it. I use staging branch updated in late November 2024.
- Keep in mind, that I have every lore book article as well as character description and my persona wrapped in appropriate XML tags (<{{char}}></{{char}}>, <{{user}}></{{user}}>, etc.).
- (new) The
(o)
in the title of the prompt means optional. - π| Summary (o) adds the summary into the
<context>
section, so turn this on only if you have the summary and ONLY if you turned off auto-injection of summary (Summarize
-Summary Settings
-Injection Position
-None (not injected)
). - π| Prefill Placebo (o) is the thingy to help with the filter. I don't think it helps TBH, but it makes Gemini a bit more... let's say, mature, in certain situations. It's standalone and can be combined with the prefill freely.
- The prefill part. I don't use it all the time and I mix it often as I have found that it makes the loops worse.
- ‡οΈπ¦| Prefill START (o) and ‴οΈπ¦| Prefill END (o) need to be on if you want to use ANY toggle in the prefill.
- (new) In the version for 02-05 the ‡οΈπ¦| Prefill START (o) no longer have anti-repetition placebo in it, so at least one toggle with βΊοΈ must be selected! - The βΊοΈπ€| Prefill Small (o) is for smaller replies, but generally 02-05doesn't need it as much as the previous version.
- The βΊοΈπ| Prefill Story (o) is for pushing story forward.
- The βΊοΈπ²| Prefill NPC (o) is beneficial if Gemini ignors the NPCs in the scene.
- (new) The βΊοΈπ| Prefill Anti-Loop (o) is the anti-repetiton placebo.
- (new) The βΊοΈπ·| Prefill Anti-Echo (o) sometimes helps with looping on repeating User's actions and words at the beginning.
- (new) The βΊοΈπ―| Prefill Anti-User (o) generally not needed, but sometimes (especially at the start of the chat) can be beneficial.
- (new) The βΊοΈπ| Prefill Thinking (o) will prompt 02-05 to think similar to reasoning models. Don't forget that you WILL NEED a regex to cut the thinking from the context after.
- ‡οΈπ¦| Prefill START (o) and ‴οΈπ¦| Prefill END (o) need to be on if you want to use ANY toggle in the prefill.
- Two new prompts in the prompt manager, they are hidden by default
- πβ¨π» injects the card and your persona at the depth @13. If you want to use it, you WILL NEED to turn off the prompts π| Description, β¨| Personality and π»| Persona!
- π| Thinking (o) is an experimental thinking template, I honestly don't know if it helps or just a placebo. It is compatable with βΊοΈπ| Prefill Thinking (o), but βΊοΈπ| Prefill Thinking (o) can be used without it and then Gemini will be freestyling in its thinking.
Issues:
A lot, lol. IDK how to deal with them, mostly I just swipe and redact. Oh, and after around 12-16k context in appropriate moment in RP (between the scenes for example) it's better to summarize and hide the old messages.
Regex for <thinking>
Do not forget that you MUST cut the <thinking>
output from the prompt!
Use this regex (not mine):
Affects:
β
AI Input
Other Options:
β
Run On Edit
Ephemerality:
β
Alter Outgoing Prompt
Min Depth:
Unlimited
Max Depth:
Unlimited
You can check the β
Alter Chat Display
too if you don't want to see it or you can use my custom CSS + regexes to hide the <thinking>
block under the <details>
automatically. There are also regexes (and lines in the CSS) that make <infoblock>
output to look neat.
Download .zip with customCSS for thinking and infoblock (for SillyTavern, export regexes and copy-paste custom CSS adding to the existing one)
Summary prompt for the slowburn story
Tested on Gemini Pro 0205. Be ready to trim and rewrite some parts, do not use the result blindly. CYOA and NoAss friendly.
95% of this is not mine, I just combined two prompts together and changed the format a little bit. The original versions can be found here and here.
Injection Template
Wrap your summary in this.
Pretty Chat for Canon NoAss
Outdated, please use the extension by Monblant
Anon's idea of avatar+message style for your NoAss adventures with a lot of characters.
Outdated .zip here.
1. Make a folder named avatars
in the public
folder of your Silly Tavern.
2. Add in the avatars
folder .png avatars for all characters, personas and NPCs, the name of the character must match the file name. So, Maria.png
, DEUS.png
, Nyarl-chan.png
and so on.
- Unfortunately it works with only one avatar per name, keep that in mind.
- if you want to use another format (like .jpg) you will need to change the regex and use only that format for all avatars.
3. Import two regexes and copy-paste custom CSS to your custom CSS.
4. !Important! Arrange these regexes in the list so that User: first
is higher than the Avatars v0.7 canon
.
5. In your user settings remove the checkmark from β Message Timer
and check β
Hide Chat Avatars
.
6. Enjoy. Don't forget to enable NoAss.
Regex against too breathy speech for 02-05
This regex prevents looping on ellipses, changing the constructions like this:
With my... *guidance*.
becomes With my guidance.
I find your... *unconventional*... manner of speech engaging.
becomes I find your unconventional manner of speech engaging.
Find Regex:
Replace With:
Min Depth: Unlimited
Max Depth: Unlimited
β
AI Output
β
Alter Chat Display
β
Alter Outgoing Prompt
Or you can download it here and then import in your ST.
Credits
absolutelysfw
Agent B
AI Brain
AvaniJB
Character Provider
chuunijb
Fluff Preset
gemini-qr
how2claude
marinaraspaghetti
mini-popka
Writing Style
and everyone else!
If I fail to credit someone, you can write me and I will add them.
RiP 1206 you were the goodiest boi of them all