Commit Graph

316 Commits

Author SHA1 Message Date
maver
f4cfa8ba94 Remove obsolete logs and improve documentation 2023-08-12 18:40:39 +02:00
maver
f2227ded9a Move utility prompts in its own, independent dropdown
And merge with existing advanced prompt bits
2023-08-12 18:40:38 +02:00
maver
9669199408 Allow user to edit new chat, new group chat and new example chat prompts 2023-08-12 18:40:38 +02:00
maver
2ed1cee82e Fill tokenizer legacy counts where possible. 2023-08-12 18:40:38 +02:00
maver
9784950c54 Add documentation for chat completion
And dependant classes
2023-08-12 18:40:38 +02:00
maver
9332657e20 Do not render prompt export dialogue if not necessary 2023-08-12 18:40:38 +02:00
maver
0f3d5373bf Always allow dropping prompts 2023-08-12 18:40:38 +02:00
maver
81c32852c8 Add icon for global prompts 2023-08-12 18:40:38 +02:00
maver
15d4283cd4 Add info icons to prompt export 2023-08-12 18:40:38 +02:00
maver
023d3fade2 Do not assign openai_max_tokens on input field changes
Fixes prompt manager falsely assigning string value to openai config
2023-08-12 18:40:38 +02:00
maver
4974c81d4c Update prompt manager active character on character edit. 2023-08-12 18:40:38 +02:00
maver
74a7aa513b Reintroduce event types after rebase 2023-08-12 18:40:38 +02:00
maver
6ec249bb30 Add confirmation step and allow character prompt order import 2023-08-12 18:40:38 +02:00
maver
bfb4e5026d Refine export function 2023-08-12 18:40:38 +02:00
maver
57ea6cb7a5 Add prompt export 2023-08-12 18:40:38 +02:00
maver
3d35caff08 Improve readability and clarity of prompt manager icons 2023-08-12 18:40:38 +02:00
maver
d70ecbdcd9 Add support for cycle prompt 2023-08-12 18:40:38 +02:00
maver
e93424b2cf Don't use debounce for prompt manager save settings function 2023-08-12 18:40:38 +02:00
maver
a53e99b831 Prevent chat history warnings from showing too early 2023-08-12 18:40:38 +02:00
maver
ce8a71cf53 Add error handling to openai message counting 2023-08-12 18:40:38 +02:00
maver
011278c533 Re-Render prompt manager on worldinfo settings change 2023-08-12 18:40:38 +02:00
maver
4509df0fd9 Add support for empty prompt replacement 2023-08-12 18:40:38 +02:00
maver
632fa770be Create a deep copy of prompt defaults on char select
Along other minor fixes and optimizations
2023-08-12 18:40:38 +02:00
maver
85c4b6fad3 Improve error messages 2023-08-12 18:40:38 +02:00
maver
a0bd67e455 Allow markers to inspected for their content 2023-08-12 18:40:38 +02:00
maver
2452b37e28 Add fallback for empty dialogue example prompts 2023-08-12 18:40:38 +02:00
maver
28217adac6 Add logging for prompt manager position changes 2023-08-12 18:40:38 +02:00
maver
9558483669 Change draggable hover color to be more in tune with the default styling 2023-08-12 18:40:38 +02:00
maver
5629bd8984 Fix handleSavePrompt logging throwing error 2023-08-12 18:40:38 +02:00
maver
8abff3c24f Add simple profiling for token counting and rendering 2023-08-12 18:40:38 +02:00
maver
ec43295936 Add logging and minor stability enhancements 2023-08-12 18:40:38 +02:00
maver
2fc3577431 Throw a recoverable error on invalid character naming 2023-08-12 18:40:38 +02:00
maver
1b7da6ecbc Remove faulty characters in default configuration 2023-08-12 18:40:38 +02:00
maver
d469c80ef5 Apply minor code style and stability improvements 2023-08-12 18:40:38 +02:00
maver
550e635d93 Add migration for legacy prompts 2023-08-12 18:40:38 +02:00
maver
e908610b99 Save prompt manager items to perset 2023-08-12 18:40:38 +02:00
maver
2054cbeb83 Simplify token threshold warnings 2023-08-12 18:40:38 +02:00
maver
49cb682499 Raise warning threshold for chatHistory tokens 2023-08-12 18:40:38 +02:00
maver
6cea524f2c Fix prompt-manager being rendered twice. 2023-08-12 18:40:38 +02:00
maver
bf0dc07b1f Improve in-code documentation 2023-08-12 18:40:38 +02:00
maver
d0aba85692 Add support for persona description positioning 2023-08-12 18:40:38 +02:00
maver
4ed92d69b0 Fix jailbreak prompt not being overwritten by character 2023-08-12 18:40:38 +02:00
maver
221ecbf8d6 Add reset for main,nsfw and jailbreak prompts 2023-08-12 18:40:38 +02:00
maver
9cf41a6a52 Remove doubled initialization of prompt manager 2023-08-12 18:40:38 +02:00
maver
7c1e370abe Allow the user to toggle names in chat history 2023-08-12 18:40:38 +02:00
maver
0660016a10 Only add name to prompts when conforming to oai api standards 2023-08-12 18:40:38 +02:00
maver
670119e143 Fix prompt edit popup not appearing after refactoring 2023-08-12 18:40:38 +02:00
maver
25eef5d100 Pass nsfwAvoidance message instead of prompt
Fixing invalid argument exception being thrown
2023-08-12 18:40:38 +02:00
maver
f207e0eab3 Add basic WindowAI support 2023-08-12 18:40:38 +02:00
maver
5c18abadac Pass chat message name to chatcompletion endpoint 2023-08-12 18:40:38 +02:00