Commit Graph

4917 Commits

Author SHA1 Message Date
Wolfsblvt 4c7e5fbd60 Allow popup buttons returning 'null' for cancelled 2024-07-12 00:29:16 +02:00
Cohee c90a25e0cd Fix import syntax 2024-07-12 01:19:34 +03:00
Cohee dcb416cb00
Merge pull request #2509 from SillyTavern/preset-manager-popups
Preset manager popups
2024-07-12 01:17:05 +03:00
Cohee f74c212945 Fix popup type 2024-07-12 01:12:25 +03:00
Cohee f53fa0d19d Add missing await 2024-07-12 01:09:46 +03:00
kwaroran 3b0e07d093 move decorators effect right before constant 2024-07-12 06:43:19 +09:00
kwaroran 33347f1c7c make decorator only parse once 2024-07-12 06:42:06 +09:00
kwaroran 2d0ad688f1 fix world info decorator fallback 2024-07-12 06:30:35 +09:00
kwaroran 16f4f58a13 fix macro to handle unicode points 2024-07-12 06:26:23 +09:00
Wolfsblvt f2089ed994 Linting in world-info.js 2024-07-11 23:23:26 +02:00
Cohee 3809d3d4ac Add import confirmation 2024-07-12 00:15:42 +03:00
Cohee a64a2dd83e Export confirmation of sensitive preset fields 2024-07-12 00:00:39 +03:00
Wolfsblvt 240f3f2c49 fix linting issues in enum providers 2024-07-11 22:49:32 +02:00
Wolfsblvt 8cbb80f44f Change 'world' enum provider query field, not UI 2024-07-11 22:43:56 +02:00
Wolfsblvt 63a0ebb885 Move openai slash commands to init function 2024-07-11 22:43:25 +02:00
Cohee b80ed958ae Run summarize after QR execution 2024-07-11 22:26:49 +03:00
Cohee a6e58845cc #2515 Use /cut in /del 2024-07-11 21:35:39 +03:00
Cohee e22b18ce80 Don't overextend edit textarea height 2024-07-11 21:25:52 +03:00
Cohee 4895b6def8 Use enumList for /fuzzy 2024-07-11 21:19:09 +03:00
Cohee c4aed23cf7 Don't overextend input textarea height on autofit 2024-07-11 21:18:26 +03:00
Cohee aadc8d74a2 #2513 Add 'mode' argument for /fuzzy 2024-07-11 21:05:42 +03:00
Cohee 9754d5361f Decreate edit textarea debounce duration 2024-07-11 15:37:30 +00:00
kwaroran 5ca23d7866 Add reverse macro 2024-07-11 15:11:43 +09:00
kwaroran c3185d34c7 Add v3 writing and decorators 2024-07-11 15:11:35 +09:00
LenAnderson 47eb12750d undo no chat names 2024-07-10 21:47:42 -04:00
LenAnderson aebfefb3a2 ask user to confirm proxy connections 2024-07-10 20:54:09 -04:00
Wolfsblvt 3983eef827 fix linting issue 2024-07-11 01:38:28 +02:00
Wolfsblvt 307a579f80 Move preset manager popups to new Popup 2024-07-11 01:37:56 +02:00
Theros 51f09c1382 Changes: use Fail message as toast title, only show actual message with fallback. 2024-07-11 00:12:39 +01:00
Theros fee36419ac Includes captioning error messages in toast 2024-07-10 23:41:06 +01:00
Cohee adc3eeea51 Fix /trigger getting stuck on generation lock timeout 2024-07-11 00:32:45 +03:00
Cohee edb4856840 Fix SD wand item not working with reduced motion on phone 2024-07-10 23:38:05 +03:00
Cohee 526d41edc3 Expose playFullConversation to UI 2024-07-10 23:32:00 +03:00
Cohee fb7e8e73ee
Merge pull request #2504 from SillyTavern/extension-list-info
Extensions & Assets UI updates - More info, tooltips & helpful guides
2024-07-10 21:47:09 +03:00
Cohee 21de199b0f Sanitize entered URLs 2024-07-10 21:44:09 +03:00
Cohee 75382b77ea Rewrite some messages 2024-07-10 21:38:15 +03:00
Wolfsblvt 75d4a06ae6 Change asset load confirm to new popup 2024-07-10 20:10:16 +02:00
Wolfsblvt ec10090cd4 Fit/fix flash duration animation to length 2024-07-10 19:43:58 +02:00
Cohee 2f7a60ef36
Merge pull request #2503 from SillyTavern/fix-locale-init
Move locale file load awaits into its init function
2024-07-10 20:24:56 +03:00
Wolfsblvt 91b5be2554 Give hint on extension link as asset list :3 2024-07-10 18:24:09 +02:00
Wolfsblvt 03d4f86d59 Make it flash and be more obvious 2024-07-10 18:12:01 +02:00
Wolfsblvt 0987fd34b9 Add info and explanation to asset list area 2024-07-10 17:59:44 +02:00
Wolfsblvt 736b28020f Move locale awaits into its init function 2024-07-10 17:56:01 +02:00
Cohee a357654c10 Update /len command help 2024-07-10 08:11:16 +00:00
Lllama 9da4dc306c Enable DRY for koboldcpp
Enable DRY repetition penalty parameters for koboldcpp. This should
only be merged after: https://github.com/LostRuins/koboldcpp/pull/982
2024-07-10 00:35:36 -07:00
Cohee 93935e9e9c Fix warning message appearing where it shouldn't 2024-07-10 09:14:14 +03:00
Cohee d5c2bf3781 Init slash commands earlier 2024-07-10 00:22:21 +03:00
Cohee 2ff16533df Limit visibility of warning to only sources that have the input visible 2024-07-10 00:09:08 +03:00
Cohee daa582bb73 Fix /echo mishandling non-string values 2024-07-09 01:26:15 +03:00
Wolfsblvt abdd1f3e6e Update some SillyTavern.getContext() fields 2024-07-08 23:26:26 +02:00
Cohee 930763a7ca Update proxy warning. Hide with CSS if you don't like it. 2024-07-08 22:55:11 +03:00
Cohee 00de522a64 Add None continue postfix for chat completion 2024-07-08 20:33:37 +03:00
Cohee 21360a97fc Fix /continue getting stuck on API errors 2024-07-08 20:12:52 +03:00
Cohee f8a55d51d2 Clearer wording and examples 2024-07-08 20:02:21 +03:00
Wolfsblvt aad65c9273 Added /continue "await" arg 2024-07-08 18:43:55 +02:00
Cohee 79069b49b8 Replace body height units from svh to dvh 2024-07-08 15:06:06 +00:00
Cohee 0543647d68
Merge pull request #2492 from fizzAI/staging
Add Gemma 2 9b to available Groq models
2024-07-08 10:47:10 +03:00
fizzAI 7e3da0b092 oopsie 2024-07-07 20:41:09 -04:00
fizzAI f6a50fa0cd Add Gemma 2 9b to available Groq models 2024-07-07 20:36:40 -04:00
Wolfsblvt e26ea47554 Fix eslint issues in tags.js 2024-07-08 02:36:24 +02:00
Wolfsblvt 26b66e9b49 Remove "no tags" toast on tags import 2024-07-08 02:26:40 +02:00
Cohee f7e2d72ac7 Fix eslint 2024-07-07 22:40:03 +03:00
Cohee 40181ef52e
Fix span not closed 2024-07-07 22:36:57 +03:00
kingbri 0672c8422e Textgen: Add permissions check for TabbyAPI keys
There's no formal permissions checking in ST's UI, so add a temporary
check in the server endpoint before requesting a download.

