Commit Graph

152 Commits

Author SHA1 Message Date
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
Cohee
c0bc425c8b Debounce manager changes 2023-08-13 18:43:17 +03:00
Cohee
478bb9c59b Enable nsfw prompt by default 2023-08-13 14:41:29 +03:00
maver
b0860b18b8 Show tokens when inspecting a prompt 2023-08-12 18:40:39 +02:00
maver
a9fa42524d Fix prompts object reference being shared
By deepcloning a copy
2023-08-12 18:40:39 +02:00
maver
b1254fa2ab Copy migrated preset into loaded presets
Since this only is populated once during page load
2023-08-12 18:40:39 +02:00
maver
7fb896ce2a Prevent preset migration from running multiple times. 2023-08-12 18:40:39 +02:00
maver
a999d6e171 Fix preset migration 2023-08-12 18:40:39 +02:00
maver
cd736ec682 Add message role to inspect 2023-08-12 18:40:39 +02:00
maver
280397c30b Allow inspection for all prompts
Because, really, why not.
2023-08-12 18:40:39 +02:00
maver
35eb2dfd74 Change icon for global prompts 2023-08-12 18:40:39 +02:00
Cohee
13dc35bc98 Enable JB prompt by default 2023-08-12 18:40:39 +02:00
Cohee
09d7c3350d Minor spelling mistake 2023-08-12 18:40:39 +02:00
maver
5694fb0852 Swap detach and edit icons 2023-08-12 18:40:39 +02:00
maver
55cc559fd0 Render promptmanager when chatcompletion model or source change 2023-08-12 18:40:39 +02:00
maver
1281417a97 Render prompt manager when chat history is altered
Recounts tokens
2023-08-12 18:40:39 +02:00
Cohee
29552ecfcf Sanitize completion names. Only send names in msg texts if names in completion is disabled 2023-08-12 18:40:39 +02:00
maver
fd10eaf037 Close and clear popup on preset change 2023-08-12 18:40:39 +02:00
maver
1b7a1cbc4a Add quick edit drawer and fields for main and jailbreak 2023-08-12 18:40:39 +02:00
maver
bd3136e114 Improve wording for prompt insertion 2023-08-12 18:40:39 +02:00
maver
38bfcf5324 Remove advanced options toggle 2023-08-12 18:40:39 +02:00
maver
af81915ff3 Update existing prompts during migration
Instead of adding new prompts for main, jailbreak and nsfw
2023-08-12 18:40:39 +02:00
maver
222fd3429d Center globe icon 2023-08-12 18:40:39 +02:00
maver
f0830e7bb4 Fix in-code documentation typo 2023-08-12 18:40:39 +02:00
maver
59afac08da Add missing in-code documentation 2023-08-12 18:40:39 +02:00
maver
05a080849c Fix edit button being shown for chat history and examples 2023-08-12 18:40:39 +02:00
maver
1e43108e5a Move inspect functionality to prompt name click 2023-08-12 18:40:39 +02:00
maver
405a680059 Add user icon for user prompts
To be consistent with global and marker icons
2023-08-12 18:40:39 +02:00
maver
bc4befeb22 Rename prompt lists to prompt order
Includes renaming of configuration, no functional changes
2023-08-12 18:40:39 +02:00