Commit Graph

6159 Commits

Author SHA1 Message Date
Cohee 53dc8702c3 Add early return for movingDivs click handler 2024-09-27 20:25:09 +03:00
Cohee 061ed1db65 Improve gallery layout
Closes #2907
2024-09-27 08:02:08 +00:00
Cohee 735fe49a84 Fix magic wand 2024-09-27 09:41:59 +03:00
Cohee ff56cb9c2e
Merge pull request #2903 from SillyTavern/extensions-slash-commands
Slash commands to manage Extensions
2024-09-27 01:23:07 +03:00
Cohee 0fd57a4c1c Returns doesn't support HTML, ditto 2024-09-27 01:19:45 +03:00
Cohee cf2c9a8296 Returns doesn't support HTML 2024-09-27 01:13:44 +03:00
Cohee eccf253afd Show Included settings in view order 2024-09-27 01:01:49 +03:00
Cohee 50fd3a2028 Remove new class 2024-09-27 00:46:03 +03:00
Cohee 4167fe3d2b Add Save and Update 2024-09-27 00:44:58 +03:00
Cohee 3b1435ba77 Merge branch 'staging' into connection-profile-omit 2024-09-27 00:20:47 +03:00
Cohee b025765a1e
Merge pull request #2891 from SillyTavern/if-command-default-arguments
`/if` and `/while` now allow "right" and "rule" to be optional
2024-09-27 00:04:41 +03:00
Cohee 75308bfe7f
Alt greetings restyle (#2902)
* Slight QoL restyle of alternate greetings
* Update to new popup
* Add visible labels to buttons
2024-09-26 23:56:38 +03:00
Cohee 38660df93f /model: fix not working on Novel/Horde 2024-09-26 23:46:03 +03:00
Cohee dbca950aad Add margin from all sides 2024-09-26 23:40:44 +03:00
Cohee 7c4d8b8d7a Fix a bug with splice 2024-09-26 23:36:38 +03:00
Cohee bb82198496 Place omitted on a separate line 2024-09-26 23:34:42 +03:00
Cohee d8806060a7 Use compact template syntax 2024-09-26 23:34:03 +03:00
Cohee 8083431202 Merge branch 'staging' into connection-profile-omit 2024-09-26 23:27:54 +03:00
Cohee 3a03e1a6b2 NovelAI: More newline stop string permutations 2024-09-26 23:26:42 +03:00
Cohee 917c6f25bd Merge branch 'release' into staging 2024-09-26 12:56:34 +00:00
Cohee 4c159dfb50 Hotfix: Chrome 129 wide popup sizing 2024-09-26 12:56:19 +00:00
Cohee e6d5b5a8a1 Limit NAI stop sequences count 2024-09-26 07:58:26 +00:00
Cohee c4462cc8bb Add Erato preamble token 2024-09-26 07:56:32 +00:00
刘悦 9c6352fcae
Update gpt-sovits-v2.js
add (Unofficial) label
2024-09-26 15:20:29 +08:00
刘悦 d8935be5e5
Update cosyvoice.js
add Unofficial label
2024-09-26 15:17:28 +08:00
Wolfsblvt 15bc0e4dba Squish the last bugs 2024-09-25 23:53:26 +02:00
Wolfsblvt 9fbcb12210 Fix third party extension findings + enum provider
- Allow extension names without the "third-party/" prefix
- Expand enum provider to show what third-party extensions are
2024-09-25 23:33:00 +02:00
Wolfsblvt 169504aa68 Refactor extension slash commands into own file
- Weird circle imports again with the slash command classes
2024-09-25 23:18:37 +02:00
Wolfsblvt 1a6f0c0922 Add /extension-exists and /extension-state 2024-09-25 23:10:00 +02:00
Wolfsblvt a6445aee1b Add /extension-toggle 2024-09-25 23:05:34 +02:00
Wolfsblvt eda7493a33 Add extension enable/disable commands
- /extension-enable
- /extension-disable
- Optional "reload" parameter
- /reload-page
2024-09-25 22:46:19 +02:00
Cohee 8344232fe5 Add common punctuation to Erato stop strings that start with a newline #2894 2024-09-25 23:14:28 +03:00
Wolfsblvt ff989b3352 Move extensions init to function 2024-09-25 21:58:46 +02:00
Wolfsblvt 8c87a24e5d Throw when left operand not provided 2024-09-25 20:51:56 +02:00
Wolfsblvt 7abb1751b1 Merge branch 'staging' into if-command-default-arguments 2024-09-25 20:46:40 +02:00
Wolfsblvt 23286d186b Fix lint issues 2024-09-25 20:44:28 +02:00
Wolfsblvt dadfc4db98 Let in/nin fall through to string + docs update 2024-09-25 20:10:14 +02:00
Wolfsblvt a11a8fe956 Update eval logic to be more streamlined 2024-09-25 19:40:13 +02:00
Cohee fbc590b641 Tabby: Unhide UI controls for XTC 2024-09-25 16:02:45 +00:00
Cohee b01ae4e0ea Fix sysprompts set with commands 2024-09-25 14:58:24 +00:00
Cohee 17e279addf Fix sysprompts set with commands 2024-09-25 14:58:07 +00:00
Cohee cd6e0747a5 Fix margin on Hint 2024-09-25 14:35:28 +00:00
Cohee 0646a47b81 Add ability to omit settings from Connection Profiles 2024-09-25 14:23:43 +00:00
Cohee b61344185c Add format and scope arguments to /listvar 2024-09-25 10:45:44 +00:00
Cohee 5a4e23f62f Fix Novel bias not displaying 2024-09-25 10:03:07 +00:00
Cohee 9047f311b7 Fix Novel bias not displaying 2024-09-25 10:01:34 +00:00
Wolfsblvt 1ad0154f0f Fix classify not using extension-defined prompt 2024-09-25 10:17:58 +03:00
Wolfsblvt 578fc8e6f1 Fix classify not using extension-defined prompt 2024-09-25 04:55:48 +02:00
Cohee a9d266d279 Change tabby inline warning. 2024-09-24 22:28:12 +03:00
Cohee 6608f5dd95 Fix the use of stop strings for Gemini 2024-09-24 22:18:28 +03:00
Cohee 50e48ffdc2 Add Google models to captioning 2024-09-24 22:01:57 +03:00
Cohee df3d7a048e Deprecate unscoped vectors 2024-09-24 21:51:10 +03:00
Cohee 8c39e20ed9 Merge branch 'staging' into deprecate-cc-or-instruct 2024-09-24 21:19:03 +03:00
M0cho 2ee3eb7004 Support gemini-1.5-series-002 and new 8B exp model 2024-09-25 02:58:56 +09:00
Cohee e730acbbe1 Port Erato presets 2024-09-24 12:55:25 +03:00
Cohee d8f268a807 Add Novel preset converter 2024-09-24 12:50:47 +03:00
Cohee 26f4d1a4ad Remove CFG for Novel, fix logitbias and text adventure bans for Erato 2024-09-24 08:12:50 +00:00
Cohee 182756fcb2
Erato (#2896)
* Erato
erato
2024-09-24 03:10:31 +03:00
Cohee 1878602647 Add note about importing legacy files 2024-09-23 23:22:24 +03:00
Cohee 780f2f712e Adjust PM editor styles 2024-09-23 23:11:28 +03:00
Cohee a408328fc6 Confirm custom PM prompt deletion 2024-09-23 22:44:49 +03:00
Cohee beeec51f93 Adjust style of in-chat marker prompts 2024-09-23 21:04:00 +03:00
Cohee 583cc4b097 Add renaming of profiles + use alphabetical sorting 2024-09-23 20:19:18 +03:00
Cohee 5b4d524bc0 Fix TC sysprompt leaking into CC prompts 2024-09-23 16:42:40 +00:00
Cohee 7dd8229df6 Return GENERATION_STARTED to original location. Add GENERATION_AFTER_COMMANDS 2024-09-23 10:07:50 +03:00
Cohee 1ea99758a8 Reuse select padding from inputs 2024-09-22 23:17:48 +03:00
Cohee d1d1586008 Clear master import file input 2024-09-22 22:47:28 +03:00
Cohee 9d38878007 Display existing prompts in instruct migration dialog 2024-09-22 22:46:31 +03:00
Cohee ece2684001 Add migrated prefix to imported legacy instructs 2024-09-22 22:33:36 +03:00
Cohee 45e92fdf20 Swap bind and enabled for instruct 2024-09-22 21:55:16 +03:00
Cohee c340766bb6 Use prefix in the migrated sysprompts 2024-09-22 21:06:03 +03:00
Cohee 4ee771b7af Expand assistant message sequences by default 2024-09-22 20:51:06 +03:00
Cohee 8bf253d293 Display names in master import 2024-09-22 20:50:36 +03:00
Cohee 63bd7611b3 Uncheck textgen preset from master export by default 2024-09-22 20:47:05 +03:00
Cohee 9101fb6573 Fix default sysprompt restoration 2024-09-22 20:06:26 +03:00
Cohee 5b65448a70 Fix local variable name 2024-09-22 20:00:09 +03:00
Cohee 3812e3bdcb Merge branch 'staging' into sysprompt-divorce 2024-09-22 19:56:29 +03:00
Cohee a18dae8f69 Remove "include newlines" checkbox from context formatting settings 2024-09-22 19:55:43 +03:00
Cohee bcc4914467 Auto-hide instruct sequences in <details> 2024-09-22 19:15:24 +03:00
Cohee 9d0ffc2d0d Merge branch 'staging' into sysprompt-divorce 2024-09-22 18:42:19 +03:00
Cohee 93bf87b035 Shut tokenization errors if not using ooba
Closes #2849
2024-09-22 17:44:19 +03:00
Cohee 8c5b02d2ea Silently redirect tokenization to the next matching tokenizer 2024-09-22 17:25:56 +03:00
Cohee ba52ceb979 Add GENERATION_ENTERED event 2024-09-22 15:19:17 +03:00
Cohee e814d8c019 Adjust default extension prompts 2024-09-22 13:47:29 +03:00
Cohee b2eab37a89 Adjust default extension prompts, remove square brackets 2024-09-22 12:58:46 +03:00
Cohee 1864b7d868 Merge branch 'staging' into sysprompt-divorce 2024-09-22 12:35:28 +03:00
Cohee 1d8e5f841b Fix /imagine command help 2024-09-22 12:33:16 +03:00
Cohee 94977e71ff Merge OpenAI init functions 2024-09-22 12:29:32 +03:00
Cohee 9206e6d948 Await locales initialzation 2024-09-22 12:22:50 +03:00
Cohee ade6ef8af8 Better customized sysprompt migration 2024-09-22 12:20:07 +03:00
Wolfsblvt 8ae7c2330a Adjust /while to fit new optional args 2024-09-22 08:09:19 +02:00
Wolfsblvt cfe08d3a53 Refactor evalBoolean code 2024-09-22 07:58:16 +02:00
Wolfsblvt aea95adf60 /if allow "rule" and "right" to be optional 2024-09-22 07:42:51 +02:00
Wolfsblvt a1af768b02 Refactor /if to fromProps 2024-09-22 02:32:43 +02:00
Wolfsblvt 4e907ff3e8 Fix /hide not targeting not visible messages 2024-09-21 23:14:31 +02:00
Cohee 6179c361dc One step closer to perfect 2024-09-21 23:46:57 +03:00
Cohee a948b014ca Align selects with the buttons 2024-09-21 23:36:28 +03:00
Cohee 9a8b38517c Fix button label consistency 2024-09-21 23:30:31 +03:00
Cohee 74a8499e0e Fix raw textgen preset import via master 2024-09-21 23:28:38 +03:00
Cohee c2f945ef88 Implement master AF import / export 2024-09-21 23:21:19 +03:00
Cohee bf5b6090eb Remove the concept of default context and instruct. Swap columns 2024-09-21 22:37:15 +03:00
Cohee e469c82c97 Hide individual imports/exports 2024-09-21 22:25:21 +03:00
Cohee d66b36e1c3 Merge branch 'master-sets' into sysprompt-divorce 2024-09-21 22:15:47 +03:00
Cohee c2114bc83d Merge branch 'staging' into sysprompt-divorce 2024-09-21 22:15:37 +03:00
Cohee ae53527c23 #2888 Hide non-functioning checkboxes from Comfy 2024-09-21 16:36:20 +03:00
Cohee d3408c496f Change a log type for empty prompt messages 2024-09-21 16:23:59 +03:00
Cohee 8030ce9ddd Unify select styles across browsers 2024-09-21 14:28:43 +03:00
Cohee 165cc39a9a Set max-height on popup body
Fixes #2886
2024-09-21 14:06:57 +03:00
Cohee 0c4366db44
Merge pull request #2881 from SillyTavern/bug/2879
Fix mobile screen funkiness by smashing it with a big hammer
2024-09-21 13:49:36 +03:00
Cohee aaf8fa13e5 Remove condition 2024-09-21 13:18:52 +03:00
AlpinDale a5fea35f12 chore: update aphrodite samplers 2024-09-21 08:18:06 +00:00
Cohee e122dd2d7a Merge branch 'staging' into sysprompt-divorce 2024-09-21 02:11:42 +03:00
pandora 125498cfd5
Fixing Mistral Templates (#2883)
* Update Mistral.json

* Rename Mistral.json to Mistral V1.json

* Create Mistral V2 & V3.json

* Create Mistral V3-Tekken.json

* Update and rename Mistral.json to Mistral V1.json

* Update Mistral V1.json

* Update Mistral V2 & V3.json

* Update Mistral V2 & V3.json

* Update Mistral V3-Tekken.json

* Update Mistral V1.json

* Create Mistral V2 & V3.json

* Create Mistral V3-Tekken.json

* Update Mistral V1.json

* Update Mistral V2 & V3.json

* Update Mistral V3-Tekken.json

* Update Mistral V1.json

* Update Mistral V2 & V3.json

* Update Mistral V3-Tekken.json

* Update Mistral V1.json

* Update Mistral V2 & V3.json

* Update Mistral V1.json

* Update Mistral V3-Tekken.json

* Update Mistral V1.json

* Update Mistral V2 & V3.json

* Update Mistral V3-Tekken.json

* Add to content index

* Remove example separators

* Simplify context fillers

* Add a hack for proper V1 format with names

* Readability

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-09-21 01:56:02 +03:00
Cohee e2f88e6243 Add Unified sampling for Novel 2024-09-21 00:24:52 +03:00
Cohee 8efe0b6437 Add Min P for Novel 2024-09-20 22:42:56 +03:00
Cohee 7ecd0602df Add buttons 2024-09-20 21:49:01 +03:00
Cohee 462b2ea7b2 Fix sysprompt dependency on instruct 2024-09-20 21:27:04 +03:00
Cohee 392edfaca1 Merge branch 'staging' into sysprompt-divorce 2024-09-20 20:57:07 +03:00
Cohee e60d818a88 Fix placeholder doc link 2024-09-20 20:53:05 +03:00
Cohee 2b10954002 Fix mobile screen funkiness by smashing it with a big hammer
Fixes #2879
2024-09-20 20:34:29 +03:00
Cohee 4e5a997e63 Set default sysprompt to neutral chat 2024-09-20 00:35:47 +03:00
Cohee 1819604f31 Remove brackets from default SD prompts 2024-09-20 00:29:33 +03:00
Cohee 986d33fcdd
Commit suggestion
Co-authored-by: Wolfsblvt <wolfsblvt@gmail.com>
2024-09-20 00:26:29 +03:00
Cohee 6fb6400168 Add hints to migration dialog 2024-09-20 00:21:31 +03:00
Cohee a506cf8c90 Fix command description 2024-09-20 00:10:27 +03:00
Cohee 1d124ba770 Use one callback for setting sysprompt state 2024-09-20 00:05:57 +03:00
Cohee 1f45774cf6 Document fuzzy matches 2024-09-20 00:03:47 +03:00
Cohee 75f44e24e9 Use Fuse only as fallback 2024-09-20 00:02:14 +03:00
Cohee 1dd3be9479 Use init function 2024-09-19 23:59:58 +03:00
Cohee 1e5149f209 Coalesce no name 2024-09-19 23:58:31 +03:00
Cohee 22f1b110e9 One extra check wouldn't hurt 2024-09-19 23:49:23 +03:00
Cohee 88c47fccdf Fix being unable to save instruct templates 2024-09-19 23:42:41 +03:00
Cohee d0657161a1 Merge branch 'staging' into sysprompt-divorce 2024-09-19 23:14:40 +03:00
Cohee 9197ed7fce Fix connection profile for CC setting incorrect source by preset 2024-09-19 23:12:33 +03:00
Cohee 0d294c5371 Merge branch 'staging' into sysprompt-divorce 2024-09-19 22:59:53 +03:00
Cohee 5269725f1c
Merge pull request #2872 from SillyTavern/super-saiyan-prompt-manager
Allow setting role, position and depth for marker prompts
2024-09-19 22:58:52 +03:00
Cohee ed47d51c93
Merge pull request #2875 from ceruleandeep/feature/handleChubChatData
Fix crasher in script.js:displayChats, add minimal support for importing chat histories in Chub format
2024-09-19 22:40:41 +03:00
Cohee 9016985827 Undo second substitution #2874 2024-09-19 15:17:11 +00:00
ceruleandeep a2d9526cdf Minimal support for importing chat histories in Chub format
Fix crasher in script.js:displayChats if user has directly put a Chub chat file into their user data

Let eslint tidy a few things
2024-09-19 14:20:05 +10:00
steve green 8edc999854
Second macro evaluation of WI for all positions
- The first macro evaluation occurs when the entry is activated.
- The second macro evaluation occurs after the regex replacement 
  * and only when the entry is before or after the char definition
this may cause confusion for users.
I'm not sure if this is the right thing to do, but it's one way I can think of to make all this make more sense.
2024-09-19 10:16:42 +08:00
Cohee a782dcec33 Add Mistral Nemo downloadable tokenizer 2024-09-19 00:10:22 +03:00
Cohee 0f2daede51 Merge branch 'staging' into sysprompt-divorce 2024-09-18 23:40:46 +03:00
Cohee a4e673fd0a Exclude examples from allowed to be edited 2024-09-18 21:55:23 +03:00
Cohee 82b0733d88 Allow setting role, position and depth for marker prompts 2024-09-18 21:51:10 +03:00
steve green 157461ef7f
fix `\x01` display in modern WI editor 2024-09-19 00:20:31 +08:00
Cohee 5a3fc9b8db Fix typo 2024-09-18 01:07:12 +03:00
Cohee b0c537d014 Migrate system prompts from imported instruct template 2024-09-18 00:38:15 +03:00
Cohee 38d24f4b59
Merge pull request #2866 from ceruleandeep/feature/hordeModelInfo
Display model metadata in Horde model picker
2024-09-17 22:11:46 +03:00
Cohee a73b8077f6 Display more of the description. Remove debug log 2024-09-17 22:06:54 +03:00
Cohee dcbaa0787d
Merge pull request #2863 from SillyTavern/unify-user-avatar
Unify default user avatars
2024-09-17 21:47:37 +03:00
Cohee 60df924bec MistralAI: Add Pixtral to models and captioning 2024-09-17 21:44:25 +03:00
Cohee 15f7d9407a Remove console.debug statement in saveMetadataDebounced function 2024-09-17 14:03:28 +00:00
Cohee 8546f498bf Emit GENERATION_STARTED after processing commands 2024-09-17 13:55:10 +00:00
Cohee 0207794a2b Fix Qwen and Command tokenizers not used for logit bias 2024-09-17 13:01:19 +00:00
Cohee 0bc6a572c6 Add slash commands and connection profiles support 2024-09-17 12:14:13 +00:00
Cohee 912bebeb01 Remove deprecated control property 2024-09-17 11:41:23 +00:00
Cohee 2f7d694f54 Migrate sysprompts from instruct 2024-09-17 11:33:24 +00:00
Cohee b377a2b7d3 Decouple system prompts from instruct mode 2024-09-17 10:37:36 +00:00
ceruleandeep 146e82e44a Add model metadata to Horde models endpoint
Display model metadata in Horde model picker
2024-09-17 15:30:06 +10:00
Cohee 0b0bd27321
Merge pull request #2857 from SillyTavern/wi-delay-recursion-levels
WI "Delay until recursion" levels to delay delayed entries until other delayed entries are fully matched
2024-09-17 01:00:03 +03:00
Cohee 8ec509c777 Unify default user avatars
Closes #2862
2024-09-16 22:08:40 +03:00
Cohee 05df2be047 Trim renamed chat name 2024-09-16 16:19:54 +00:00
Alexander Abushady eb6097b1e8 Fixed Aphrodite Seed
Aphrodite's seed value needs to be undefined to be random.
2024-09-16 08:21:56 -04:00
Cohee 3e2b892aae Sanitize file names on chat renaming 2024-09-16 11:02:09 +00:00
Cohee dcaa8d5e9c Initialize talkinghead on extras connection
Closes #2850
2024-09-16 09:17:23 +00:00
Cohee 9ef3385255
Implement collection scopes for vector models (#2846)
* Implement collection scopes for vector models

* Update makersuite-vectors.js to use Gemini API text-embedding-004 model

* Add model scope for Google vectors

* Fix purge log

* Refactor header setting

* Fix typo

* Only display UI warning if scopes disabled

* Remove i18n attribute

---------

Co-authored-by: ceruleandeep <83318388+ceruleandeep@users.noreply.github.com>
2024-09-16 09:29:39 +03:00
Wolfsblvt c45e42ce7d Fix WI joiner/mather not being at the start 2024-09-16 05:18:37 +02:00
Cohee 7eb7204dc7 Remove link to Extras from welcome 2024-09-16 00:46:43 +03:00
Cohee ca4d3c5ffe
Refactor instruct names behavior controls (#2837)
* Refactor instruct names behavior controls
Closes #2819

* Remove current persona from force names

* Don't add current user name in groups

* Revert to old text

* Add titles to names behavior

* Proper default for names_behavior
2024-09-16 00:46:03 +03:00
Cohee 08f2b73ab8
Preserve neutral chat on reloading with commands (#2848)
* Preserve neutral chat on reloading

* Restore neutral on deleting character with bulk
2024-09-16 00:38:41 +03:00
Cohee 11ff19a161 Cut UI texts 2024-09-16 00:10:00 +03:00
Wolfsblvt 984790f53c Fix eslint + reset level on toggle 2024-09-15 22:31:29 +02:00
Wolfsblvt eeed072ebb Add UI element for delay recursion level
- Tied and only visible to the "delay until recursion" toggle
- Will set it to a numerical value if used, otherwise keeps true/false state of the toggle
2024-09-15 22:15:24 +02:00
Wolfsblvt 413f6a0379 Expand logging for WI and scan states 2024-09-15 20:28:03 +02:00
Cohee cc2e82ce8f Fix execute on new chat not saving 2024-09-15 18:52:56 +03:00
Cohee 6393eda81e Auto-add OpenRouter captioning models 2024-09-15 18:38:44 +03:00
Cohee 44cc81fa73 Save models before emitting status change 2024-09-15 18:14:40 +03:00
Wolfsblvt f0a3886b42 Reset scan state to recursion on more available 2024-09-15 17:02:48 +02:00
Wolfsblvt 609439def1 WI delay until recursion levels 2024-09-15 16:56:21 +02:00
Cohee 30af741c3e Deprecated forced instruct on OpenRouter for Chat Completion 2024-09-15 10:54:12 +03:00
Cohee 2478e17164 Remove legacy API for Aphrodite 2024-09-15 08:05:53 +03:00
Cohee 1fe4a230fe Record tokenizer to itemized prompts. 2024-09-14 22:05:59 +03:00
Cohee 2b08d61c27
Merge pull request #2843 from steve02081504/patch-1
join chatlog with `\x01`
2024-09-14 21:51:36 +03:00
Cohee f1f74217cc Move joiner into constant 2024-09-14 21:50:58 +03:00
Cohee 5b8c149947
Merge pull request #2841 from AlpinDale/aphrosamplers
chore: slight refactor of aphrodite samplers
2024-09-14 16:55:40 +03:00
Cohee 50de678980 Hide beam search for vllm. It never worked. 2024-09-14 16:53:21 +03:00
Cohee f0d361bc7a Remove unused beam search 2024-09-14 16:41:22 +03:00
Cohee 28837ff883 Hard code include_stop_str_in_output 2024-09-14 16:32:50 +03:00
Cohee 33e6ffd36e Update translations 2024-09-14 16:31:04 +03:00
AlpinDale 1cc935796f fix early_stopping 2024-09-14 12:45:29 +00:00
AlpinDale fde76069e0 remove beam search 2024-09-14 12:42:21 +00:00
AlpinDale 9c94348491 clean up 2024-09-14 12:38:19 +00:00
RossAscends b376ea884b
Markdown hotkeys for textareas (#2800)
* initial commit

* dont hijack all ctrl keybinds

* change strikethrough bind, convert to subscribable class, target key textareas

* better early return, hotkey reversiblility

* possible undo solution, key checks to switch

* execCommand alternate, perfect Undo

* format full word when caret is in the middle of a word

* double backticks do nothing, dummy.

* ctrl+K for ....'K'ode snippet...

* remove console logs

* Add new hotkeys to help

* Allow hotkeys in message edit textarea

* add markdown hotkey help text

* help text addition to mention hotkeys work in message edits

* add markdown hotkeys to WI entry content box

* disengage if alt/win pressed, universal prevent default

* disengage if shiftKey pressed

* re-allow shift for one special case

* add MD hotkeys toggle in user settings

* add markdown enabled icon on relevant textareas when appropriate

* Add icon to help

* Uniform formatting

* Add opacity to icon

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-09-14 14:16:26 +03:00
steve green 96fe4c4ab6
join chatlog with `\x01` 2024-09-14 10:05:30 +08:00
Cohee 0ed39d19ec Fix TTS falsy checks 2024-09-13 21:51:05 +03:00
Cohee 01b83f893b Fix translation key removal 2024-09-13 21:48:35 +03:00
Cohee a13d3f643c Fix shift+click in chat manager 2024-09-13 21:35:42 +03:00
Cohee 917a994ca8 Merge branch 'staging' into small-bookmark-updates 2024-09-13 21:10:12 +03:00
Cohee eeee206887 Fix logit_bias comment 2024-09-13 21:03:04 +03:00
Cohee d99a5eba2a Remove empty message looping 2024-09-13 20:52:34 +03:00
Cohee db2b356942 Remove stop for o1 2024-09-13 20:47:41 +03:00
Wolfsblvt 6257f8b7f9 Fix /checkpoints-list with ids 2024-09-13 19:44:06 +02:00
Cohee fefa6a0f5b Update old code style 2024-09-13 20:31:50 +03:00
Wolfsblvt dc7bc30f4b Fix /checkpoint-create "mesId" argument 2024-09-13 19:29:54 +02:00
Cohee 084eebf610 Update /caption mesId argument name 2024-09-13 20:28:19 +03:00
Cohee 45cfc532b1 Redirect max_tokens to max_completion_tokens 2024-09-13 19:56:48 +03:00
Cohee 6371b4929f Fix HTML spacing 2024-09-13 19:47:53 +03:00
Cohee 6d79cc015a Add OpenAI o1 2024-09-13 19:44:12 +03:00
Cohee 854541f4ba
Merge pull request #2838 from SillyTavern/genraw-error-logging
Improve error handling of /genraw and /gen
2024-09-13 14:23:16 +03:00
Cohee 8dd7a97eb3 Prevent duplicate toasts 2024-09-13 11:22:12 +00:00
Cohee 620847c4d6 Fixed logs 2024-09-13 11:12:41 +00:00
Cohee 0aede54cf1 Fix throw on /gen 2024-09-13 11:10:24 +00:00
Cohee 88fab65a8f Fix /gen log 2024-09-13 11:01:59 +00:00
AlpinDale efd477da04 chore: slight refactor of aphrodite samplers 2024-09-13 10:34:06 +00:00
Cohee 34b2707895 Try to preserve old hashes 2024-09-13 10:52:35 +03:00
Cohee 7a7673432a Calculate entry hash before replacing macros
Fixes #2762
2024-09-13 10:47:25 +03:00
Wolfsblvt 73c14711e1 Fix checkpoint create auto generate (and more)
- Fix empty checkpoint name on mes click to auto generate
- Change /checkpoint-create to not require name and auto generate
- Fix popup input type returning empty string instead of null on empty input field
2024-09-12 23:34:37 +02:00
Wolfsblvt f5b68893d0 Improve error handling of /genraw and /gen
- /generate TC backend returns more status/error texts
- Fix /genraw and /gen returning null/undefined
- Logging errors on /genraw if backend throws an error
- Fixes #2836
2024-09-12 22:41:53 +02:00
Cohee d082c2f14d Merge branch 'staging' into small-bookmark-updates 2024-09-12 23:10:33 +03:00
Cohee ace3e94299 Merge branch 'staging' into replace-ajax 2024-09-12 20:48:08 +03:00
Cohee 81cd38d4f7 #2832 /ask text non-required 2024-09-12 20:13:05 +03:00
Cohee 1762e8d83f Replace ajax with fetch in character create/edit 2024-09-12 10:43:40 +00:00
Cohee 6a3b226da2 Still fighting /ask corruptions #2832 2024-09-12 10:02:37 +00:00
Cohee 4e67cc1bc4 One more /ask corruption fix
Closes #2832
2024-09-12 09:50:06 +00:00
Cohee 2379fd5970 Fix /ask corruption + add return value
Fixes #2832 and a skill issue
2024-09-12 10:19:03 +03:00
Cohee ac03cbb0ab
Merge pull request #2826 from SillyTavern/fix-ask
Fix restoration of current character after /ask
2024-09-11 22:51:28 +03:00
Cohee 80d27273a2 Add polyfill for toSorted
Fixes #2827
2024-09-11 20:35:42 +03:00
Cohee e0c3ac84a2 Fix alignment of swipe counter 2024-09-11 19:52:31 +03:00
Cohee 86d9a80ff8 Fix restoration of current character after /ask
Fixes #2825
2024-09-11 19:34:26 +03:00
Cohee 9e522b0330 #1358 Add findLastIndex polyfill for old Safari 2024-09-11 19:22:31 +03:00
Wolfsblvt f6b240b294 Add Assistant to char enum provider 2024-09-10 22:15:56 +02:00
Wolfsblvt fbcd546db2 Fix lint issues in enum providers 2024-09-10 22:08:36 +02:00
Cohee c4cc33cad9
Merge pull request #2823 from SillyTavern/fix-sendas-forced-avatar
Fix `/sendas` to not always enforce avatar, if not needed in solo chats
2024-09-10 22:38:44 +03:00
Cohee aed4a8e36d It was very close. 2024-09-10 22:37:53 +03:00
Cohee ea6fa265c7 /instruct command: add forceGet argument. Document that it enables instruct mode if disabled. 2024-09-10 22:33:00 +03:00
Cohee 59e9fda312 /instruct command: don't return current template name if instruct mode is disabled 2024-09-10 22:20:54 +03:00
Wolfsblvt 748005b903 Remove unnecessary double popup for replace 2024-09-10 21:19:35 +02:00
Wolfsblvt 27e0905a1b Changes based on code review 2024-09-10 21:06:31 +02:00
Wolfsblvt d21b24666a fix neutral avatar again 2024-09-10 20:02:26 +02:00
Wolfsblvt a989ccf318 Don't force avatar on neutral assistant chat 2024-09-10 19:44:27 +02:00
Wolfsblvt 9e73e2598e Small fix group chats not using default avatars 2024-09-10 19:15:49 +02:00
Wolfsblvt 894b95679c Merge branch 'staging' into small-bookmark-updates 2024-09-10 19:05:05 +02:00
Wolfsblvt 10a23012f3 Fix /sendas not needed to enforce avatar
- Fixes #2820
2024-09-10 18:46:38 +02:00
Cohee 87f2dd9ae5 Remove pollinations refine toggle 2024-09-10 10:54:41 +00:00
Cohee 8948354bf0 Load pollinations models from an endpoint 2024-09-10 10:51:48 +00:00
Cohee 4522d3cbae Filter null-values from /model selection 2024-09-10 10:25:23 +00:00
Cohee b2705d1396
Merge pull request #2806 from SillyTavern/bypass-command-string-parser
Execute profile commands callbacks directly
2024-09-10 12:06:10 +03:00
Cohee 1582974ba9 Fix context checkbox squish 2024-09-10 11:48:33 +03:00
Cohee ec0e31482d Tabby inline model disclaimer 2024-09-10 01:36:29 +03:00
Cohee b0214298fd
Merge pull request #2810 from SillyTavern/tabby-models-list
Tabby models list
2024-09-10 00:37:31 +03:00