Commit Graph

1736 Commits

Author SHA1 Message Date
075c0c29f0 Refactor prepareOpenAiMessages, move prompt preparation in its own function 2023-08-12 18:40:39 +02:00
ec806db9f7 Initialize prompt manager on selecting openrouter, scale 2023-08-12 18:40:39 +02:00
fc555c1be5 When a prompt is reset, also reset name and role 2023-08-12 18:40:39 +02:00
a921a26af5 Do not show reset button for user prompts 2023-08-12 18:40:39 +02:00
7ea6e89b05 Add reset prompt support for enhance definitions 2023-08-12 18:40:39 +02:00
b2acc9eb0f Refactor documentation and make code more readable
No functional changes
2023-08-12 18:40:39 +02:00
19ee831d82 Prevent prompt manager initialization more than once 2023-08-12 18:40:39 +02:00
67ef713826 Better visibility of prompt manager popup on mobile 2023-08-12 18:40:39 +02:00
76154fd8ee Fix authors note position not being considered 2023-08-12 18:40:39 +02:00
41aae57f05 Do not send empty scenario and personality prompts 2023-08-12 18:40:39 +02:00
6a52d6febd Fix invalid character name error not being handled 2023-08-12 18:40:39 +02:00
00e9987fb7 Fix character reset not available in basic mode 2023-08-12 18:40:39 +02:00
05c96825ea Add reset button for character prompt list 2023-08-12 18:40:39 +02:00
29a7cb4120 Replace DraggableList with jQuery UI sortable
Similar to Kobold AIs settings. Reducing code that needs maintaining.
2023-08-12 18:40:39 +02:00
4dd94a4a62 Do not generate group responses on dry run 2023-08-12 18:40:39 +02:00
a706ecd48c Add charIfNotGroup placeholder to default main prompt 2023-08-12 18:40:39 +02:00
fa205ec72e Validate import data before prompt import 2023-08-12 18:40:39 +02:00
cf305c0395 Do not attempt a dryrun if no character has been selected 2023-08-12 18:40:39 +02:00
82a11316bc Add continue nudge to editable utility prompts 2023-08-12 18:40:39 +02:00
0e4ce734ad Fix continue functionality not working as expected 2023-08-12 18:40:39 +02:00
f4cfa8ba94 Remove obsolete logs and improve documentation 2023-08-12 18:40:39 +02:00
f2227ded9a Move utility prompts in its own, independent dropdown
And merge with existing advanced prompt bits
2023-08-12 18:40:38 +02:00
3cc092a432 Add margin utility classes 2023-08-12 18:40:38 +02:00
e03dc0a3a5 Add more padding in left panel scrollable 2023-08-12 18:40:38 +02:00
9669199408 Allow user to edit new chat, new group chat and new example chat prompts 2023-08-12 18:40:38 +02:00
40079f7660 Improve styling of inspect popup drawer 2023-08-12 18:40:38 +02:00
2ed1cee82e Fill tokenizer legacy counts where possible. 2023-08-12 18:40:38 +02:00
9784950c54 Add documentation for chat completion
And dependant classes
2023-08-12 18:40:38 +02:00
9332657e20 Do not render prompt export dialogue if not necessary 2023-08-12 18:40:38 +02:00
0f3d5373bf Always allow dropping prompts 2023-08-12 18:40:38 +02:00
81c32852c8 Add icon for global prompts 2023-08-12 18:40:38 +02:00
15d4283cd4 Add info icons to prompt export 2023-08-12 18:40:38 +02:00
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
4974c81d4c Update prompt manager active character on character edit. 2023-08-12 18:40:38 +02:00
74a7aa513b Reintroduce event types after rebase 2023-08-12 18:40:38 +02:00
6ec249bb30 Add confirmation step and allow character prompt order import 2023-08-12 18:40:38 +02:00
bfb4e5026d Refine export function 2023-08-12 18:40:38 +02:00
57ea6cb7a5 Add prompt export 2023-08-12 18:40:38 +02:00
3d35caff08 Improve readability and clarity of prompt manager icons 2023-08-12 18:40:38 +02:00
d70ecbdcd9 Add support for cycle prompt 2023-08-12 18:40:38 +02:00
e93424b2cf Don't use debounce for prompt manager save settings function 2023-08-12 18:40:38 +02:00
a53e99b831 Prevent chat history warnings from showing too early 2023-08-12 18:40:38 +02:00
abe986ec4b Allow prompt manager list to grow in height 2023-08-12 18:40:38 +02:00
ce8a71cf53 Add error handling to openai message counting 2023-08-12 18:40:38 +02:00
011278c533 Re-Render prompt manager on worldinfo settings change 2023-08-12 18:40:38 +02:00
4509df0fd9 Add support for empty prompt replacement 2023-08-12 18:40:38 +02:00
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
56a9dd158a Add inspection styles 2023-08-12 18:40:38 +02:00
85c4b6fad3 Improve error messages 2023-08-12 18:40:38 +02:00
a0bd67e455 Allow markers to inspected for their content 2023-08-12 18:40:38 +02:00