Commit Graph

848 Commits

Author SHA1 Message Date
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
fc44a02323 Set utility prompt text area size to 3 rows 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
maver
63d224d8af Refactor and simplify setup method for prompt manager. 2023-08-12 18:40:39 +02:00
maver
ad6575887a Remove obsolete function getGroupMembers 2023-08-12 18:40:39 +02:00
maver
b58ce0370d Refactor token counting after completion. Simplify code. 2023-08-12 18:40:39 +02:00
maver
57fd04b974 Refactor token counting after completion. Simplify code. 2023-08-12 18:40:39 +02:00
maver
dfd49813af Refactor naming scheme for default promptmanager defaults 2023-08-12 18:40:39 +02:00
maver
4f734d12ab Use configured prefix for prompt manager classes instead of constant 2023-08-12 18:40:39 +02:00
maver
9d6cf017d2 Move main and jailbreak override from manager into openai script.
Makes the code clearer and easier to understand
2023-08-12 18:40:39 +02:00
maver
075c0c29f0 Refactor prepareOpenAiMessages, move prompt preparation in its own function 2023-08-12 18:40:39 +02:00
maver
ec806db9f7 Initialize prompt manager on selecting openrouter, scale 2023-08-12 18:40:39 +02:00
maver
fc555c1be5 When a prompt is reset, also reset name and role 2023-08-12 18:40:39 +02:00
maver
a921a26af5 Do not show reset button for user prompts 2023-08-12 18:40:39 +02:00
maver
7ea6e89b05 Add reset prompt support for enhance definitions 2023-08-12 18:40:39 +02:00
maver
b2acc9eb0f Refactor documentation and make code more readable
No functional changes
2023-08-12 18:40:39 +02:00
maver
19ee831d82 Prevent prompt manager initialization more than once 2023-08-12 18:40:39 +02:00
maver
67ef713826 Better visibility of prompt manager popup on mobile 2023-08-12 18:40:39 +02:00
maver
76154fd8ee Fix authors note position not being considered 2023-08-12 18:40:39 +02:00
maver
41aae57f05 Do not send empty scenario and personality prompts 2023-08-12 18:40:39 +02:00
maver
6a52d6febd Fix invalid character name error not being handled 2023-08-12 18:40:39 +02:00
maver
00e9987fb7 Fix character reset not available in basic mode 2023-08-12 18:40:39 +02:00
maver
05c96825ea Add reset button for character prompt list 2023-08-12 18:40:39 +02:00
maver
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
maver
4dd94a4a62 Do not generate group responses on dry run 2023-08-12 18:40:39 +02:00
maver
a706ecd48c Add charIfNotGroup placeholder to default main prompt 2023-08-12 18:40:39 +02:00
maver
fa205ec72e Validate import data before prompt import 2023-08-12 18:40:39 +02:00
maver
cf305c0395 Do not attempt a dryrun if no character has been selected 2023-08-12 18:40:39 +02:00
maver
82a11316bc Add continue nudge to editable utility prompts 2023-08-12 18:40:39 +02:00
maver
0e4ce734ad Fix continue functionality not working as expected 2023-08-12 18:40:39 +02:00
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
3cc092a432 Add margin utility classes 2023-08-12 18:40:38 +02:00
maver
e03dc0a3a5 Add more padding in left panel scrollable 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
40079f7660 Improve styling of inspect popup drawer 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