Signed-off-by: kingbri <bdashore3@proton.me>
2024-07-07 14:40:24 -04:00
kingbri 69077f6a6e Textgen: Add model downloading for TabbyAPI
Tabby has a HuggingFace downloader API endpoint. Add direct support
in SillyTavern by using the same method as ollama, but with the correct
parameters exposed.

Signed-off-by: kingbri <bdashore3@proton.me>
2024-07-07 14:04:04 -04:00
Cohee ed0e522c6d [BUG] UI shifting in mobile browser #2488 2024-07-07 20:12:04 +03:00
Cohee 6ff406f6ea
Merge pull request #2485 from Esalarc/promptdiff
Adding diff functionality to prompt dialog
2024-07-07 10:17:01 +03:00
Cohee 792c077267 Fix for chat completion prompts 2024-07-07 10:15:53 +03:00
David Fedolfi 014ef0cc4f Adding diff functionality to prompt dialog
adding another command button that leverages https://github.com/google/diff-match-patch/tree/master to generate a diff of this prompt to the prior one.
2024-07-06 22:04:12 -04:00
Wolfsblvt 03a8b14a93 Change min activation scan to full increased range 2024-07-06 20:00:27 +02:00
Cohee 57175b4229 Don't send streaming request if generation was aborted before the streaming processor creation 2024-07-06 17:39:50 +03:00
Cohee 6dbbf89d65 #2482 Fix embedded content confirmation 2024-07-06 16:55:57 +03:00
Cohee a6eec7ba1a Fix 01.ai model nullifying on load 2024-07-06 15:30:21 +03:00
Cohee c55ad419dd Clean-up console logs 2024-07-06 15:29:47 +03:00
Cohee c6e612f15a Add WI prefix to timed effect logs 2024-07-06 15:26:45 +03:00
Cohee 9327ee4b8e Log which entries actually end in the prompt 2024-07-06 15:07:02 +03:00
Cohee 34d6cdfbcc Merge branch 'staging' into wi-processing-refactoring 2024-07-06 14:58:48 +03:00
M0cho 3b85cc2a4c
Improved ja-jp translations related to 'World Info' 2024-07-06 20:18:05 +09:00
M0cho 7f145c2c2d
Improve translations ja-jp, especially those related to World Info. 2024-07-06 20:13:42 +09:00
Cohee 6bdbe7299f Merge branch 'staging' into vllm-tc 2024-07-06 11:18:38 +03:00
Wolfsblvt ff23808d3b Add WI toggle to include/exclude names in scanning 2024-07-06 03:23:02 +02:00
Wolfsblvt 5e89dc35e3 Fix min activations not checking recursion 2024-07-06 02:44:26 +02:00
Wolfsblvt 02989a9a78 Reduce nesting and simply WI check loop 2024-07-06 02:35:41 +02:00
Wolfsblvt 0b9431cd9a Remove double-loop nesting of WI key processing 2024-07-06 01:53:26 +02:00
Cohee 66c4824a8a Fix ComfyUI workflow not saving 2024-07-06 01:14:47 +03:00
Cohee b5f77a2164 Fix ESLint squigglies 2024-07-06 00:42:49 +03:00
Wolfsblvt e7382e184d Reduce log amount 2024-07-05 22:50:20 +02:00
Wolfsblvt 831773216a Refactor probability checking conditions
- This changes the flow and checking of the conditions on probability roles. Bit "bigger" refactoring
2024-07-05 21:59:31 +02:00
Wolfsblvt f7abd3f5d9 Break out on result of secondary key checks 2024-07-05 21:16:43 +02:00
Wolfsblvt 6da36c630e No need to get scan text for each key 2024-07-05 20:52:24 +02:00
Wolfsblvt 56c6955f23 WI entries with world name obj format
- Changed format of WI entry objects for debugging purposes. Moved the world name right after uid, so it looks better in debugger
2024-07-05 20:50:30 +02:00
Wolfsblvt dfa2236fba Refactor WI log messages
- This should only be changes to logging messages, and splitting some if into multiple blocks. No actual code/flow changes
2024-07-05 20:49:17 +02:00
Cohee 47d99a0047 More symmetric animation 2024-07-05 01:54:53 +03:00
Cohee b784e50eb7 Speedup pop-out animation 2024-07-05 01:47:07 +03:00
Cohee be8eb19139 Fix enum value
I wasted @Wolfsblvt half an hour
2024-07-05 01:01:55 +03:00
Cohee 54dea56a77 Selectable VAE for AUTO1111 2024-07-05 00:59:34 +03:00
Cohee f0967c6297 Merge branch 'release' into staging 2024-07-04 23:57:46 +03:00
Cohee 3d86d110e8 Ignore Safari cope for large popups 2024-07-04 23:57:18 +03:00
Cohee be518d3668 More Safari weirdness cope 2024-07-04 23:42:41 +03:00
Cohee 7883d091be Fix app onboarding on Safari 2024-07-04 23:37:44 +03:00
Cohee ebb5c9762a Fix app onboarding on Safari 2024-07-04 23:37:18 +03:00
Cohee 81f6520354
Merge pull request #2468 from SillyTavern/wi-scan-state
Fix min activations for non-recursable entries
2024-07-04 23:09:25 +03:00
Cohee b682519042 Hide sampling method select from unsupported backends 2024-07-04 23:00:33 +03:00
Cohee 220051b933 Type cast to string 2024-07-04 22:54:43 +03:00
Cohee 5da3921907 Make generation actually work 2024-07-04 22:51:47 +03:00
Cohee e32b0cc223 Move Stability generation to backend 2024-07-04 22:36:17 +03:00
Cohee 6608e530c5 Merge branch 'staging' into stability 2024-07-04 21:51:30 +03:00
Cohee 8fe111cc71
Merge pull request #2469 from Esalarc/group_chat_queue_display
Adding display of queued speakers in group chat windows.
2024-07-04 20:34:41 +03:00
Cohee ffea974b07 Reduce font-size of position value 2024-07-04 20:33:00 +03:00
Cohee 8eda343aee Remove old field reference 2024-07-04 20:27:41 +03:00
Cohee 4c66588312 Reset queue order when opening another group chat 2024-07-04 20:23:27 +03:00
Cohee 04b46a270d Replace border with outline 2024-07-04 20:20:10 +03:00
Cohee 9f485d3956 Fix code formatting 2024-07-04 20:16:13 +03:00
Cohee c1b395fc49 Fix char data typedef 2024-07-04 20:14:50 +03:00
Cohee 1185e20002 Prune i18n strings 2024-07-04 20:13:22 +03:00
Cohee a4a0ec1669 Fix i18n attributes 2024-07-04 20:12:58 +03:00
Cohee 03c9e3f168
Merge pull request #2475 from SillyTavern/fix-trim-macro
Fix trim macro breaking on CRLF
2024-07-04 20:10:45 +03:00
Cohee 3918192dee Prefer const variables 2024-07-04 20:06:44 +03:00
Wolfsblvt 558f6d15a5 Fix trim macro breaking on CRLF 2024-07-04 19:05:03 +02:00
Cohee 0ec79427ff
Merge pull request #2474 from Esalarc/talkativeness
Tweaks to activateNaturalOrder
2024-07-04 20:02:39 +03:00
Cohee 73ac6475bd Restyle PM buttons 2024-07-04 19:59:39 +03:00
Succubyss ddcce55f10
Changes the name of the `Absolute` label for Position within Prompt Manager's edit screen to `In-chat` (#2470)
* bad dumb label: Absolute → good actual label: In-chat

