Commit Graph

180 Commits

Author SHA1 Message Date
Cohee
908bf7a61d Merge branch 'staging' into generate-cleanups-3 2024-01-01 16:49:35 +02:00
Cohee
30732ada32 Lint fix 2024-01-01 16:08:24 +02:00
valadaptive
d2f8632368 Remove populateLegacyTokenCounts
Unused and the documentation says it should probably be removed
2023-12-25 03:48:49 -05:00
Cohee
24aff67d50 Fix {{original}} macro left out if original is empty 2023-12-07 01:27:55 +02:00
valadaptive
b8b24540a9 Rename PromptManagerModule to PromptManager
The one place where it was imported renamed it to PromptManager anyway.
2023-12-03 12:14:56 -05:00
valadaptive
5c175bc647 Turn PromptManagerModule into a class 2023-12-03 12:13:53 -05:00
Cohee
64a3564892 lint: Comma dangle 2023-12-02 22:06:57 +02:00
Cohee
08fedf3a96 lint: Use 4 space indent 2023-12-02 21:56:16 +02:00
Cohee
c63cd87cc0 lint: Require semicolons 2023-12-02 21:11:06 +02:00
valadaptive
a37f874e38 Require single quotes 2023-12-02 13:04:51 -05:00
valadaptive
518bb58d5a Enable no-unused-vars lint
This is the big one. Probably needs thorough review to make sure I
didn't accidentally remove any setInterval or fetch calls.
2023-12-02 12:11:19 -05:00
valadaptive
c893e2165e Enable no-prototype-builtins lint 2023-12-02 12:10:31 -05:00
valadaptive
b023312117 Enable no-useless-escape lint 2023-12-02 10:32:26 -05:00
Cohee
7be808c2ff Disable position select for system prompts 2023-11-14 22:41:47 +02:00
Cohee
314aca3f2c Allow disabling system marker prompts 2023-11-14 22:27:07 +02:00
Cohee
cfba379777 Hide injection depth input block for relative position 2023-11-10 15:36:42 +02:00
Cohee
dbf995fd24 Add character card macros 2023-11-08 16:28:55 +02:00
Cohee
abb78d1d6b Add at-depth position for custom Prompt Manager prompts 2023-10-11 16:03:36 +03:00
Cohee
5dd9a87dc9 Add position prop to prompt object 2023-09-21 20:57:28 +03:00
Cohee
bbed147ce5 Clean up browser logs 2023-09-05 18:23:24 +03:00
Cohee
4a6705cea8
Prompt manager configuration fixes (#1078)
* Refactor oai preset change event into before and after

* Simplify and reinforce prompt manager render without character

* Check if main prompt exists before adding nsfwAvoidance

* Sanitize prompt manager configuration on preset loading

---------

Co-authored-by: maver <kentucky@posteo.de>
2023-09-01 23:23:03 +03:00
Cohee
56fc92daca Merge branch 'staging' of https://github.com/SillyTavern/SillyTavern into staging 2023-08-30 12:03:38 +03:00
Cohee
085e92a43e Escape prompt manager names 2023-08-30 12:03:18 +03:00
Cohee
78512b33ad Update quick edits first 2023-08-29 21:16:13 +03:00
maver
5a02250a1f Add persona description to prompt manager order 2023-08-23 20:40:26 +02:00
maver
1ea7ad2572 Update quick edit when oai preset changes 2023-08-22 20:49:54 +02:00
maver
48992d4f53 Prevent context profiler from dangling on error 2023-08-22 20:39:46 +02:00
maver
0e378d93b2 Make quick edit fields static 2023-08-22 20:37:37 +02:00
maver
c3c99c534e Do not populate tokenHandlers legacy entries. 2023-08-20 19:58:04 +02:00
maver
ea72584f39 Add elvis to getTokens when populating legacy context. 2023-08-20 19:46:46 +02:00
maver
a99c543b9f Fix render function when no character is selected 2023-08-20 16:37:39 +02:00
maver
07c24f363f Render prompt manager before a character is selected
When prompt order strategy is global
2023-08-20 16:28:42 +02:00
maver
59179f6c70 Use strict mode for prompt manager
Should already be the case since it's a module but let's me specific
2023-08-20 16:28:22 +02:00
Cohee
5d1e27c820 Merge branch 'staging' of https://github.com/SillyLossy/TavernAI into staging 2023-08-19 22:03:13 +03:00
Cohee
01cb95fba8 Save and restore quick edit heights 2023-08-19 22:03:10 +03:00
RossAscends
4fe74f0041 unify import/export icons on prompt manager 2023-08-20 03:54:30 +09:00
maver
0084ea2461 Move sortable delay into configuration 2023-08-19 14:59:48 +02:00
maver
b0158bd72d Implement configurable prompt order strategy for prompt manager
global and character
2023-08-19 14:50:39 +02:00
Cohee
1305f9dc4c Fix prompt manager sometimes erroring in groups with null members 2023-08-19 03:19:12 +03:00
Cohee
c4d8d70103 Improve phone usability of sortable drags 2023-08-18 13:41:46 +03:00
Cohee
e9e9421d8a Don't try to render prompt manager if group is still generating 2023-08-15 16:47:16 +03:00
maver
9fb38af838 Fix defaults getting applied when switching back to Default preset 2023-08-15 01:28:07 +02:00
maver
2bb8fa5ea1 Update quick edit textareas when prompt manager re-renders 2023-08-15 01:20:42 +02:00
maver
8f830a0928 Persist settings before applying preset 2023-08-14 23:36:06 +02:00
Cohee
a92333875c Try to minimize side effects of generate dry running 2023-08-15 00:01:55 +03:00
maver
dbf38d359d Debounce quick edit saving 2023-08-14 20:29:07 +02:00
maver
033dc45ab9 Move quick edit ui identifiers into configuration 2023-08-14 20:29:01 +02:00
maver
6caa8a4765 Add nsfw prompt to quick edit drawer 2023-08-14 20:28:57 +02:00
Cohee
21d8ce048c Debounce more prompt manager renderings 2023-08-13 22:48:51 +03:00
Cohee
43089ee06f Don't render manager on non-chat completion APIs 2023-08-13 18:47:07 +03:00