3008 Commits

Author SHA1 Message Date
kingbri
62faddac8d Textgen: Add banned_strings
TabbyAPI supports the ability to ban the presence of strings during
a generation. Add this support in SillyTavern by handling lines
enclosed in quotes as a special case.

Signed-off-by: kingbri <bdashore3@proton.me>
2024-05-11 00:58:29 -04:00
Cohee
10ee002091
Merge pull request #2208 from Wolfsblvt/global-d-ts-expanded
Expand global.d.ts with code docs
2024-05-10 23:11:08 +03:00
Wolfsblvt
eeaa52bf5d Expand global.d.ts with code docs
- docs and syntax for toastr
- docs and syntax for Fuse
- docs and syntax for select2
- docs and syntax for sortable
2024-05-10 04:48:30 +02:00
steve02081504
7a2f6fb63f {{char_version_url_encoded}} and macro replace in creator_notes_spoiler 2024-05-10 07:24:05 +08:00
Wolfsblvt
bb3ac095c4 WI key input allow click to edit
- Allow click on WI keys to edit
- Removes them from the key list, allowing direct text editing
- Refactor select2 click subscribe some more, fixing a few issues
2024-05-10 00:42:35 +02:00
Wolfsblvt
e18d554489 Refactor select2 choice click event to utils 2024-05-09 23:30:18 +02:00
Wolfsblvt
a2625ecec6 Merge branch 'staging' into wi-regex-keys 2024-05-09 22:54:27 +02:00
deffcolony
0252b21901 move expression buttons above Sprite set
+moves the buttons above the Sprite set so user does not have to scroll all the way down to find the buttons now it will be directly visiable
2024-05-09 16:33:04 +02:00
steve green
f6343436b4
impl {{char_version}}
https://github.com/SillyTavern/SillyTavern/issues/2111
2024-05-09 22:29:48 +08:00
Cohee
18d96bc346 Merge branch 'staging' into wi-no-doube-substitution 2024-05-09 15:11:16 +03:00
Cohee
e14c9506b6 Revert entry post-process 2024-05-09 14:55:09 +03:00
Cohee
88aae5978f Simplify condition. Add debug log 2024-05-09 14:53:17 +03:00
Wolfsblvt
b9d72bfdf4 Do not double-parse WI content on "always on" 2024-05-09 06:37:14 +02:00
Wolfsblvt
f4bb4fe51e Merge branch 'staging' into wi-regex-keys 2024-05-09 04:23:14 +02:00
Wolfsblvt
cf77b9e7ee WI regex key syntax highlighting 2024-05-09 03:35:36 +02:00
steve green
ff1399d1ba remove empty lines from WIs 2024-05-09 08:30:40 +08:00
Wolfsblvt
eb273a1873 WI key dropdown templating shows all keys
- Cache all keys for the loaded lorebook
- Key selection dropdown shows all keys and how often they are used already
- More templating changes
2024-05-08 20:34:53 +02:00
Cohee
7408673e41 Back to const 2024-05-08 20:59:59 +03:00
Cohee
3c0664dfb6 Fix naming and improve regex application 2024-05-08 20:10:52 +03:00
steve green
d2477bba0c also run regex on worldinfo 2024-05-08 23:41:18 +08:00
Cohee
10fda0b220
Merge pull request #2191 from bdashore3/example-wi
mesExamples anchor for World Info
2024-05-08 15:33:45 +03:00
Cohee
49d0d9f557 Fix return type on empty WI 2024-05-08 15:04:17 +03:00
Cohee
c43ddd9d62
Merge pull request #2178 from Yokayo/staging
Localization enhancements
2024-05-08 13:59:52 +03:00
kingbri
01aacb9280 World Info: Add example messages insertion point
Allow insertion above and below mesExamples (also known as the
"examples of dialogue") box.

Signed-off-by: kingbri <bdashore3@proton.me>
2024-05-07 21:55:26 -04:00
Yokayo
dfa8c6c3d4 Remove cases 2024-05-07 13:11:59 +07:00
Wolfsblvt
fda0e886e4 WI custom styling for regex keys
- WI custom style for regex keys
- moved select2 styling to its own file
2024-05-07 05:44:18 +02:00
Wolfsblvt
5a45e64999 Regex matching for keys and secondary keys 2024-05-07 02:52:22 +02:00
Wolfsblvt
70a2f71e33 WI switch key controls to multi input
- Switch key/secondarykey controls to select2 input
- Custom tokenizer for regex parsing, allowing comma in regex
- Keep mobile-compatibility by switching to textarea
- select2 utility method to pre-fill options
- New inline display mode of select2 multi to save space
2024-05-07 02:01:54 +02:00
Cohee
542018cecb Fix group weight clamping 2024-05-06 22:55:31 +03:00
Cohee
5e7c214c89 Substitute macros in text to classify 2024-05-06 22:02:13 +03:00
Cohee
12eabd167d #2187 Add negative prefix arg to /sd command 2024-05-06 21:39:07 +03:00
Cohee
c73bfbd7b0 Safari bruh moment 2024-05-06 21:21:03 +03:00
Cohee
7063fce2af Selectable openrouter providers 2024-05-06 19:26:20 +03:00
Cohee
694cf6f762 Fix field name 2024-05-06 17:27:43 +03:00
Cohee
83c77c1f18 Split group weight and trigger% 2024-05-06 17:00:42 +03:00
kingbri
96506947cb Messages + Instruct: Fix /send with name= if name is empty
If name is empty, don't try appending it to the message. This applies
for both instruct and non-instruct modes.

Signed-off-by: kingbri <bdashore3@proton.me>
2024-05-05 20:35:03 -04:00
Cohee
afc3071576 Add name argument for /send.
Tech debt: move to new STscript branch
2024-05-06 01:18:59 +03:00
Cohee
55d31a976f Add generic mediawiki downloader 2024-05-05 22:26:13 +03:00
Cohee
181b5aff97 Add Groq as chat completion source 2024-05-05 18:53:12 +03:00
Cohee
31f1b34911 Add Perplexity L3-sonar models 2024-05-05 18:21:58 +03:00
Cohee
ef5499c8dc Remove disable attribute from send_textarea. It never worked. 2024-05-05 14:27:20 +03:00
Cohee
75832c1ad6 Fix group removal 2024-05-05 01:08:49 +03:00
Cohee
39a54d158d Per-entry group scoring 2024-05-05 00:42:33 +03:00
Cohee
2bf9869e5f Add WI group scoring mode 2024-05-04 23:51:28 +03:00
Cohee
5197809d6b Add global variables to TypeScript definitions. Fix some errors 2024-05-04 20:44:41 +03:00
Cohee
478be72659 #2181 Unstuck moving images 2024-05-04 14:20:59 +03:00
Cohee
05db2552b3 Fix Top K disabled state for Infermatic.
Also an icon.
2024-05-04 02:37:05 +03:00
Cohee
7bfd666321 Add llama 3 tokenizer 2024-05-03 23:59:39 +03:00
Yokayo
a02f5ead7e Some localization fixes 2024-05-04 03:37:55 +07:00
Yokayo
29e2e8f607 Add localizable strings to two extensions & translate them 2024-05-04 02:44:15 +07:00