* Fix i18n attribute

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-07-04 19:57:29 +03:00
David Fedolfi e097e42ff8 Tweaking activateNaturalOrder
Changes to activateNaturalOrder to try to keep silent characters silent.
2024-07-04 10:25:48 -04:00
David Fedolfi 2fccd83083 Group Chat Queue Display
- removing queue position from character object - storing in map in group_chat.js instead
- moving queue position to div
- moving '#' from js to css ::before
- adding option to settings
- cleaning up guards
2024-07-04 09:52:56 -04:00
WBlair1 79a1b15600 API attemped fix 2024-07-03 17:14:46 -07:00
WBlair1 38da3c22c0 I can't figure out how to hide CFG scale 2024-07-03 16:31:35 -07:00
WBlair1 1af76af4d7 Merge branch 'staging' of https://github.com/SillyTavern/SillyTavern into staging 2024-07-03 16:31:15 -07:00
Cohee 2cba5e3a45 Revert blur removal 2024-07-04 01:46:02 +03:00
Cohee aef879ced0 Fix double blur on preloader 2024-07-04 01:41:21 +03:00
Cohee 09632fe5f8 Reword KoboldCpp API hint 2024-07-04 00:34:48 +03:00
Cohee 35b7fc3186 Ignore recurse buffer for min activation steps 2024-07-04 00:28:34 +03:00
Cohee 47b679202f Introduce a proper initial state 2024-07-04 00:18:46 +03:00
David Fedolfi f85b843b3e - Adding display of queued speakers in group chat windows. 2024-07-03 17:00:10 -04:00
Cohee df67a7cdc4 #2467 Fix min activations for non-recursable entries 2024-07-03 23:42:27 +03:00
Cohee 542a13a01b More Safari weirdness cope 2024-07-03 22:28:42 +03:00
Wolfsblvt 8159b7f5f4
Validate story string about missing fields (#2462)
* Validate story string about missing fields

* Update validation to only warn once

* Improve story string validation log once

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-07-03 21:32:05 +03:00
steve green 46c91bec67
Update server.js to trust UserAccounts securely (#2447)
* Update server.js to trust UserAccounts securely

* Update zh-cn.json btw

* Clarify security logic

* update logic

* Fix filtering of enabled users.

* Fix account name logging

* More friendly log

* Even friendlier message

* Revert deleted keys

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-07-03 21:24:03 +03:00
Risenafis fa983521c0
Improve ja-jp translation (#2459)
* improve ja-jp.json

* addtional improve
2024-07-03 20:39:57 +03:00
Cohee c0436f4a32 Extend getContext API 2024-07-03 20:35:42 +03:00
Wolfsblvt 7de43d3a9c /stop slash command to stop generation 2024-07-03 14:44:17 +02:00
Cohee 0ca880bf60 Check for whitespace-only WI format 2024-07-02 20:32:46 +03:00
Cohee 9eb404a275 #2460 replaceAll for all workflow placeholders 2024-07-02 19:11:45 +03:00
Cohee b66e589b30 Don't use dynatemp for unsupported backends 2024-07-02 14:17:10 +00:00
Cohee a3031d7986 Reinforce iOS check 2024-07-02 13:47:02 +00:00
Cohee da11ffe874 #2457 Remove screen size breakpoint from iOS cope styles 2024-07-02 07:37:07 +00:00
Cohee e8c5ce0669
Merge pull request #2455 from SillyTavern/sanitize-group-members
validate group that all members exist
2024-07-02 10:30:17 +03:00
Cohee b6de77935b Fix quotes style 2024-07-02 07:29:14 +00:00
Wolfsblvt 08d21e9b17 Fix warning on dynamic-styles init 2024-07-02 02:15:44 +02:00
Wolfsblvt 52b64a823d validate group that all members exist 2024-07-02 02:00:39 +02:00
Wolfsblvt 21c064fc5b Fix {{currentSwipeId}} not returning first swipe 2024-07-02 01:28:52 +02:00