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.
  • 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):

βŽ—
βœ“
<thinking?\n?[\s\S]*?\n?<\/thinking>\n?

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.

βŽ—
βœ“
((OOC: Pause the story for this reply. Analyze the story and answer a few questions about it, filling the fact sheet template below. Avoid losing any significant details, especially ones that can be crucial of understanding relationships between characters, accuracy is THE MOST important thing here. Avoid any unnecessary prose - focus on the facts. Add, remove, and update the existing facts as appropriate. Give priority to the information that is likely to be key for the hypothetical scenario continuation.))

<MainCharacters>
- Name: very short description.
</MainCharacters>

<MinorCharacters>
- Name: 1-2 short sentences about them. Role, appearance, speech manner, at least 3 personality traits, important facts.
</MinorCharacters>

<OtherCharacters>
- List of episodic recurrent characters who may or may not be relevant to the story later. Just name and a 2-3 word description.
</OtherCharacters>

<VisitedLocations>
- Location, short description
  - Sublocation (if any): short description
</VisitedLocations>

<MemorableEvents>
- A list of major events and interactions that occurred in the story and have potential for development or mention in further story. This is important. All the necessary information about what happened during the event for the hypothetical scenario continuation in 3 to 5 sentences.
</MemorableEvents>

<PlannedEvents>
- The events that were presented during the story, which are going to happen.
</PlannedEvents>

<Secrets>
- X: hidden/unstated/kept as a secret by Y from Z (do not state the secrets that are already established for characters, write only new ones if any)
</Secrets>

<CurrentQuests>
- A list of current quests (overall main quest of the story, character-related, small side quests).
</CurrentQuests>

<MainCharacterNotes name="X">
- Notes on character development as the story progresses. Short bullet points, clear, concise sentences with all the necessary information. If any, note the changes from how the character is described in the XML tag `<X>`.
</MainCharacterNotes>

<CurrentRelationships>
- Current long-term relationships between characters X and Y in at least 3 sentences (only for recurring characters, omit intermittent ones).
</CurrentRelationships>

<PlotNotes>
- Notes on how to make the plot more interesting and compelling by planning or developing events that may occur in the future: introducing any potential new elements into the story, including characters, events and further interactions.
  - If necessary, structure this part by grouping notes for story/themes/characters/etc.
</PlotNotes>

Injection Template

Wrap your summary in this.

βŽ—
βœ“
1
2
3
4
5
6
<StoryNotes>
Notes with all relevant information for the plot, events, characters, relationships and topics. This information will help keep the story consistent, track evolution of characters' personality and relationships.

{{summary}}

</StoryNotes>

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:

βŽ—
βœ“
/(?:…|\.\.\.) \*([^*\s]+)\*(?:…|\.\.\.)?/g

Replace With:

βŽ—
βœ“
$1

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.

[email protected] My cards

RiP 1206 you were the goodiest boi of them all

Edit
Pub: 20 Jan 2025 19:02 UTC
Edit: 09 Mar 2025 14:02 UTC
Views: 317