Commit Graph

4195 Commits

Author SHA1 Message Date
Cohee
50217e37b8 Spell CSS consistently 2024-09-06 22:27:53 +03:00
Wolfsblvt
63c6fbaf58 /echo html allowed sanitize title too 2024-09-06 21:18:16 +02:00
Wolfsblvt
50a716a593 Update /echo docs helpstring 2024-09-06 20:53:39 +02:00
Sneha C
fc942842b9
Update slash-commands.js
added some examples to /echo command
2024-09-06 22:39:30 +04:00
Wolfsblvt
25d8286dfc DOM.purify toast if HTML is allowed 2024-09-06 20:31:13 +02:00
Wolfsblvt
0d9843cdd6 clear onProgress before closure for no progress 2024-09-06 20:21:32 +02:00
Wolfsblvt
ad04d0c9a2 Fix async closure call not clearing progress 2024-09-06 20:01:45 +02:00
Wolfsblvt
e48ff8daae Add check for closure type 2024-09-06 19:49:32 +02:00
Wolfsblvt
de8732fad6 Add onClick arg to /echo executing closures
- Adds the 'onclick' slash command arg to /echo
- It utilizes the Closure object without serialization, using the exact same scope it received on creation. Should be mindful about memory leaks and possible parallel execution.
2024-09-06 19:32:35 +02:00
Wolfsblvt
885a014507 Add escapeHtml arg to /echo 2024-09-06 19:03:21 +02:00
Wolfsblvt
a4e72da40f Add color arg to /echo for custom color 2024-09-06 18:55:50 +02:00
Wolfsblvt
c9ed91099f Add cssClass arg to /echo 2024-09-06 18:46:35 +02:00
Cohee
81251b073a Implement downloadable tokenizers
Closes #2574, #2754
2024-09-06 16:28:34 +00:00
Cohee
bcd8a28367 Case-insensitive icon search 2024-09-06 14:22:36 +00:00
LenAnderson
0388d3eb6c make alternative class names searchable in FontAwesome icon picker 2024-09-06 10:07:50 -04:00
Cohee
d5c26032aa
Merge pull request #2788 from SillyTavern/charlistgrid-load
Less horrible charListGrid load
2024-09-06 10:29:29 +03:00
khanon
21cdf49322 fixes single-line inputs and textboxes squished when saving 2024-09-06 01:30:50 +00:00
Wolfsblvt
e3f4b554c7 I wiped, I swear 2024-09-05 23:12:45 +02:00
Cohee
3e3597673b Less horrible charListGrid load 2024-09-05 21:22:54 +03:00
Cohee
75c6bee350
Filter inclusion groups by timed effects (#2765)
* Filter inclusion groups by timed effects
Closes #2762

* Skip group scoring check if sticky entries are present

* Optimize sticky checks
2024-09-05 21:15:45 +03:00
Cohee
2f5e40691c Implement more smart textarea autosizes 2024-09-05 20:55:06 +03:00
Cohee
e335b62b0b Remove CSS height set on system sequences 2024-09-05 20:20:42 +03:00
Cohee
733bb84044 Fix "system as user" toggle 2024-09-05 20:16:58 +03:00
Cohee
5c7b95cc15 Move CSS check up 2024-09-05 20:13:59 +03:00
Cohee
dec85c42f7 These should be function calls 2024-09-05 20:07:37 +03:00
Cohee
ac0c33eb76 Use CSS.supports to determine auto-fit validity 2024-09-05 20:00:45 +03:00
RossAscends
8e1dad6800 initial reversion commit 2024-09-06 01:48:21 +09:00
Cohee
b5b01a1a5c
Merge pull request #2774 from SillyTavern/classify-slash-commands-with-api
Expanded classify slash commands (add Classifier API to `/classify` and allow prompt override, new `classify-expressions`)
2024-09-05 10:52:18 +03:00
Cohee
85773ace79 Add format arg for classify-expressions 2024-09-05 10:48:46 +03:00
Cohee
b4ecba2a45 Fix macro not replacing in custom prompt 2024-09-05 10:23:51 +03:00
Cohee
a82617be5b
Merge pull request #2773 from SillyTavern/fix-wi-sticky-on-recursion
Fix WI sticky possibly not sticking with delay until recursion when inclusion group is set too
2024-09-05 10:10:19 +03:00
Cohee
479923fdf8
Merge pull request #2775 from FriedCaper/summarize-restore-tooltip
Add tooltip to Restore Previous button in Summarize plugin
2024-09-05 09:49:56 +03:00
Wolfsblvt
b44994a11d
Merge pull request #2776 from LenAnderson/fix-fix-fancy-click-target
Fix the fix (fix fancy click target)
2024-09-05 04:02:20 +02:00
LenAnderson
c6404a6401 should look for both .regex-highlight and .item for plaintext 2024-09-04 21:44:37 -04:00
FriedCaper
4eefa396d6 Add tooltip to Restore button in Summarize plugin
Including a hint that you can use it repeatedly to roll back all
previously stored summaries.
2024-09-05 00:17:21 +00:00
Wolfsblvt
d62f18b523 Add missing await 2024-09-05 00:34:52 +02:00
Wolfsblvt
3b10ae00c7 Add /classify-expressions to retrieve emote list 2024-09-05 00:24:10 +02:00
Wolfsblvt
2472b26057 /classify allows custom prompt for LLM api 2024-09-05 00:13:54 +02:00
Wolfsblvt
a37b805a5d /classify can specify classier API as argument 2024-09-05 00:06:14 +02:00
Wolfsblvt
0284698428 Fix WI sticky possibly not sticking on recursion
- When a WI entry has sticky, and inclusion group and "delay until recursion" set, another entry from the same group might prevent the sticky from activating. This is fixed here.
2024-09-04 22:39:32 +02:00
Cohee
58e6ae2fc5
Merge pull request #2769 from SillyTavern/fix-swipes-with-floating-prompts
Allow mobile swipes with open panels if focused
2024-09-04 22:42:02 +03:00
Wolfsblvt
88f741b301 Fix swipe gesture, using target 2024-09-04 21:17:07 +02:00
Cohee
0b89c8aee9 Remove async in theme toggles load 2024-09-04 22:15:29 +03:00
Cohee
26635f9f10 Merge branch 'staging' into fix-swipes-with-floating-prompts 2024-09-04 21:53:25 +03:00
Cohee
f262eb256a Change no-char hint text 2024-09-04 21:14:55 +03:00
Cohee
14d6fa1129 Change seed reroll formula for Drawthings
Fixes #2770
2024-09-04 20:57:31 +03:00
LenAnderson
0619552dbb fix WI fancy key click target 2024-09-04 11:04:18 -04:00
Cohee
4cfce43e5d Set min-height for contenteditable 2024-09-04 13:46:54 +03:00
Wolfsblvt
728a233842 Allow mobile swipes with open panels if focused
- Allow mobile swipe gestures when sheld is focused, ignoring open panels or floating prompts present now
- Fixes #2753
2024-09-04 04:45:40 +02:00
Wolfsblvt
2db344538e Fix possible background swipe gestures on popups 2024-09-04 04:37:23 +02:00
Cohee
37bee43075 Allow expanding contenteditables 2024-09-04 03:16:47 +03:00
Cohee
7040f640f4
Merge pull request #2767 from SillyTavern/af-verbiage
Update Advanced Formatting verbiage
2024-09-03 23:23:39 +03:00
Cohee
830df41380 Update Advanced Formatting verbiage 2024-09-03 22:59:41 +03:00
Wolfsblvt
a70b5af0c4 Prefer stickied WI for budget-limited cases
- Instead of processing entries by default sorting (based on order and books (char first, etc)), sticky will now be the first to process. This will make sure that stickied entries will reach the prompt, even in budget-limited scenarios.
2024-09-03 21:14:44 +02:00
Cohee
f7de495321
Chat without character selected (#2757)
* WIP: Enable chatting without character selected

* Add burger menu item

* Neutral assistant chat space

* Revert "Neutral assistant chat space"

This reverts commit be2da4a629.

* Revert "Add burger menu item"

This reverts commit d4e8d990c1.

* Use simple ephemeral chats

* Only start a new assistant chat if not already in it

* Don't emit event not to clear pending files

* Allow edits, disable checkpoints and branches

* Exclude from tags, allow copy

* Allow hide/unhide

* Allow zooming avatar

* Suppress warning

* Rename neutral character

* Rename neutral back to Assistant
2024-09-03 20:36:30 +03:00
Cohee
b16915cfb9 Remove truncation_length from textgen settings 2024-09-03 14:06:10 +00:00
Cohee
fa054520b6 Remove localstorage setting migration 2024-09-03 14:05:27 +00:00
Wolfsblvt
4e95887803 Merge branch 'staging' into del-swipe-fix 2024-09-01 23:27:25 +02:00
Wolfsblvt
d663be53ac Refactor deleteSwipe from callback into func 2024-09-01 23:12:33 +02:00
Cohee
a4176ae00d Allow hiding cancel on input popup 2024-09-02 00:12:20 +03:00
Cohee
48c2646dfa Run Safari patch before loading settings 2024-09-02 00:11:59 +03:00
Cohee
4de3b10af2 Merge branch 'staging' into delete-newbie-mode 2024-09-01 23:39:21 +03:00
Cohee
011f785a79 Better switch value 2024-09-01 23:25:29 +03:00
Cohee
20e5e9eeee Add example for /var with type 2024-09-01 23:07:49 +03:00
Cohee
b9cd82180f Better setvar example 2024-09-01 23:05:51 +03:00
Cohee
873f25e330 Specify JSON in /var help 2024-09-01 23:04:51 +03:00
Cohee
a993671873 Fix arg name in help string 2024-09-01 23:04:15 +03:00
Cohee
56ae9d25b0 Fix renamed argument reference 2024-09-01 23:02:01 +03:00
Cohee
6f85327078 Only convert variable if needed 2024-09-01 22:59:50 +03:00
Cohee
b56a457c6c Merge branch 'staging' into fix-pipe-types 2024-09-01 22:55:15 +03:00
Cohee
be03772c52 Fix instruct_system_same_as_user disabled mode heights 2024-09-01 19:45:09 +03:00
Cohee
c21f59ca7a Merge branch 'staging' into contentEditablew-AF-Panel 2024-09-01 19:34:18 +03:00
Cohee
02d97f72f3
Merge pull request #2748 from SillyTavern/fix-summary
Fix automatic summarization
2024-09-01 19:33:07 +03:00
Cohee
9ed436fbb2 Fix automatic summarization
Closes #2746
2024-09-01 19:10:46 +03:00
Cohee
6a81e2affb Add missing tokenizers 2024-09-01 18:10:24 +03:00
Cohee
016e3df564 Code clean-up 2024-09-01 18:08:03 +03:00
Cohee
882e86be11 Code clean-up 2024-09-01 18:05:48 +03:00
Cohee
94ef9e8908 Await settings load 2024-09-01 18:01:21 +03:00
Cohee
76b4c5f8c1 Add space to hotswap placeholder 2024-09-01 17:44:28 +03:00
Cohee
9ae7325100 Remove newbie mode 2024-09-01 17:39:36 +03:00
RossAscends
361ab2bc23 fix context settings inputs not showing newlines on initial load 2024-09-01 22:34:56 +09:00
RossAscends
127a46e420 Merge branch 'staging' into pr/Cohee1207/2711 2024-09-01 19:56:42 +09:00
RossAscends
93bfe7f40b buttonify instruct header toggles, style instruct columns when disabled 2024-09-01 19:51:30 +09:00
Cohee
329e395077 cast => as 2024-09-01 11:50:16 +03:00
Cohee
5d798fafdd Rename type => cast 2024-09-01 11:49:32 +03:00
Cohee
5563d49184 Don't throw in array/dict conversion 2024-09-01 11:44:56 +03:00
Cohee
bc65c5b7e7 Merge branch 'staging' into fix-pipe-types 2024-09-01 11:43:29 +03:00
RossAscends
2f36b659cf dumbfix heights of disabled instruct system sequence fields 2024-09-01 17:41:48 +09:00
Cohee
9a6a82b400 Emit event on streaming tick 2024-09-01 11:35:09 +03:00
Wolfsblvt
b08e55b9f6 WI highlight/log on automatic setting change 2024-08-31 22:20:35 +02:00
Cohee
d225c05457 Remove empty line 2024-08-31 20:27:36 +03:00
Cohee
ae2d0f04ed Add XTC for koboldcpp 2024-08-31 20:18:51 +03:00
Cohee
4dbed09505 Merge branch 'staging' into feat/xtc 2024-08-31 20:03:46 +03:00
Cohee
b9543054d8 Chat Completion: Increase unlocked context size 2024-08-30 21:47:26 +03:00
Cohee
f155b83792 Cohere: new cmd-r models 2024-08-30 20:00:42 +03:00
Cohee
1fa9710a5c
Fix bulk delete async hell (#2730)
* Fix bulk delete async hell

* Remove refresh flag (always refresh)

* Don't throw on deletion fetch failed

* Clear toast on bulk finish
2024-08-30 19:52:57 +03:00
Cohee
2b904bb170 NovelAI: Adjust Kayra max length on subscription tier 2024-08-29 23:28:23 +03:00
Cohee
9558e14081 Revert bad reformat 2024-08-29 13:04:46 +00:00
Cohee
3746f08590 Add type conversion for /setvar commands with index 2024-08-29 12:55:54 +00:00
Cohee
7aaabbd2bb Personas: fix duplication in Chat Completions 2024-08-28 22:44:26 +03:00