Commit Graph

291 Commits

Author SHA1 Message Date
khanon 60044c18a4 Implement Token Probabilities UI using logprobs 2024-01-25 18:34:46 -06:00
Cohee 625a07ac1f Fix Chrome 121 scrollbars 2024-01-24 14:25:13 +02:00
valadaptive 8fb26284e2
Clean up Generate(), part 2 (#1578)
* Move StreamingProcessor constructor to the top

Typical code style is to declare the constructor at the top of the class
definition.

* Remove removePrefix

cleanupMessage does this already.

* Make message_already_generated local

We can pass it into StreamingProcessor so it doesn't have to be a global
variable.

* Consolidate setting isStopped and abort signal

Various places were doing some combination of setting isStopped, calling
abort on the streaming processor's abort controller, and calling
onStopStreaming. Let's consolidate all that functionality into
onStopStreaming/onErrorStreaming.

* More cleanly separate streaming/nonstreaming paths

* Replace promise with async function w/ handlers

By using onSuccess and onError as promise handlers, we can use normal
control flow and don't need to remember to use try/catch blocks or call
onSuccess every time.

* Remove runGenerate

Placing the rest of the code in a separate function doesn't really do
anything for its structure.

* Move StreamingProcessor() into streaming code path

* Fix return from circuit breaker

* Fix non-streaming chat completion request

* Fix Horde generation and quiet unblocking

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2023-12-21 20:20:28 +02:00
Cohee 5734dbd17c Add custom endpoint type 2023-12-20 18:29:03 +02:00
Cohee 6e8104873e #1569 Add logit bias for text completions 2023-12-18 18:57:10 +02:00
Cohee 08ea2095f8 Refactor Novel logit bias 2023-12-18 17:32:10 +02:00
Cohee cebbf2fd55 Fix background layer flash 2023-12-15 18:43:36 +02:00
Cohee b524870544 Fix AI21 icon styles 2023-12-14 16:56:39 +02:00
Cohee 7482a75bbd
Merge pull request #1493 from valadaptive/generate-cleanups
Clean up Generate(), part 1
2023-12-11 20:21:32 +02:00
Cohee 0fcf8fd491 Typing indicator fixed 2023-12-11 18:23:00 +02:00
Cohee e7c2975ab0 Fix adv.defs overlap with past chats. Close CFG with Escape 2023-12-11 15:39:58 +02:00
Cohee f8a903e1fd #1506 Fix big markdown images 2023-12-10 18:45:55 +02:00
valadaptive a23be7d785 Clean up CSS for API "connect" buttons
Instead of identifying each connect button by ID, we can just use the
.api_button class. The .menu_button class *would* override it due to CSS
cascade rules (specifically, declarations later in the stylesheet apply
over ones that appear earlier), but the `.menu_button.api_button`
selector has a higher *specificity* and hence works.
2023-12-09 18:52:14 -05:00
Cohee c051fc3ce9 Add wrapper for description popouts, make them wider 2023-12-03 03:21:11 +02:00
Cohee 2c949b672a Fix bulk edit and message context action styles 2023-12-03 02:17:02 +02:00
Cohee 3e9927dc67 Add editor textareas maximize 2023-12-03 02:01:06 +02:00
Cohee 95df016d57 Adjustments for zoomed_avatar on ultrawide screens 2023-12-01 14:47:11 +02:00
Cohee c742251c5a Mobile sprites fixes: hide non-VN sprite, fix group VN position, fix live2d conflicts 2023-11-27 03:22:35 +02:00
Cohee 37610062a7 1px less Safari cope 2023-11-27 02:56:45 +02:00
RossAscends fd8697afc0 Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into staging 2023-11-27 09:48:07 +09:00
RossAscends 34d8588691 QR popout 2023-11-27 09:48:05 +09:00
Cohee 313a6c9840 Fix unclickable icons in burger menus 2023-11-27 02:32:41 +02:00
RossAscends 4f7c925dc6 properly round left menu borders 2023-11-23 22:10:23 +09:00
Cohee 35349dd8d7 Hide page overflow 2023-11-22 17:59:46 +02:00
Cohee 2b54bfd1d5
Merge pull request #1380 from LenAnderson/checkbox-contrast
ensure checkboxes have contrast
2023-11-22 16:52:48 +02:00
LenAnderson 9f16b329c5 ensure checkboxes have contrast 2023-11-21 01:26:43 +00:00
Cohee 01b629bd49 New syntax for sendas command 2023-11-21 02:54:04 +02:00
Cohee ac07c8324d Configurable chat truncation amount 2023-11-19 21:57:54 +02:00
Cohee 7045d242e8 Add ability to attach files and images to messages 2023-11-18 19:24:55 +02:00
Cohee b559187722 Autoset height of QR slots. Revert textarea padding 2023-11-14 12:48:55 +02:00
Cohee 50f3def2eb Decrease icon size and text padding 2023-11-14 11:36:57 +02:00
RossAscends 3f4a62d22c ext button to left, stack buttons on mobile 2023-11-14 15:53:26 +09:00
Cohee 0d4e5c31e2 Code clean-up 2023-11-12 22:35:17 +02:00
Cohee 5bcd49b7ca More concise UI texts, fix button spam clicks 2023-11-12 22:12:16 +02:00
Cohee cb1e254cb9 Add tags as folders display mode 2023-11-10 21:56:25 +02:00
Cohee 34df781699 Make checkboxes brighter than text 2023-11-09 22:50:25 +02:00
RossAscends 0a409c8c54 Kobold zenSlider, sampler reordering, HTML cleanup 2023-11-09 18:31:44 +09:00
Cohee 1f36fe5193 Fix weird display of macros in help command 2023-11-08 23:56:58 +02:00
Cohee 3632a01e36 Adjust checkbox text alignment 2023-11-08 17:56:22 +02:00
RossAscends a5fd33d08a Kobold sampler restyle 2023-11-08 23:24:28 +09:00
RossAscends 00c029a65a only api format for ooba, more visible checkboxes 2023-11-08 14:08:51 +09:00
Cohee b2629d9718 Refactor status checks and indicators. 2023-11-08 02:52:03 +02:00
Cohee 2d2ff5230c
Merge pull request #1318 from artisticMink/feature/bulk-edit-enhanced
Feature/bulk edit enhanced
2023-11-07 20:47:06 +02:00
Cohee 94cf4699e6 Fix neo slider z-fighting in Firefox 2023-11-07 17:03:49 +02:00
artisticMink c3ff146dd2 Add bulk tagging 2023-11-06 16:13:34 +01:00
artisticMink 6eb6527d11 Prototyping 2023-11-06 16:13:34 +01:00
Cohee 248aec4885 Allow HTML font color overrides
(props to umbrastel)
2023-11-05 22:58:03 +02:00
RossAscends cf81bd038a Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into staging 2023-11-06 02:46:21 +09:00
RossAscends 1b8389c8b8 update checkbox and slider styles 2023-11-06 02:46:19 +09:00
Cohee 583c737106 #1313 Transparency for zoomed avatars 2023-11-05 19:01:48 +02:00
RossAscends 19c0100983 finally add theme styles to checkboxes 2023-11-05 15:47:29 +09:00
RossAscends b369be9201 Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into staging 2023-11-05 05:47:55 +09:00
RossAscends 1c35ff4f3d WIP ZenSliders (ooba only) 2023-11-05 05:47:53 +09:00
Cohee 81e52fb77c Display error when chat info couldn't be loaded 2023-11-04 18:49:06 +02:00
Cohee 6067b2f913 Add autocomplete for slash commands 2023-11-04 01:21:20 +02:00
Cohee eab25c73e7 Hide/unhide messages 2023-11-03 23:45:56 +02:00
Cohee a1df95592c Merge branch 'staging' of https://github.com/SillyTavern/SillyTavern into staging 2023-11-02 20:05:44 +02:00
Cohee e6ccc53054 BG icon no longer stays in front of moving UI 2023-11-02 20:05:41 +02:00
RossAscends adef199767 fix slider width on high zoom, restyle ? links 2023-11-02 13:32:57 +09:00
RossAscends 230ef417b6 Ooba sampler panel overhaul 2023-11-02 02:53:50 +09:00
Cohee a0706fcfc8 Add loader UI component 2023-10-31 22:16:33 +02:00
RossAscends a27e7a139a Chat History Panel Overhaul, shorter filenames 2023-10-30 14:16:20 +09:00
Cohee 9bff2762fc Align message top bar text 2023-10-29 23:15:22 +02:00
Cohee 03c3fa24e9 Phone styles adjust 2023-10-29 19:30:56 +02:00
RossAscends d50124e937 appwide slider overhaul 2023-10-26 13:20:47 +09:00
Cohee 5fa158a37f Add border to enlarged img 2023-10-22 00:43:21 +03:00
Cohee c49f898886 Display prompts for enlarged images 2023-10-22 00:39:11 +03:00
Cohee 04a5d9694e Unify preset button styles 2023-10-21 23:32:53 +03:00
Cohee 65402eaa23 Move bulk edit to built-in functionality 2023-10-21 21:02:06 +03:00
Cohee 999c1b1105 Hide chat BG titles 2023-10-21 20:41:19 +03:00
Cohee 5012237eb3 Display generated bg in the bg block. Add ability to copy chat bg to system list. 2023-10-21 17:43:25 +03:00
Cohee f285110773 Merge chat backgrounds plugin with main backgrounds menu 2023-10-21 01:40:58 +03:00
Cohee 5c316b50fa Merge branch 'staging' of https://github.com/SillyTavern/SillyTavern into staging 2023-10-17 13:09:53 +03:00
Cohee e8dd2e2b4d Fix element widths 2023-10-17 13:09:46 +03:00
Cohee 6a1b230c7e #1226 Add chat-bound lorebooks 2023-10-16 23:03:42 +03:00
Cohee 6e6e5f4747 Group popout "improvements" 2023-10-15 19:42:23 +03:00
RossAscends 7f50d84953 put headers on a diet 2023-10-14 01:09:53 +09:00
RossAscends 19ff0fd618 clean up draggables, gallery, and close buttons 2023-10-14 00:29:41 +09:00
Cohee d82eb373a6 Less obnoxious hr style 2023-10-13 13:11:21 +03:00
RossAscends a87580663e HR divorces theme border color 2023-10-12 21:13:57 +09:00
RossAscends f88f360404 add padding back to summary popout 2023-10-10 05:53:55 +09:00
RossAscends b1769153c7 add background coloring to popped out Summary 2023-10-10 05:52:06 +09:00
RossAscends 96ddd5f4e5 draggable popout for Summary 2023-10-10 04:49:35 +09:00
Cohee 2903167fad Remove unnecessary font-weight definitons in message text styles 2023-09-23 11:51:15 +03:00
RossAscends a25cb024fe allow blur/shadow sliders to re-enable. 2023-09-23 11:56:24 +09:00
RossAscends 54c37e945b fix themes application, refactor user settings 2023-09-22 22:16:24 +09:00
RossAscends b1ab1451ec separate chat and menu background color selection 2023-09-22 16:54:51 +09:00
Cohee 3de5cdd7e8 Apply UI bg color to dialogue popup 2023-09-19 12:21:32 +03:00
Cohee 43de36b331 Properly center send buttons 2023-09-18 01:24:29 +03:00
RossAscends 323493962a fix oversized zoomed avatars again 2023-09-17 19:55:33 +09:00
RossAscends 124658a006 Add Border Color Control 2023-09-16 15:42:26 +09:00
Cohee d34f7d3e1a Replace multigen with auto-continue 2023-09-15 21:34:41 +03:00
Cohee 17a5d629ea Auto-set hotswap slot number based on the screen width. 2023-09-14 15:56:01 +03:00
Cohee 2f8f6844fe Merge branch 'vectors' into staging 2023-09-12 15:49:47 +03:00
RossAscends 4bf91c7772 clamp zoomed avatar widths to 400px as base 2023-09-12 02:09:18 +09:00
Cohee 5cc6a2dca6 (WIP) Lazier chat loading 2023-09-11 01:07:45 +03:00
Cohee f8d90c1933 Merge branch 'staging' into vectors 2023-09-10 02:42:42 +03:00
Cohee f92249790f The return of permanent tokens display 2023-09-10 00:58:37 +03:00
Cohee 2fa038f91d Add advanced vector controls 2023-09-09 21:26:04 +03:00
Cohee ab460199ab #1117 Fix typing indicator and auto-scroll breaking mobile layout 2023-09-08 16:36:00 +03:00
RossAscends 3909310a4f fix wide_dialogue_popup width calc CSS 2023-09-05 23:43:19 +09:00
RossAscends 942f343915
Merge pull request #1086 from city-unit/feature/exorcism
Minor Gallery Fixes
2023-09-03 05:42:58 +09:00
Cohee 2d933f835c Move toasts to top center 2023-09-02 18:32:15 +03:00
city-unit 838cd81f8e Merge branch 'staging' of https://github.com/city-unit/SillyTavern into feature/exorcism 2023-09-01 22:24:41 -04:00
Cohee f4bdf127f7 Merge branch 'staging' of https://github.com/SillyTavern/SillyTavern into staging 2023-08-31 17:10:09 +03:00
Cohee 019c47adc6 #1068 Display token counts on generated messages 2023-08-31 17:10:01 +03:00
RossAscends 8a74715d88 -1px gap for sheld to fix MovingUI lockup 2023-08-31 22:58:28 +09:00
city-unit ab440a3d7b Uhh, mobile support 2023-08-30 22:54:34 -04:00
city-unit d5409a5fea Add close buttons and theming 2023-08-30 20:08:48 -04:00
city-unit 165d4b3b75 Merge branch 'staging' of https://github.com/city-unit/SillyTavern into feature/exorcism 2023-08-30 00:12:00 -04:00
city-unit 1cb86034b5 Okay, it actually works 2023-08-30 00:11:20 -04:00
Cohee ed9ed3c79b Limit textareas height 2023-08-29 18:45:49 +03:00
Cohee 44f88c61ff Add simplified UI switch 2023-08-29 18:04:10 +03:00
city-unit 79448f5fe7 Getting there, but it's not great. 2023-08-28 00:49:20 -04:00
Cohee 3b4e6f0b78 Add debug functions menu 2023-08-27 23:20:43 +03:00
Cohee 96512c178e More readable no connection color. 2023-08-27 22:38:42 +03:00
Cohee 9660aaa2c2 Add NovelAI hypebot plugin 2023-08-27 18:27:34 +03:00
Stefan Daniel Schwarz 1d7165c047 context template preset manager 2023-08-26 12:09:47 +02:00
Cohee f50db430eb Try fixing textareas resizing on character editor 2023-08-25 20:28:23 +03:00
RossAscends ce5e706fac topbar resize, font scaling fix, mobile slider fix 2023-08-25 07:06:52 +09:00
Cohee 7010e05f8e Sync bottom form height with the font size 2023-08-24 18:32:42 +03:00
Cohee e2507e8840 #976 Add "quick continue" button. Remove "send to continue" option. 2023-08-24 01:37:44 +03:00
RossAscends 6c56fb0a6d 500ms delay for sliders on touch devices 2023-08-24 03:34:20 +09:00
Cohee c32c080126 More comfy font sizes 2023-08-23 15:53:05 +03:00
Cohee 3c48e8ccd9 Increase toggle desc. font size 2023-08-23 11:02:49 +03:00
RossAscends 080f9d2426 center chat bar input, fix mobile top bar. 2023-08-23 16:53:31 +09:00
RossAscends a1bdaf2739 Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into staging 2023-08-23 16:41:09 +09:00
RossAscends 02ce9ba563 top bar 40px to 30px 2023-08-23 16:41:07 +09:00
Cohee 723e957b3c Merge branch 'staging' of http://github.com/cohee1207/SillyTavern into staging 2023-08-23 10:32:52 +03:00
Cohee e77da62b85 Add padding to cache key. Fix Safari display issues. Fix 400 on empty translate. Reset bias cache on changing model. 2023-08-23 10:32:48 +03:00
RossAscends 5474f29f2d bottom bar 40px to 30px 2023-08-23 16:19:54 +09:00
Cohee 92686d4ba8 Optimize WI editor header. Add entries search 2023-08-22 01:51:31 +03:00
Cohee 07d7eb733d Fix raw prompts display in prompt itemizer 2023-08-21 23:50:38 +03:00
Cohee 05d719107f Move total token counter. Tighten the UI 2023-08-21 17:00:28 +03:00
Cohee c735bf546a Add token counters for individual fields. Optimize total counter display 2023-08-21 15:32:27 +03:00
Cohee f9573eb45d Slight increase default font size 2023-08-21 12:29:14 +03:00
RossAscends 84fb5b8ffd Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into staging 2023-08-21 08:09:14 +09:00
RossAscends 2f363ef025 change main font size to 14px 2023-08-21 08:09:00 +09:00
Cohee 897ad28477 Apply preset manager for instruct presets 2023-08-21 00:56:53 +03:00
Cohee 065dffa8a4 Use CSS for fav group candidate coloring 2023-08-20 19:47:14 +03:00
Cohee be6fedd626 Simplify Claude prefill code 2023-08-20 19:26:49 +03:00
Cohee 6e6eb8f61e Use CSS class for coloring 2023-08-20 19:09:19 +03:00
RossAscends 334dcc7454 WIP splitting of style.css 5.6k --> 3.5k lines 2023-08-20 15:49:27 +09:00
Cohee1207 386cca0e5d Mobile waifu mode fix (?) 2023-08-19 23:55:57 +03:00
Cohee1207 db6beed881 Fix mobile image overflow 2023-08-19 23:43:05 +03:00
Cohee aef78c6d99 Fix group candidates search. Fix tag exclusion filter display 2023-08-19 21:08:35 +03:00
Cohee 21261b1a19 Fix group list tags display 2023-08-19 20:58:53 +03:00
Cohee1207 06c7b8d7d6 [WIP] Add UI for auto-select instruct 2023-08-19 20:18:39 +03:00
Cohee1207 2d61c9954b Pagination tweaks 2023-08-19 16:11:09 +03:00
Cohee1207 991ff98eaa Performance optimizations for character edit / chat opening 2023-08-19 15:58:17 +03:00