Moping at Slaude
it's over
~3.4-4K Context, Automatic Vectors Summarizer, Unfiltered Response from Claude
If you want to cope: https://rentry.org/slaudecope/
For slowburners: https://rentry.org/hn3bd
Spermack is modified so it can only send up to 2 messages to Claude DMs. If the context size exceeds 3,200, It will split <char>, and <scenario>, from <chat>. Therefore, the chat context can reach up to 3K context while still having space for the character and scenario details. It is still advisable to not use high token count character cards. After some testing Claude in Slack seems to have a maximum of 4096 context tokens. However, It will lower its context size down to 3.4-3.6K depending on how NSFW your roleplay. This is due to <math> instructions taking up tokens.
Why still Hope with Slaude?
Advantages
- Better in roleplay than Local or Turbo.
- Built in Vector Storage Summarizer. For slowburners
Disadvantages
- 4096 context size. It may be even lower depending on the nature of your roleplay.
- Short response. It is to ensure that more messages are stored within the low context memory.
Steps
Installing slaudehope and Claude in Slack
Download slaudehope
- Pull the Repository or Download the zip from the github page.
- Extract the .zip file and/or Go to the main folder.
Claude in Slack Set-Up
- Register on Slack (https://slack.com) and make a workgroup. If you already have a Slack account, make a new one for this.
- Add Claude (https://www.anthropic.com/claude-in-slack) to your workgroup.
- Go to Slack Connect and Create a Pro workspace (30 day trial).
- Chat Claude on DMs and Accept its Terms of Service.
Local Proxy Set-Up
- Open the config.js file in a text editor. You need to change the following values:
- TOKEN - In the workspace you created, press F12, go to the network tab (very top of inspect element tabs), once in that tab send a message in any channel, and look for the request starting with chat.postMessage, click it. Click the request(FF)/payload(Chromium) option at the top of the new section, we are looking for a token there starting with xoxc-. Copy it completely(it is the rest of the single line starting with xoxc-) and paste it into TOKEN.
- COOKIE - Copy the cookies ENCODED in the url. Go to your workspace and press F12. Go to the storage(FF)/application(Chromium) option at the top of the inspect element tab, look for cookies called d, with a value starting with xoxd-. Copy its value completely and paste it into the COOKIE.
- TEAM_ID - The workspace name you set is the TEAM_ID. In the upper left corner, click on the name of your workspace with a down arrow next to it. There will be a link of your workspace "(TEAM_ID)"
.workspace.com, Paste the value into TEAM_ID. - CLAUDE - Go to the your DMs with Claude, open the account's info at the top of your chat window and grab the channel ID from the bottom of the new window. We insert it into CLAUDE.
Connecting to SillyTavern
- Run start.bat. In the console, you'll see a local IP address (http://127.0.0.1:5004/). Copy it.
- In SillyTavern, open OpenAI settings(sliders tab). Select OpenAI Mode and insert the proxy link on "OpenAI / Claude Reverse Proxy".
SillyTavern Settings
You can use slaudehope_preset.json found on slaudehope folder for the settings. You can also download it here.
Main Settings
- Context Size (tokens): 6000+
slaudehope automatically removes chat messages if you exceed 16000 chars (4K tokens). Always put this value high because if you enable Vector Storage and the summarizer, It will lessen the tokens used by vector storage and will provide more room for your chat history. - Streaming and Legacy Streaming Processing: Enabled
Streaming can be enabled or disabled in slaudehope. Just make sure to enable Legacy Streaming Processing. - Add character names: Enabled
This should be ENABLED. Slaudehope has changed from A, and B tags to outright character tags.
Prompts and Order
You CANNOT change the XML tags name (If you want to you need to change the code as well).
You CAN change the order of the information inside these XML tags as you wish.
SillyTavern allows you to create your own prompts. Which means we can add opening and closing XML tags specifically.
- <char> prompt:
Enhance DescriptionDisabled- Char Description
- Char Personality
- Chat Examples
- </char> prompt
- <scenario> prompt
- Persona Description
- World Info (before)
- Scenario
- World Info (after)
- Main Prompt (Author Notes, Vector Storage)
NSFW PromptDisabled- </scenario> prompt
- <chat> prompt
- Chat History
- </chat> prompt
- Jailbreak (includes requirements and ban):
This is the main roleplay instruction of getting the character response.
- <math> prompt
The math bloat instructions serves as a way to prevent triggering the Acceptable Use Policy filter.
- MAIN INSTRUCTION prompt
This will contain the main instruction to get Claude to follow <requirements> and <ban>.
- SPLIT INSTRUCTION prompt
This is a simple bridging instruction if the whole prompt exceeds 13200 chars.
- VECTOR INSTRUCTION prompt
This is a summarizer instruction for Vector Storage. If enabled, All the vectorized conversation are summarized first before receiving the character response.
- Configs prompt:
This is the configs section if you want to enable double <math> tags and Vector Storage Summarizer. You can remove these lines if you wish. Their default value is false.
- Additional Math Prompts prompt
Some additional math instructions you can add if you still trigger the filter. This prompt is disabled since it only serves as a prompt storage.
You can MODIFY instructions inside the requirements, and math.
Make sure MAIN INSTRUCTION, SPLIT INSTRUCTION, and VECTOR INSTRUCTION are ONE LINE each!
Utility Prompts
- New Example Chat
- New Chat
- New Group Chat
- Impersonation prompt
Objective Settings
- Generation Prompt
- Completion Check Prompt
- Injected Prompt
Summarize Settings
Settings used here is from: https://rentry.org/hn3bd
- Summarization Source: Main API
- Pause Summarization: Enabled or Disabled
- Injection Template:
- Injection Position: In-chat @ Depth 4
- Summarization Prompt
- Number of words in the summary (300 words)
Vector Storage Settings
You may need to update SillyTavern if you can't see Vector Storage within the API list. If you enabled vectorSummarize, it will be automatically summarized to use less characters. Just make sure to increase context token size so that your prompt can reach within the 16K chars limit.
- Vectorization Source: Any
- Insertion Template
You can modify how the memory will be inserted inside the<insert>
tags. Just make sure to not remove<text>
as it points to where the inserted text will be.
- Injection position: Any since it will always be put on top of
<chat>
- Retain#, Query#, Insert# Any, since it can be summarized to lessen the characters.
Regex Settings
You need to add these settings if you want to remove those "z0z" text after the character's response.
Find Regex | Replace With |
---|---|
/z[0-9]{1,3}z/g |
(empty) |
Affects | Other Options |
---|---|
[ ] User Input | [ ] Disabled |
[x] AI Input | [ ] Only Format Display |
[ ] Slash Commands | [x] Run on Edit |
[ ] Substitute Regex |
Prompt Format
Help
If you have any problems, bugs, feature request, and/or feedback, You can create an issue: https://github.com/xinyandegen/slaudehope/issues, or send an email: xinyandegen@proton.me
Credits
- AmmoniaM/Barbiariskaa for Spermack Barbiariskaa/Spermack | AmmoniaM/Spermack
- KaruKaru for XML JB base JB Rentry
- raremew for additional JB Slaude-fix Rentry
- slowburner slaude coper Slowburn Slaude
- Anon#96345620