Commit Graph

2931 Commits

Author SHA1 Message Date
59dba15a4f Unlock scrolling on streaming if scrolled with mouse wheel 2023-06-27 00:45:48 +03:00
976a8fd65c Fix WI terms usage 2023-06-26 22:27:58 +03:00
5798c98f41 Adjust texts for character lorebooks 2023-06-26 22:21:01 +03:00
187a0925b0 Merge pull request #570 from bdashore3/dev
World Info: Add support for character layers and more fixes
2023-06-26 22:10:58 +03:00
45047fc6b2 World Info: Fix entries being improperly appended
Entries were being added to the prompt in an inconsistent way. WI
before and after character were using newline formatting while AN
was using array joins. This caused some issues with insertion order
in the prompt.

Fix this by making each injection use an array and unshift elements
into them. Then, join them into a string that preserves insertion
order.

The reason why unshift is used is because higher insertion orders
translate to a higher priority during scanning. This prevents the
need to reverse arrays which is a more costly function depending
on how many entries are in them.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-06-26 14:32:24 -04:00
9d5af39682 World Info: Add rename and delete hooks to char layers
If a world info is renamed or deleted, update that in the character
lore section of settings as well.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-06-26 14:32:24 -04:00
b6fbe41f93 World Info: Add support for character layering
Some characters have different cards depending on what the user wants
from the character. However, maintaining multiple lorebooks for different
personas of the same character can be difficult. In addition, there
is redundancy, overlap, and possiblities to miss information when
creating separate lorebooks with the same base info.

Therefore, add a "DLC"/layering system of sorts for characters.
This works the same way as multi-global world info where character
lorebooks added as needed. The only catch is that a base character
book must be tied to a card before selecting any extra info.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-06-26 14:32:24 -04:00
47a5c9e9f6 Remove insta-faving on import 2023-06-26 17:20:59 +03:00
c9fa19e8dd Un-egg group avatars round 2023-06-26 17:00:35 +03:00
89a1378397 Fix sprite folder for Risu sprites. Don't overwrite existing files. 2023-06-26 17:00:13 +03:00
1739af3ef6 Cleanup Risu import 2023-06-26 15:26:29 +03:00
c1b9a30087 Import embedded Risu sprites 2023-06-26 15:19:35 +03:00
ca8b06f4cb Fix bold italics 2023-06-26 13:42:58 +03:00
68f967ea78 Add Claude tokenizer 2023-06-26 13:36:56 +03:00
7354003db1 Fix typo 2023-06-26 11:51:11 +03:00
b2e541c6d9 char edit panel grid fix 2023-06-26 07:08:46 +09:00
7321b37799 Un-egg round personas 2023-06-25 23:55:16 +03:00
9532ad4e5a Enable selection in WI editor 2023-06-25 23:24:22 +03:00
7118b430d5 Only display a warning if card tokens is more than 50% of real context size 2023-06-25 23:17:05 +03:00
961139304d Unify group/solo avatar display 2023-06-25 23:05:11 +03:00
efe4a974be Less gaps == more space for descriptions 2023-06-25 22:56:11 +03:00
92127615e5 Tighter display of character top bar. Return some of the buttons 2023-06-25 22:44:46 +03:00
deb2efc16e realign character panel 2023-06-26 04:17:06 +09:00
9bbaa85a3b Clarified persona deletion message 2023-06-25 20:13:16 +03:00
04cfedea7c Chroma: Remove dupe label 2023-06-25 19:56:15 +03:00
16fd92b1a3 Merge pull request #566 from BlipRanger/dev
First try at chromadb multichat
2023-06-25 19:36:19 +03:00
7984e3b818 Add contextual Character WI button 2023-06-25 18:40:13 +03:00
da8beeb503 Force reload user avatar on upload 2023-06-25 17:21:18 +03:00
612db28bcb Better name for backgrounds plugin 2023-06-25 17:06:20 +03:00
506aeb2e40 Substitute params in persona descriptions. 2023-06-25 17:00:27 +03:00
26ac519c55 User persona management block. Persona descriptions. Dummy personas. Change persona avatar 2023-06-25 16:46:23 +03:00
bbec184d17 Reverse persona lock icon 2023-06-25 13:20:11 +03:00
951e22ac8e Fix scrolling and width of global WI 2023-06-25 12:43:37 +03:00
861e0d017e fix CSS for new WI multiselector 2023-06-25 14:53:41 +09:00
f6526bbb4c Merge pull request #567 from bdashore3/dev
Add multiple global WI merging (and optimizations)
2023-06-25 14:33:54 +09:00
d004a3141e Default bracket, make sure we have memories. 2023-06-25 01:03:47 -04:00
bd74939a55 Add templating for custom injection 2023-06-25 01:01:47 -04:00
c0286150ed World Info: Add optimizations and fixes
Use a switch instead of if/else chain, fix un-needed addition
when determining token counts, and remove newline spacing for AN
WI formatting.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-06-25 01:00:47 -04:00
fc9c90c4ee World Info: Add global multi-selection/merging
Global world info always involved some kind of merging leading to
extremely large lorebook files that took a long time to import.

This commit adds the ability to select more than one world info file
and they will be merged together along with character world info.
In short, multiple worlds can be meshed together to further contribute
to context.

You can also use this for world "DLCs" of sorts. Let's say someone
else has more information to add regarding a world, but doesn't
want to use a large world file. The JSONs can now be merged.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-06-25 00:49:42 -04:00
2836704c4e Add sort options, remove duplicate entires from custom. 2023-06-25 00:17:58 -04:00
71201377ef Merge branch 'SillyTavern:dev' into dev 2023-06-24 20:43:42 -04:00
9de7db8f2d Add custom chroma strat 2023-06-24 20:41:54 -04:00
31057e1e81 Add custom avatars for groups 2023-06-25 02:57:07 +03:00
66de4a1e09 Add positions for char A/N 2023-06-25 01:40:06 +03:00
4cc3d335a8 Save A/N to metadata immediately 2023-06-25 01:08:38 +03:00
09eea3c8cd Add caching layer to WI save/load 2023-06-24 23:57:44 +03:00
747f7829fd Import Risu lorebooks 2023-06-24 23:34:36 +03:00
ab90d6ec3d Save before exporting 2023-06-24 23:19:21 +03:00
3ce14883b9 First try at chromadb multichat 2023-06-24 15:36:26 -04:00
f360706227 Post-activation sorting of WI entries 2023-06-24 20:54:56 +03:00