Commit Graph

1008 Commits

Author SHA1 Message Date
kingbri
0280bfa1bb Script: Don't save character on chat creation
There's no need to save a character when a new chat is created.
The main reason for this commit is that after creating a new chat
with metadata, it immediately gets cleared after a few seconds.
This may be a race condition, but there's also no need for this
function call in the first place.

Fixes: Author's note not injecting on first message when new
chat is spawned.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-07-17 00:21:46 -04:00
RossAscends
732cea5cf1 /delchat - to delete the current chat 2023-07-17 00:49:33 +09:00
YellowRoseCx
0a99a0bb41 Add timezone replacement tags
Allows setting of various timezones for the {{time}} tag by including the UTC offset with it like {{time_UTC-4}} or {{time_UTC+3}}
2023-07-16 00:09:43 -05:00
Cohee
36b8aa0b4d Message texts are not array 2023-07-15 00:04:07 +03:00
Cohee
5b98f2f329 #703 Don't use prompt bias on impersonation 2023-07-14 23:37:10 +03:00
Cohee
37de77b20d Fix OpenAI itemizer for characters with example dialogues 2023-07-14 22:52:17 +03:00
Cohee
eb4adb5a6c Bouncy drawers fix 2023-07-14 18:10:59 +03:00
Cohee
f5a25cad5b Clear chat metadata on clearing chat 2023-07-14 17:06:01 +03:00
Cohee
07c78391e1 #708 Convert author's note to built-in function instead of extension 2023-07-14 16:10:39 +03:00
Cohee
8987534403 #709 Add extra type safety for token counting 2023-07-14 15:33:55 +03:00
Cohee
5db9a7b5ba Migrate grid view to pure CSS 2023-07-13 23:00:30 +03:00
RossAscends
4bf8e2c49f fix charlist state on character deletion 2023-07-14 04:15:31 +09:00
Cohee
22108c5c9f Fix /cut command 2023-07-13 20:00:17 +03:00
Cohee
933729d914 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-07-13 19:26:05 +03:00
Cohee
da43c1c87e #699 Delete character without losing chats 2023-07-13 19:26:01 +03:00
RossAscends
298952e591 character list grid display toggle 2023-07-14 01:16:32 +09:00
Cohee
ae7ad6dbf0 Merge branch 'feature/extensions' of https://github.com/BlipRanger/SillyTavern into dev 2023-07-13 16:49:52 +03:00
RossAscends
ff8c9546ad add /impersonate (aka /imp) 2023-07-13 16:12:49 +09:00
BlipRanger
35336b1646 Delete method almost complete 2023-07-13 00:59:16 -04:00
BlipRanger
07b42e0fb4 Documentation update 2023-07-13 00:03:23 -04:00
BlipRanger
396aaaf6e9 Add update button and check for external extenisons 2023-07-12 22:26:01 -04:00
Cohee
cb294983e7 Merge pull request #701 from 50h100a/api-tokenize
Added tokenizer option for Ooba-like APIs
2023-07-12 11:28:50 +03:00
Cohee
9bbf23e56f Merge pull request #695 from ThisIsPIRI/continue
Fix continue formatting
2023-07-12 11:28:15 +03:00
Cohee
4aeda77648 Merge pull request #697 from bdashore3/dev
Regex: Switch slash command hooks
2023-07-12 11:26:53 +03:00
50h100a
49ae2cbad6 New tokenizer option.
If you're running an ooba-like api, you can use the token-count endpoint.
Exact and fast!
2023-07-12 04:18:55 -04:00
BlipRanger
b41d0a08c7 Replace lines that you definitely already had... 2023-07-11 19:24:13 -04:00
BlipRanger
53d45356a4 External extension import UI + backend 2023-07-11 18:24:04 -04:00
ThisIsPIRI
dedb913b67 Fix continue formatting 2023-07-12 06:57:05 +09:00
Cohee
393fff6207 Fix double insertion of WI with Chat Completions 2023-07-12 00:26:29 +03:00
Cohee
c9cc8fcf18 Calculation fixes to prompt itemizer 2023-07-12 00:05:34 +03:00
Cohee
6b1965fcf4 #693 Format story string after WI insertion for instruct mode 2023-07-11 23:22:12 +03:00
BlipRanger
bb6ff352b3 External extension support start 2023-07-11 16:10:42 -04:00
kingbri
bd7d4beab5 Regex: Add slash command input hook
Slash command output for sys and sendas commands were being formatted,
but add the ability for user placement to also apply to slash command
invocations.

Some slash commands will require an output hook, so add exclusions
inside the code itself.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-07-11 15:28:30 -04:00
Cohee
9ebb1cfe90 #652 Add custom stop strings 2023-07-11 00:24:09 +03:00
Cohee
5c6c7fd3ca #612 SD manual prompt refine mode 2023-07-10 23:07:53 +03:00
Cohee
f76db66e25 Modify quiet prompt sending to text completion models. 2023-07-10 18:13:11 +03:00
BlipRanger
d5c38077a4 Missed a spot 2023-07-09 21:22:29 -04:00
BlipRanger
35688c3eb3 Cleanup/Rename for generation info 2023-07-09 20:15:35 -04:00
BlipRanger
ad001ea263 Actually copy extra instead of referencing the same object 2023-07-09 19:57:42 -04:00
BlipRanger
5f9fd017ea Unclear where this needs to be. 2023-07-09 16:50:16 -04:00
BlipRanger
bdc4d213dd Remove reliance on settings dict 2023-07-09 13:38:09 -04:00
BlipRanger
a15b2892a7 Merge branch 'dev' of https://github.com/BlipRanger/SillyTavern into dev 2023-07-08 18:55:50 -04:00
BlipRanger
d25eca0f29 Cleanup from gen info stuff 2023-07-08 18:55:47 -04:00
BlipRanger
eaa14d2804 Merge branch 'SillyTavern:dev' into dev 2023-07-08 18:54:31 -04:00
BlipRanger
148966affe Fix some issues with displaying the gen info 2023-07-08 18:53:23 -04:00
BlipRanger
0f7dad7a5e I think that corrects the extras for swiping 2023-07-08 17:44:36 -04:00
BlipRanger
5128b75216 Fixed model acquisiton 2023-07-08 17:13:52 -04:00
kingbri
3c3eed0996 Regex: Change how MD formatting works
Previously, there was a checkbox to select placement as MD display.
This was counterintuitive since some users believed MD display
enclosed the other placement options.

Now, add a universal switch to finely tune what parts of a chat should
be excluded with MD formatting. For example a regex with the option
enabled with AI output selected will only format replies from the
character.

This is an improvement since users can now choose what parts of a
chat to format rather than sticking with a global display specifier.

Signed-off-by: kingbri <bdashore3@proton.me>
2023-07-08 14:10:15 -04:00
Cohee
68551ae15c Merge pull request #663 from vbdev537/dev
Add new Replacement Macro
2023-07-08 12:22:49 +03:00
BlipRanger
f72b055bfb Merge branch 'dev' of https://github.com/BlipRanger/SillyTavern into dev 2023-07-08 01:17:59 -04:00