Compare commits

..
703 Commits
Author SHA1 Message Date
SillyLossy 1dc92ffff5 Fix API connect button getting blocked by AdBlock 2023-03-30 11:58:16 +03:00
Cohee b9ae8efc5b Update readme.md 2023-03-29 22:45:55 +03:00
Cohee 95b5ada024 Update readme.md 2023-03-29 22:42:01 +03:00
Cohee f9a6cfc806 Merge pull request #14 from SillyLossy/dev
Dev
2023-03-29 22:14:38 +03:00
SillyLossy c20df162df Add transparent bg option 2023-03-29 22:06:47 +03:00
SillyLossy ede612c324 Adjust text styles 2023-03-29 21:51:24 +03:00
SillyLossy 21b6ae0168 Fix options popup having offset in group chats 2023-03-29 21:29:08 +03:00
SillyLossy 55e2c7439f Fix mentions in groups 2023-03-29 21:00:34 +03:00
SillyLossy 5adb6e9b8c Add a null-check in bookmarks options 2023-03-29 20:05:55 +03:00
SillyLossy f94dd07ae5 Don't destroy local storage on ctrl+arrow 2023-03-29 17:15:16 +03:00
SillyLossy 8847c0b81c Fix pin examples not saving properly 2023-03-29 17:11:19 +03:00
SillyLossy 67d2514edc Group UI tweaks 2023-03-29 17:04:07 +03:00
SillyLossy 7371a02991 Allow to regen first message 2023-03-29 16:47:07 +03:00
SillyLossy 54678c2fe6 Chat deletion should actually work 2023-03-29 01:31:08 +03:00
SillyLossy e5a7f579ea Editing bugfixes 2023-03-29 01:08:57 +03:00
SillyLossy bae5567138 Rename floating prompt extension 2023-03-29 00:47:25 +03:00
SillyLossy 45df23ff9a Block reordering while generating 2023-03-29 00:47:09 +03:00
SillyLossy 0bf66d522b Togglable multigen 2023-03-29 00:30:48 +03:00
SillyLossy 6ab38964dc Restore last active group 2023-03-28 22:58:36 +03:00
SillyLossy 9d512e09bc Smarter zero depth note 2023-03-28 21:51:37 +03:00
SillyLossy ca889b420a Add jailbreak as a system message option 2023-03-28 21:13:52 +03:00
SillyLossy b9a767ff15 Add missing fast mode styles 2023-03-28 21:06:00 +03:00
SillyLossy 44f461254c Add no blur mode 2023-03-28 20:32:40 +03:00
SillyLossy bab50bd58b Configurable group self-responses 2023-03-28 18:55:12 +03:00
SillyLossy 7c4f06e4d9 Apply full markdown to group messages 2023-03-28 18:49:50 +03:00
SillyLossy cd4f699e74 Allow zero depth for floating prompt 2023-03-28 17:49:02 +03:00
SillyLossy ae7e21d6c5 Async OAI tokenization 2023-03-28 17:44:28 +03:00
SillyLossy 2c4876ac39 Adjust max tokens based on OAI model 2023-03-28 16:44:26 +03:00
SillyLossy 322f02dec3 Up and down 2023-03-28 16:06:31 +03:00
SillyLossy 2836b93463 Advanced edit (partial) 2023-03-28 12:48:23 +03:00
Cohee 31ec4f078e Update readme.md 2023-03-28 12:26:11 +03:00
Cohee c1124d58a0 Merge pull request #11 from davidhahn88/dev
gpt-4 option
2023-03-28 00:44:52 +03:00
davidhahn88 2d66b72735 Update index.html
Added an option for GPT4
2023-03-27 22:56:54 +02:00
SillyLossy b71d7006ab Display optional modules for extensions 2023-03-27 23:48:13 +03:00
SillyLossy b65e8b4286 Unify hover colors 2023-03-27 23:40:36 +03:00
SillyLossy ce75a41388 Fix char image disappearing on changing bg 2023-03-27 23:33:59 +03:00
SillyLossy 90b74e20d0 Down opacity a bit 2023-03-27 23:31:42 +03:00
SillyLossy ab6b1a2f0f Up text readability a bit 2023-03-27 23:25:57 +03:00
SillyLossy a9ad722841 Less bg blur 2023-03-27 23:10:08 +03:00
SillyLossy 1d7c63ee77 Improve readability of chats 2023-03-27 23:07:21 +03:00
SillyLossy 190bfdd3f4 Don't block send on ooba API error 2023-03-27 22:07:35 +03:00
SillyLossy 9c31ab0039 Save prompts should actually work 2023-03-27 21:56:38 +03:00
SillyLossy 45b4407ec3 Proper offline mode for char expressions 2023-03-27 21:28:04 +03:00
SillyLossy 3b547c24aa Better WI editor header 2023-03-27 21:16:15 +03:00
SillyLossy 0b1a7cc06d Prevent same character from speaking twice in a row in group. 2023-03-27 21:08:11 +03:00
SillyLossy b3d992baee Fix swipes and thumbnails for groups 2023-03-27 20:00:14 +03:00
SillyLossy d18f005268 Properly restore current char on import (nasty!) 2023-03-27 19:46:27 +03:00
SillyLossy b9a192c524 Pretty cursor on bg selection. Why not? 2023-03-27 19:33:53 +03:00
SillyLossy f8200e914e Properly load memory default settings 2023-03-27 19:23:16 +03:00
SillyLossy a48cf50756 Properly disable inputs in KAI GUI mode 2023-03-27 19:23:02 +03:00
SillyLossy 1842bef60d Combine KAI advanced notes 2023-03-27 19:08:00 +03:00
SillyLossy 1cbda8a6ea Fix anchors block formatting 2023-03-27 19:06:02 +03:00
SillyLossy 4d73ee7dd8 Don't close drawer on clicks inside world popup 2023-03-27 19:00:05 +03:00
SillyLossy 0e97d26645 Prevent applying broken images 2023-03-27 18:54:30 +03:00
SillyLossy 43ade01424 Nicer expression list styles 2023-03-27 18:51:24 +03:00
SillyLossy 72f5e12016 More contrast italic action styles. 2023-03-27 18:51:10 +03:00
SillyLossy af053b3d3a Don't close drawer on click-drag outside of it 2023-03-27 18:39:16 +03:00
SillyLossy 7fb8166e7b Don't switch BG on delete click 2023-03-27 18:27:43 +03:00
SillyLossy 1e73248520 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-27 18:25:49 +03:00
SillyLossy b40ee7236c Fix backgrounds resetting on upload click 2023-03-27 18:24:20 +03:00
Cohee 4c4ff5f12b Update bg_load.css 2023-03-27 18:20:01 +03:00
SillyLossy 3d41e68a8f Bump version 2023-03-27 18:16:26 +03:00
SillyLossy 9b3613c63c Add author's note to floating prompt extension 2023-03-27 01:43:46 +03:00
SillyLossy 96faff5b2e Fix right nav closing on character create / delete / popup click 2023-03-26 22:17:18 +03:00
SillyLossy 0e00e1b363 Fix dialogue popup cancel 2023-03-26 21:56:49 +03:00
SillyLossy eeb6a281d9 Group chats prompt fix 2023-03-26 18:59:35 +03:00
Cohee 906ed9f284 Update issue templates 2023-03-26 18:57:44 +03:00
Cohee 964bbda8a4 Update issue templates 2023-03-26 18:55:54 +03:00
SillyLossy 9944d729f8 Expressions offline mode 2023-03-26 16:29:55 +03:00
SillyLossy f14a1cb7e9 Fixes for OpenAI groups 2023-03-26 14:57:47 +03:00
SillyLossy 19def2536f Kobold API url formatting 2023-03-25 23:38:51 +02:00
SillyLossy a9b52767a5 Fix force name2 triggering on pygmalion 2023-03-25 23:26:49 +02:00
RossAsscends 660c816106 my humble submission to old pyg model, the only one i can current use locally. 2023-03-25 17:13:03 +09:00
SillyLossy 08560c5d10 Prepend extension prompt with newline 2023-03-25 01:18:44 +02:00
SillyLossy 52fea181ab Properly clear character expression 2023-03-24 23:41:01 +02:00
SillyLossy d1ece06028 Fix token counters 2023-03-24 22:37:22 +02:00
SillyLossy 4f0e9ab417 Make groups on OAI work 2023-03-24 22:21:33 +02:00
SillyLossy 73b76d3974 Avatars thumbs improved 2023-03-24 21:28:17 +02:00
SillyLossy 1bf3377a70 Reduce log spam 2023-03-24 21:14:28 +02:00
SillyLossy 68bf2f3400 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-24 21:13:01 +02:00
SillyLossy fd2c74b8ec Thumbnail user avatars 2023-03-24 21:12:57 +02:00
RossAsscends 968bc5025a Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-25 03:32:34 +09:00
RossAsscends 3e1e5439d0 added lin on OAI connection tab to check API usage stats
CSS tweak to make drop selector inputs narrower
2023-03-25 03:32:29 +09:00
SillyLossy e609ed719e Fix config 2023-03-24 19:43:33 +02:00
SillyLossy 5fa42387d7 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-24 19:42:44 +02:00
SillyLossy 82e771df0d Wrap long extension settings to inline drawers 2023-03-24 19:42:19 +02:00
RossAsscends 255617e085 moved #options popper -20px on x-axis to align with chat edge 2023-03-25 01:53:33 +09:00
RossAsscends 9c4ed44b5e fixed #options popper with offset 2023-03-25 01:51:30 +09:00
RossAsscends 800bd0980f Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-25 01:13:13 +09:00
RossAsscends b7f7a2cd3d Fixed swipes not showing on iOS (a CSS grid bug)
removed opacity transitions from edit_mes elements
Mobile UI:
- turned off pinch zooming
- fixed page body so it can't be scrolled off screen
CSS
- send_but more opaque to be seen on light BGs
- replaced mes_edit unicode pencil with SVG
- replaced mes_edit done and cancel images with menu_buttons
-- easier to tap on mobile
- reduced mobile body font from 18px to 16px;
- fixed select_chat_popup vertical sizing on mobile
- gave chat, send_form, and large popups opaque borders on mobile
2023-03-25 01:10:01 +09:00
Cohee 66fd7123bc Update readme.md 2023-03-24 15:18:10 +02:00
SillyLossy b5b9538c08 "Back to main" option for bookmarks 2023-03-24 15:15:26 +02:00
RossAsscends 662cce8c6c cleaned up process of post-chat deletion handling
not a smart solution, but it works without error
2023-03-24 15:21:06 +09:00
RossAsscends f45ea2a5a2 fixed display bug in past chat deletion 2023-03-24 15:06:12 +09:00
RossAsscends e1a337f140 Added Past Chat File Delete Function 2023-03-24 13:55:34 +09:00
RossAsscends bd7e7c6379 Cleaned up Past Chats view
- normalized borders
- character name at the top of popup
- added grey border
2023-03-24 12:49:31 +09:00
SillyLossy a1f16f470b Custom chat separators + fixes for drawers logic 2023-03-24 01:35:07 +02:00
SillyLossy 339d3c357d Proper handle settings presets for TextGen 2023-03-23 22:47:02 +02:00
SillyLossy 9eebe6ce61 Add preset settings for TextGen. Thanks oobabooga for compiling them! 2023-03-23 22:17:44 +02:00
SillyLossy 321ecbec77 More settings for oobabooga's 2023-03-23 18:39:41 +02:00
SillyLossy 57713c53a3 Better bookmark links 2023-03-23 16:10:06 +02:00
SillyLossy afab72dfd7 Rearrange status bars 2023-03-23 13:10:01 +02:00
SillyLossy 1b7632c352 Fix online status checks 2023-03-23 11:53:39 +02:00
SillyLossy a46e7a30bd Don't propagate api button click events to prevent closing the drawer 2023-03-23 11:23:36 +02:00
SillyLossy c75fd0379d Thumbnails cache ensure 2023-03-23 11:10:14 +02:00
RossAsscends 9f3d40e3ed CSS tweaks:
- resized addbg3.png from 1600x1600 to 160x90
- added trans grey border to right nav, to match chat and send_form
- reduced opacity of chat/sendform >> 70% to 50%
- reduced blur on chat/sendform >> 20px to 10px
- added 1px gap between chat and right nav to match chat/sendform
- fixed add_bg button being too tall and skewing top bg row on mobile
- 2 new utility classes no-border and no-shadow
- made drawer heights match chat+sendform height on mobile

/img cleanup:
- removed unused files from /img
- resized large UI-only PNG files to 100px x 100px
- replaced fluffy.png with a custom PNG 'ai4.png'
- total /img footprint is now 615kb  (compared to 3.5MB in main tai 1.3)
-- /default-expressions 509kb
-- everything else 106kb
2023-03-23 16:48:40 +09:00
RossAsscends 4e8739b7c7 TFS slider set to 0.01 step for higher accuracy at high levels 2023-03-23 14:36:30 +09:00
RossAsscends 7ea6f7f8e1 TFS slider set to 0.01 step for higher accuracy at high levels 2023-03-23 14:36:09 +09:00
RossAsscends 5dc62f78b4 disabled spammy coneole.logs 2023-03-23 13:13:43 +09:00
SillyLossy 5c537e6eb8 Add chat bookmarking 2023-03-23 03:14:06 +02:00
SillyLossy a67e72ba1c Add map file 2023-03-23 01:07:57 +02:00
SillyLossy abad09caa3 Merge branch 'main' into dev 2023-03-23 00:16:03 +02:00
SillyLossy 100e572aae Hotfix oobabooga API + message bias formatting 2023-03-23 00:12:48 +02:00
SillyLossy 2821f2d6a5 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-22 21:18:46 +02:00
SillyLossy a82c07548b Add backgrounds thumbnailing 2023-03-22 21:18:43 +02:00
RossAsscends 40433c6ddf moved settings tab titles to the icons, not the whole drawer 2023-03-23 03:31:02 +09:00
RossAsscends 65cbf1fb9d Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-23 03:26:39 +09:00
RossAsscends b24f39bd5f - moved autoconnect checkbox to server tab
- added mouseover titles to settings tabs
- made a new icon for 'create new group'
2023-03-23 03:26:34 +09:00
SillyLossy 67e30681e7 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-22 20:25:10 +02:00
SillyLossy 801952f97b Rename oobabooga's setting 2023-03-22 20:25:06 +02:00
RossAsscends dc79f678c3 moved location of some AI config toggles
moved various API presets into the sliders tab
 -so we can see what the presets are doing in real time.
2023-03-23 02:08:38 +09:00
RossAsscends cde51513da caption extension now adds the caption to the img title attribute 2023-03-23 01:08:21 +09:00
RossAsscends d4524e1e0e fixed autoconnect spamming on page load 2023-03-23 00:30:16 +09:00
RossAsscends 65f598fde3 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-22 23:56:13 +09:00
RossAsscends 125c48690b fixed bug with common gen settings not displaying for non-OAI 2023-03-22 23:56:10 +09:00
SillyLossy ff4b0e17f5 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-22 16:53:04 +02:00
SillyLossy 3fe0e629c0 Force name2 advanced option 2023-03-22 16:53:01 +02:00
RossAsscends 1588c88100 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-22 23:47:21 +09:00
RossAsscends b9da16ed95 fixed regenerate hotkey to work with groups
- it now clicks the regenerate button
- previously it directly called Regenerate()
2023-03-22 23:06:18 +09:00
SillyLossy a575b072da Context size returned. 2023-03-22 16:00:18 +02:00
RossAsscends 862ac3fed8 right nav (now on top) lock and open/close preferences
are now remembered between page reloads.
lock prevents right nav drawer from closing when clicking away
or when opening other drawers.
2023-03-22 22:47:10 +09:00
SillyLossy c44bb9bb41 Tweak name sanitation logic 2023-03-22 14:52:56 +02:00
SillyLossy bbe6583e03 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-22 12:42:06 +02:00
SillyLossy 2e5244eec4 Force disable streaming 2023-03-22 12:42:04 +02:00
RossAsscends a96ff7049c Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-22 19:35:00 +09:00
RossAsscends d271dd2c97 midway through changes to right nav state saving 2023-03-22 19:34:56 +09:00
SillyLossy 6aa7bef671 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-22 12:29:10 +02:00
SillyLossy 4e2bc3e80a OpenAI fixes 2023-03-22 12:29:07 +02:00
RossAsscends 3ebca48279 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-22 19:20:57 +09:00
RossAsscends 3d0abbaf9d top settings now close when user clicks away 2023-03-22 19:20:51 +09:00
SillyLossy 34a2436a67 Enable whitelist by default 2023-03-22 10:55:56 +02:00
RossAsscends ba9b4696bb fixed widths for BG and sliders drawers 2023-03-22 11:32:02 +09:00
RossAsscends 41266b353c Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-22 09:44:13 +09:00
RossAsscends 9ed03185fb brought right nav into the top
finetuned the top-settings-holder display widths and spacing
2023-03-22 09:44:03 +09:00
SillyLossy 2b3856d879 Merge branch 'main' into dev 2023-03-22 02:36:48 +02:00
SillyLossy fd14855da9 New icon for connection. Note page for OAI key. Fix swipes with OAI. OAI model selection. 2023-03-22 02:18:57 +02:00
SillyLossy 7cce26bd22 Add world info support for OAI. Fix regens 2023-03-22 01:16:16 +02:00
SillyLossy edab2e84b9 More credits 2023-03-22 00:51:06 +02:00
SillyLossy fe0fd95720 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-21 23:31:34 +02:00
SillyLossy e6413d0905 OpenAI support (by @CncAnon1) 2023-03-21 23:31:26 +02:00
RossAsscends 4d4a9b97a5 fix typo in autoconnect 2023-03-22 01:17:17 +09:00
RossAsscends 12eef00da2 changeMainAPI now resets online status on API change 2023-03-22 01:14:47 +09:00
RossAsscends bd47521ed6 corrected border CSS for chat and form_send 2023-03-22 00:55:51 +09:00
RossAsscends 343b6c21f9 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-22 00:48:31 +09:00
RossAsscends afda35876c edit message button hides on the currently generating swipe
reshows when complete
2023-03-22 00:48:23 +09:00
SillyLossy 7292c86735 Fix oobabooga popup type 2023-03-21 17:25:40 +02:00
RossAsscends 2e9a36b0cc updated autoconnect to reference nai_settings.api_novel_key 2023-03-22 00:22:00 +09:00
SillyLossy 15af85c77d Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-21 17:17:05 +02:00
SillyLossy 7ec99c705a Forgot script js 2023-03-21 17:15:11 +02:00
RossAsscends ecced62bc7 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-22 00:13:19 +09:00
RossAsscends 93d421e029 autoconnect is less spammy now. 2023-03-22 00:10:51 +09:00
SillyLossy 24cee20cfb Fix bias positioning 2023-03-21 17:06:00 +02:00
SillyLossy f6a0a2b65c Move novel settings to separate file 2023-03-21 17:05:51 +02:00
SillyLossy dc9e8add6f Ensure public directories exist 2023-03-21 15:56:02 +02:00
SillyLossy 5f39014f91 Ooobabooga settings to separate file 2023-03-21 15:48:23 +02:00
SillyLossy 624b843f79 Added mime filter 2023-03-21 15:10:58 +02:00
SillyLossy d6fbe65bbb Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-21 14:49:35 +02:00
SillyLossy f705f12f34 File names sanitation 2023-03-21 14:49:27 +02:00
RossAsscends 43a461c580 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-21 21:47:33 +09:00
SillyLossy 20c6cb242b Sanitizing 2023-03-21 14:30:06 +02:00
SillyLossy 8fef5288b9 Shadow popup position fix 2023-03-21 14:18:50 +02:00
SillyLossy e268fbb9b1 Top character bar fixed 2023-03-21 14:14:37 +02:00
RossAsscends ca9a5c72ea top settings connect icon is now red when disconnected 2023-03-21 21:08:15 +09:00
SillyLossy 11d31b7a17 Update right nav css 2023-03-21 13:24:08 +02:00
SillyLossy 324398a9ed Fix CSS 2023-03-21 13:14:12 +02:00
SillyLossy 8893b024ca Update gitignore 2023-03-21 13:09:01 +02:00
SillyLossy 09fd3b16cf Merge branch 'dev-settings-on-top' into dev 2023-03-21 13:01:17 +02:00
SillyLossy a9061efa36 Post-merge HTML update 2023-03-21 12:56:00 +02:00
SillyLossy 19a05e8e43 Merge branch 'dev-settings-on-top' into dev 2023-03-21 12:53:47 +02:00
RossAsscends 2b1cadc7cb fix for template avatarImg, replaced with empty src 2023-03-21 19:46:25 +09:00
RossAsscends 1adea9305e keyboard hotkey Ctrl+Up now works with novel and ooba 2023-03-21 19:03:24 +09:00
RossAsscends 5f32055a64 updated AutoConnect to work with NAI and OobaWebUI 2023-03-21 18:29:38 +09:00
RossAsscends 4ddeeab3cc fixed Novel API key not being displayed
(also confirmed NAI works)
2023-03-21 18:15:02 +09:00
RossAsscends 2d0d735528 post-bg update, fixing gitignore. 2023-03-21 17:54:28 +09:00
RossAsscends c60cafda45 restored default BGs (renamed with "TAI-" prefix)
added 50+ new BGs of various themes
(these can/should be curated further before release)

currently total file size is 18MB,
TAI's original 10 PNGs were 15MB

Themes:
- anime highschool/university
- beach
- bedroom
- tatami room
- cyberpunk
- fantasy landscape
- fantasy city
- taverns
- hellscape
- post apocalypse
- redlight distrcits
- muted patterns
- bokeh
2023-03-21 17:54:05 +09:00
RossAsscends 2c9805858a - fixed display of ooba and novel settings
- made server respond with BGs in filename alphabetical order
- removing default BGs for renaming (will replace manually)
- CSS: transparent grey border to chat and form_send for visibility on dark BGs
- CSS: sheld is now centered with 'absolute'
- CSS: top-settings are now same width same as chat on PC
2023-03-21 17:42:42 +09:00
SillyLossy 1785c2ac95 Post-merge generation fix 2023-03-21 03:01:27 +02:00
Cohee cc42dcf555 Update readme.md 2023-03-21 02:34:59 +02:00
Cohee b124c5c87d Update readme.md 2023-03-21 02:34:09 +02:00
Cohee 4c9ce79811 Update readme.md 2023-03-21 02:33:41 +02:00
Cohee c414a20221 Update readme.md 2023-03-21 02:32:31 +02:00
Cohee 847a179b7a Update readme.md 2023-03-21 02:32:08 +02:00
SillyLossy 1a1f445a14 Merge branch 'dev-settings-on-top' into dev 2023-03-21 01:09:06 +02:00
Cohee 8bae9d8472 Update readme.md 2023-03-20 19:28:20 +02:00
Cohee df8e44e527 Update readme.md 2023-03-20 19:22:57 +02:00
SillyLossy 68452e6c08 Revert smooth scrolling (I can figure it out later) 2023-03-20 18:51:08 +02:00
SillyLossy b3f495a923 Fix sever swipes bugs (details below)
1. Swiping with text in message box disrupted the swipe.
2. User was able to trigger system help message with regeneration
3. On non-Pygmalion model having forced name2 regeneration caused an endless loop if the first message was starting with user's name.
2023-03-20 16:57:49 +02:00
RossAsscends ea43b8c441 added a few missing semicolons 2023-03-20 17:50:40 +09:00
RossAsscends f6e56ad8e6 removed old commented-out code, and console.logs
removed code on .swipe_left listened that controlled right_swipe display
removed runGenerate force hiding right_swipe during gen
ra-mods - added check for swipe button visibility before KB swiping
2023-03-20 17:32:48 +09:00
RossAsscends 3dc13ee272 fixed bug w/ keyboard swipes going while swipes disabled 2023-03-20 16:47:10 +09:00
RossAsscends b6332d4939 a few CSS changes for mobile displays
takes into account top-settings-holder occupying 40px of vertical space
2023-03-20 15:31:47 +09:00
SillyLossy c1cd609ade Scroll after swipe buttons (for counter) 2023-03-20 00:36:17 +02:00
SillyLossy 15edcbb4ac Add single-line mode for Kobold 2023-03-20 00:31:12 +02:00
SillyLossy 6177985340 Fix generation error handling 2023-03-19 23:31:09 +02:00
SillyLossy 2a4a8811f7 Added back default chats 2023-03-19 21:21:03 +02:00
SillyLossy 63409e26f1 Update package version 2023-03-19 21:10:41 +02:00
SillyLossy 296deba415 Version check 2023-03-19 21:10:30 +02:00
Cohee 54b0628631 Update readme.md 2023-03-19 20:49:04 +02:00
SillyLossy 006ffec1f9 Fix security from upstream + console error messages 2023-03-19 20:23:18 +02:00
SillyLossy 379207a3d8 Count examples toward permanent if pinned 2023-03-19 19:41:00 +02:00
SillyLossy 43c29b0df9 Updated settings (sorry git users) 2023-03-19 19:35:15 +02:00
SillyLossy 8f81da2363 Advanced formatting options 2023-03-19 19:31:20 +02:00
RossAsscends 3f49c69328 Merge branch 'dev-settings-on-top' of https://github.com/SillyLossy/TavernAI into dev-settings-on-top 2023-03-20 01:45:18 +09:00
RossAsscends fe9dec1fea css fix, top border fix for large popups (world/character)
(top settings div does the 40px margin work for us now)
2023-03-20 01:45:03 +09:00
RossAscends 7b947c96d7 manual add bgload back in via webui 2023-03-20 01:36:41 +09:00
RossAsscends e67d6baffe remove bgload to fix gitignore 2023-03-20 01:35:14 +09:00
RossAsscends b0405955e3 gitignore fiddling 2023-03-20 01:34:10 +09:00
RossAsscends d2914ccbeb Merge branch 'dev-settings-on-top' of https://github.com/SillyLossy/TavernAI into dev-settings-on-top 2023-03-20 01:31:01 +09:00
RossAsscends 2840305d29 removed PNG backgrounds 2023-03-20 01:30:18 +09:00
RossAscends e58e3e4df8 added JPG backgrounds, remove PNG 2023-03-20 01:29:47 +09:00
SillyLossy e97546c194 Remove PNG backgrounds 2023-03-19 18:26:06 +02:00
RossAscends f1dab2288c adding JPG backgrounds 2023-03-20 01:18:34 +09:00
RossAsscends b0d6e6d0c3 added bg menu to top settings
restyled range sliders
style fix for right nav (L/R padding had disappeared somehow; fixed)
2023-03-20 00:57:56 +09:00
SillyLossy 66ecd37b4a Fix swipes 2023-03-19 17:43:49 +02:00
SillyLossy c9e64c8091 Dumb: formatting fix 2023-03-19 17:04:22 +02:00
SillyLossy ad765f2275 Supposed slowdown fix 2023-03-19 17:03:17 +02:00
SillyLossy 40e371aa72 Horde compatibility 2023-03-19 16:22:15 +02:00
SillyLossy 993d3faa03 Pin message examples option 2023-03-19 16:21:43 +02:00
SillyLossy d964e0d667 Fix examples / scenario not saving during edit 2023-03-19 13:30:03 +02:00
RossAsscends 79fea63198 put settings on top
right nav is only for character management now.
rewrote the drawer toggle to handle multiple drawers.
2023-03-19 18:45:39 +09:00
SillyLossy ba7621f845 Grammar 2023-03-19 01:13:15 +02:00
SillyLossy 9886ebb3a1 Animate dice dropdown 2023-03-19 01:09:45 +02:00
SillyLossy 95ca39d8e0 Display selected group name 2023-03-19 01:05:39 +02:00
SillyLossy 971f1c40b7 New icon for chat import 2023-03-19 00:16:28 +02:00
SillyLossy 6b623cead9 Allow setting floating prompt for each chat. Add extensions management 2023-03-18 23:55:13 +02:00
SillyLossy 92d4a7f19e Collapse newlines in prompt 2023-03-18 22:42:41 +02:00
SillyLossy bf5b2a5c40 Swipes and regenerations in groups should be working now 2023-03-18 21:55:10 +02:00
SillyLossy 0fe838223f Animate regen (again) + placeholder for group regen 2023-03-18 19:56:58 +02:00
SillyLossy 932d2509e1 Fix character card parsing 2023-03-18 19:35:29 +02:00
SillyLossy d7547ef869 Move all settings to KAI script 2023-03-18 19:13:43 +02:00
SillyLossy 7b6eaf6ed0 Add explanation for advanced settings 2023-03-18 17:58:09 +02:00
SillyLossy cddbc60587 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-18 17:31:44 +02:00
SillyLossy 92637fd1f9 Add advanced settings sliders 2023-03-18 17:31:42 +02:00
RossAsscends 4d7c776ecd fixed R swipe highlighting to work when mid-gen 2023-03-18 23:24:18 +09:00
SillyLossy 1317889dc4 Fix swipes counter on old chats. Remove force height on last message 2023-03-18 15:54:41 +02:00
SillyLossy 1bc54f06cf Remove animation of message deletion 2023-03-18 15:41:41 +02:00
SillyLossy 6bbee41565 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-18 15:31:50 +02:00
SillyLossy ca1bed3b47 Fix sliders not updating the script variable 2023-03-18 15:31:48 +02:00
RossAsscends c2006a60ea Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-18 22:24:40 +09:00
RossAsscends f25a6c6bcc fixed swipes counters 2023-03-18 22:24:27 +09:00
RossAsscends c038ebbcfa fixed CSS for chat scroll, fixed swipes counters 2023-03-18 22:24:17 +09:00
RossAsscends fdeb3f225f fixed chat scroll 2023-03-18 22:19:08 +09:00
SillyLossy 5c0bb34f69 Animate regeneration removal 2023-03-18 15:17:00 +02:00
SillyLossy 7b065b782b Replace advanced edit icon 2023-03-18 15:09:45 +02:00
SillyLossy 54a9f630d0 Back from group new style 2023-03-18 15:05:07 +02:00
SillyLossy 7ae31cf980 Replace emoji icons with SVGs 2023-03-18 14:53:37 +02:00
RossAsscends 9d5c1800fa Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-18 21:12:14 +09:00
RossAsscends f6297ed304 create/edit character buttons >>> icons
chat/mes padding adjusted
swipe left/right circle background removed
2023-03-18 21:12:08 +09:00
SillyLossy 4bfd6ded89 Fix extensions loader for firefox 2023-03-18 13:58:44 +02:00
SillyLossy 1cc49e70e7 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-18 12:47:50 +02:00
SillyLossy d78bd26977 Message template instantiation 2023-03-18 12:43:49 +02:00
RossAsscends 4777531014 a few more css fixes/tweaks related to chat flow 2023-03-18 14:56:52 +09:00
RossAsscends 0a7f06855b changed #chat and .mes CSS
chat now starts with the first message on the bottom of the scroll
just like CAI
this is more intuitive for the swipe buttons as they don't move much
2023-03-18 14:26:34 +09:00
RossAsscends 33659c4e7a - fixed touch swipe detection
- removed unnecessary hideswipebuttons calls
- restyled swipe buttons to display flex
2023-03-18 13:25:17 +09:00
RossAsscends 440c2851f2 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-18 12:40:14 +09:00
RossAsscends de27382e50 - made right swipe highlight when next swipe will generate
- added a swipe counter below right swipe
(could add a toggle for displaying it later)
- removed spammy console.logs from expressions index.js
- swipes no longer trigger under the following conditions:
- - when an input it focused
- - when character_popup or history popup are visible
- - when send_textarea has something typed into it
(I think this a bit too restrictive, may seek a smarter way to handle it)

ISSUE: Pyg repeating gens cause swipes animation to lag/freeze
not sure what is the cause, but should seek to remedy somehow.
2023-03-18 12:34:18 +09:00
SillyLossy 1f959a0e82 Reformat system message using array of strings 2023-03-18 02:57:30 +02:00
RossAsscends 07c6f09be2 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-18 08:20:03 +09:00
RossAsscends 12540bfbcd removed unused font folder and contents 2023-03-18 08:19:58 +09:00
SillyLossy ec00cc023f Remove inversion for error avatars (moved to css) 2023-03-18 01:19:33 +02:00
SillyLossy 839b76dedd Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-18 01:19:07 +02:00
SillyLossy dfce704278 Fix selected avatar style 2023-03-18 01:19:04 +02:00
RossAsscends c2bad577ea fixed bug with hidden range sliders 2023-03-18 08:06:38 +09:00
RossAsscends 658d046e2f Apple icons into /img/ + redirected html tags 2023-03-18 07:36:16 +09:00
RossAsscends bd60065e90 back to working after merge,
formatting should match
fixed bug with send butting showing up midway through long pyg generations
optimized changeMainAPI function
2023-03-18 07:01:25 +09:00
RossAsscends 5f2c6b8853 - fixed swiping/generation post merge
- optimized char edit/create textarea listeners
- optimized listeners for left side options popup
-
2023-03-18 06:09:12 +09:00
SillyLossy 8beb1ade21 Post-merge fix 2023-03-17 19:55:40 +02:00
SillyLossy 2b3910b968 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-17 19:42:29 +02:00
SillyLossy ecf991ec81 Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev 2023-03-17 19:41:00 +02:00
SillyLossy 2f2092106e Merge branch 'SL-TAI-RA-Mods' into dev 2023-03-17 19:40:26 +02:00
Cohee 9811b0dc3a Merge pull request #9 from 10sa/patch-silly-1
Add IP listening option
2023-03-17 18:32:31 +02:00
RossAsscends 7ff70819c1 greeting msg formatted
broke greeting message into readable strings with literals
2023-03-18 01:17:56 +09:00
SillyLossy 0942a2012e Add more safeties 2023-03-17 13:08:01 +02:00
10sa bdd2708f89 Add IP listening option 2023-03-17 19:33:16 +09:00
SillyLossy a894036d34 Fix styles 2023-03-17 11:54:06 +02:00
RossAsscends 420fb5ef17 fixed mistake with function locations, working now. 2023-03-17 17:52:35 +09:00
SillyLossy a89f31d614 Add safety switches 2023-03-17 10:46:23 +02:00
RossAsscends 10a4d39c7e removed a few comments 2023-03-17 17:39:48 +09:00
RossAsscends b20b865887 refactored main JS code and RAmods functions 2023-03-17 17:37:59 +09:00
SillyLossy 9ab8ca9b6b Search by groups 2023-03-17 01:41:54 +02:00
SillyLossy ef6d0acaed Fix top bar of characters block 2023-03-17 01:35:14 +02:00
SillyLossy b09d7abf49 Fix style of lock + group default message 2023-03-17 01:32:56 +02:00
SillyLossy 0081f5d0d7 Fix resetting preset on load of API 2023-03-17 00:21:06 +02:00
SillyLossy 5ef3b3417b Add image 2023-03-16 23:14:47 +02:00
SillyLossy a328058b93 Add placeholder for deleted avatar 2023-03-16 23:14:38 +02:00
RossAsscends c0a285eaa2 removed extra semicolon in RA-mods.js 2023-03-17 06:07:10 +09:00
RossAsscends f6dc978595 added swipes,
fixed suer avatar highlighting
swiping works on touchscreens
arrow left and right also swipe on PC
2023-03-17 05:52:57 +09:00
SillyLossy 4ce7fa59be Refactor right menus 2023-03-16 22:51:18 +02:00
SillyLossy 4225f217d0 Fix forcing pygmalion on no connection 2023-03-16 19:40:33 +02:00
SillyLossy 2d48a3bd25 Fix images getting squeezed when resized 2023-03-16 19:38:16 +02:00
SillyLossy fb0fd0d242 Added icons for top menu 2023-03-16 18:33:02 +02:00
SillyLossy 6b1b614045 Patch expressions by @RossAscends 2023-03-16 18:32:38 +02:00
SillyLossy 85da761244 Merge branch 'main' into dev 2023-03-16 11:15:25 +02:00
SillyLossy c617b7e7d5 Fix oobabooga's API (added encoder rep pen) 2023-03-16 10:46:00 +02:00
SillyLossy 165cad1549 Copy extensions from extras project to main 2023-03-16 00:33:26 +02:00
SillyLossy 2cda80ffe4 Merge branch 'SL-TAI-RA-Mods' into dev 2023-03-15 21:36:20 +02:00
SillyLossy a79aed4694 Packy locky 2023-03-15 21:26:51 +02:00
RossAsscends f558e12bda - renamed default expression folder
- split localStorage functions into separate js
2023-03-16 04:18:35 +09:00
SillyLossy eec9844e39 Power user: new module 2023-03-15 21:07:32 +02:00
SillyLossy a527ae1ad7 Rename files 2023-03-15 20:42:51 +02:00
SillyLossy 0736e72baf Debounce character saving (properly) 2023-03-15 20:15:45 +02:00
SillyLossy e85b26d5dc Split modules 2023-03-15 20:03:53 +02:00
RossAsscends 15f1d14db2 added default expression pack of 30 emojis to /img/ 2023-03-16 00:28:47 +09:00
RossAsscends 9483ec464a added
- swipes library
- CSS for mobile,
- swipe left/right on last msg to regenerate
2023-03-15 23:27:00 +09:00
SillyLossy 34b20b664f Add js map file for extension 2023-03-15 14:56:13 +02:00
SillyLossy 6d85f527a2 Farewell, stupid sharp. Hello jimp (thx CncAnon) 2023-03-15 13:56:53 +02:00
SillyLossy 16ac0f3a31 Replace constants with variables 2023-03-15 12:59:39 +02:00
SillyLossy 231ae91ae6 Fallback avatar renamed 2023-03-15 12:54:48 +02:00
SillyLossy 0442d39e60 Good night, sweet Chloe 2023-03-15 12:53:37 +02:00
SillyLossy cdadad1ede Reformat script 2023-03-15 11:10:47 +02:00
RossAsscends 5f2882e33f more typos 2023-03-15 08:50:11 +09:00
RossAsscends c51f63cd7a fixed typos in readme and RA-mod.js comments 2023-03-15 08:42:29 +09:00
RossAsscends 4ea7b22f4b added ability to save to iOS homescreen
added fullscreen capability for iOS (no more address bar in the way)
2023-03-15 07:05:44 +09:00
RossAsscends 7ee05adf9b Merge branch 'RossAscends-split-JS-for-SilyLossy-TAI' of https://github.com/RossAscends/TavernAI into RossAscends-split-JS-for-SilyLossy-TAI 2023-03-15 06:46:16 +09:00
RossAsscends cbcb772a64 ignored settings.json 2023-03-15 05:56:57 +09:00
RossAscends 2434822a44 Update readme.md 2023-03-15 05:52:25 +09:00
RossAscends b8c99ef2c1 Update readme.md 2023-03-15 05:15:40 +09:00
RossAsscends 20dc882b75 - Merged RossAscends-mods.js as separate file.
- removed RA functions from main JS (left code as comments, feel free to delete)
- moved function declarations out of document ready
- function calls and listeners remain inside the document ready function
- fixed UsernameChange and Char deletion in main JS
- updated Humanizedtime variable name
- small css changes
2023-03-15 04:52:16 +09:00
SillyLossy c1699b4193 Remove looping in oobabooga's API 2023-03-14 16:24:24 +02:00
Cohee 4488110ea0 Update readme.md 2023-03-13 19:27:25 +02:00
Cohee 6a5a0efff9 Update readme.md 2023-03-12 23:31:15 +02:00
Cohee 61a8c65b2d Update readme.md 2023-03-12 23:31:01 +02:00
SillyLossy abe5aa7cc0 Extra notice for ooba users 2023-03-12 22:40:15 +02:00
Cohee 1668b94f97 Update readme.md 2023-03-12 22:25:40 +02:00
SillyLossy 93d9af931a Remove default novel preset 2023-03-12 21:48:45 +02:00
SillyLossy 2f76bbb7d6 Fix novel preset duplication 2023-03-12 21:42:14 +02:00
Cohee 74647ab270 Update readme.md 2023-03-12 16:01:29 +02:00
SillyLossy 15f6f745a0 Reformat code 2023-03-12 15:51:27 +02:00
SillyLossy 6f4832b491 Merge branch 'dev' 2023-03-12 15:45:20 +02:00
SillyLossy 4fdc5acfbe Default API changed to kobold 2023-03-12 15:44:23 +02:00
SillyLossy 0f2a56ddf1 Fix char avatar corruption 2023-03-12 15:41:00 +02:00
SillyLossy b01bf57fda Create date fix 2023-03-12 14:33:45 +02:00
SillyLossy 76f0e892a4 Fix console spam on deletion 2023-03-12 14:04:20 +02:00
SillyLossy 8bff8a59a5 Fix avatar changing on import 2023-03-12 14:02:33 +02:00
SillyLossy de99802ac8 Collapse newlines power option 2023-03-12 13:46:51 +02:00
SillyLossy 198526bcbe Support for the dice plugin 2023-03-12 00:42:58 +02:00
SillyLossy 625f4fe8b4 WI editor styles adjustment 2023-03-11 16:13:29 +02:00
SillyLossy 2b51a3348c Better checkbox styles 2023-03-11 15:54:38 +02:00
SillyLossy 28004e7616 Autoconnect to ooba and novel 2023-03-11 00:17:26 +02:00
SillyLossy c6e5b394f2 Fix resetting character 2023-03-10 23:56:14 +02:00
SillyLossy 439286b946 Fix notice style for ooba 2023-03-10 23:54:46 +02:00
SillyLossy 100c934f5a Hide character only if deleted 2023-03-10 23:53:04 +02:00
SillyLossy 216b251f3e Enable amount gen if switching API from Kobold with GUI preset 2023-03-10 22:01:16 +02:00
SillyLossy 142ac02293 Merge branch 'main' into dev 2023-03-09 22:43:49 +02:00
SillyLossy 7cc9ebff8d Reset prompt bias after first generation 2023-03-09 22:05:26 +02:00
SillyLossy 7c7b212684 Merge branch 'main' into dev 2023-03-09 17:42:02 +02:00
SillyLossy af709ce079 Change WI slider values 2023-03-09 17:41:19 +02:00
SillyLossy af7d30b248 Display Chloe on group chat deletion 2023-03-09 01:54:52 +02:00
SillyLossy d804720357 Improvements to group chats 2023-03-09 01:40:30 +02:00
SillyLossy 5f4c9bf301 Step pen.alpha return 2023-03-08 17:59:39 +02:00
SillyLossy 6cafd60bb3 Remove hardcoded context side 2023-03-08 17:57:56 +02:00
SillyLossy 62a6fa8519 Add support for text generation UI (by @im-not-tom) 2023-03-08 17:34:14 +02:00
SillyLossy f91bcb6c73 Merge remote-tracking branch 'origin/update-tokenizer' into dev 2023-03-08 16:53:08 +02:00
SillyLossy d15ad3ef8f Merge branch 'main' into dev 2023-03-08 13:18:06 +02:00
SillyLossy 6d53ab3001 Merge remote-tracking branch 'ross/main' 2023-03-08 13:15:07 +02:00
SillyLossy 4676777d17 Un-hide Soft Prompts selector 2023-03-08 01:59:05 +02:00
SillyLossy 73d669628d Sort extension prompts by key alphabetical order 2023-03-08 01:58:48 +02:00
RossAsscends ef7e412896 create_form and api_form CSS
tweaks to panel menus to maximize utilization of space.
2023-03-08 05:39:19 +09:00
RossAsscends c21317d69e CountCharTokens() + create_form to grid +CSS tweaks
1. Added a new utility function CountCharTokens() to replace the token counting routine from before. It also works unsaved new characters.

1.5 - moved #result_info to the top under avatar.

2. put create_form into a grid display so the two textareas can automatically resize to fill as much space as possible.

3. CSS - standardized background shadings, and replaced backdrop filters with RGBA background-colors for most divs. increased the strangth of some box-shadows on large UI divs
2023-03-08 04:53:00 +09:00
SillyLossy 63ddd82792 Fix search bar 2023-03-07 18:04:50 +02:00
SillyLossy 92109d9044 Search bar fixed 2023-03-07 18:02:03 +02:00
SillyLossy 93ec43893c Merge branch 'main' into dev 2023-03-07 17:38:43 +02:00
SillyLossy 56cf662081 Fix settings deletion 2023-03-07 17:36:50 +02:00
SillyLossy 936cb32264 Support multiple extension prompts 2023-03-07 17:18:53 +02:00
SillyLossy 837ecb636a Style adjust 2023-03-07 16:38:41 +02:00
SillyLossy 2a41834b3d Filter caret return symbols out of prompt 2023-03-07 15:10:19 +02:00
SillyLossy 1c9658c82a WI replacement params 2023-03-07 15:04:29 +02:00
RossAsscends 16b4503d8f KoboldAI settings presets selector fixed for QuickRefresh
The selector menu for KoboldAI settings presets was doubling the list of presets when QuickRefresh happened, so i uncommented the "$("#settings_perset").empty();* line of code in /getsettings
2023-03-07 05:45:57 +09:00
SillyLossy 67e94493cb Adjust styles 2023-03-06 18:47:44 +02:00
SillyLossy 427c21ee8c Better extensions style 2023-03-06 18:11:12 +02:00
SillyLossy 50743afaa9 Remove debugger 2023-03-06 17:52:35 +02:00
SillyLossy 36a62aad9e Merge branch 'main' into dev 2023-03-06 17:51:20 +02:00
SillyLossy 9134504a7b Post-merge fixes 2023-03-06 16:51:08 +02:00
SillyLossy d2cce0eead Merge remote-tracking branch 'ross/main' 2023-03-06 16:04:41 +02:00
RossAsscends 88a2b46a77 AtoZ char sorting + QuickRefresh on Username change 2023-03-06 17:47:29 +09:00
RossAsscends b03fd99588 syncing PNGs 2023-03-06 11:02:07 +09:00
RossAsscends 2cd6739aaa dynamic char delete + button/create form styling
1. enabled deletion of characters without page reload. now when a user deletes a character, the page will not auto-refresh, but they will be get a message from Chloe instructing them to pick another character to continue.

2. standardized all buttons to use menu_button class instead of individual ID stylings

3. adjusted create_form, making wider range inputs for mobile users.
- moved 'back button' to the bottom of the form next to delete/create/export
- changed the 'back' button on post-creation rm_info to look like a button

4. condensed redundant CSS where possible; removed unused CSS.

5. Fixed the problem of the nav auto-closing when a character is created or when using advanced editing window.

6. made the token counter load when a character is selected. previously it only showed up after edits were made.

7. found some problems with /createcharacter - if a character/PNG with the same name exists, the server won't make a new character, but it doesn't tell the user about the error.  I UI acts as if the character was created. I added some soft console.error messages for this, but couldn't figure out a way to make it give a proper error. probably because fs.existsSync doesn't have a callback.
2023-03-06 10:58:10 +09:00
SillyLossy 4031a599ac Bypass localtunnel on loading extension files 2023-03-05 15:43:28 +02:00
SillyLossy 1db21e1a13 Add value to Tunnel bypass header 2023-03-05 14:52:29 +02:00
SillyLossy f7f2c3078f TEST: Supposed fix of "avatars infection" issue 2023-03-05 14:51:22 +02:00
SillyLossy f6aa6609cd Fix for localtunnel 2023-03-04 23:32:32 +02:00
RossAsscends 6793db967f fixed advanced_div and styled notes links
advanced div changed to grid layout

notes links "?" styled as circles
2023-03-04 17:26:20 +09:00
RossAsscends 5bde642f5b Moved AutoFeatures Out of getSettings
Originally both AutoConnect and AutoLoadChat features were built into the getSettings function, but this caused unreliable functionality on Firefox and Chrome.

Instead I made them their own functions to call separately once everything else in the loading process had finished.
2023-03-04 07:50:15 +09:00
SillyLossy 3616895190 Add chatId to external API 2023-03-04 00:25:39 +02:00
RossAsscends 507cddcba7 swapped auto-function execution order
testing in firefox showed connecting to API first caused a very small amount of lag which caused it to skip the auto-load-chat feature.

swapping the order and placing auto-connect at the end of getSettings fixed this.
2023-03-04 05:40:13 +09:00
RossAsscends 569ca97b13 added Firefox compatibility to styled check boxes 2023-03-04 04:41:16 +09:00
RossAsscends 7ce52046fd New toggle features: Auto-Connect & Auto-Load-Chat
1. new function - Auto-connect to API
2. new function - Auto-load last character/chat

Both of these have toggles in the right menu at the bottom in a "Power user options" section.

Both only load if settings.json has a pre-defined setting for them. (won't fire on first load after install)
2023-03-04 04:00:40 +09:00
SillyLossy 939d1bf663 Add extension API for external prompt additions 2023-03-03 20:36:24 +02:00
RossAsscends eb30b84bff Update style.css 2023-03-03 11:44:11 +09:00
RossAsscends b856e2f566 A little error-proofing to chat loading and history viewing
1. revised the new date format (reformatted to be a function so it would return new dates each time called)

2. re-added new date format functionality as I had previously rolled it back while debugging the avatar loading issues discovered in last push.

3. resolved some issues related to loading past chats for bots with no chat save files. Usually this wouldn't happen, as a new (or previous) chat is loaded each time the character is selected. But in cases where the files are deleted after being created, the chat history loading screen would remain in a 'loading.svg' loop. I added errorhandling to avoid this, and to kick GetAllCharaChats() from trying to read empty arrays.

4. increased potential size of past chats popup box
2023-03-03 11:36:57 +09:00
SillyLossy f5013d373d Add more fields to the context 2023-03-03 01:44:06 +02:00
SillyLossy 6199fcb5da Merge branch 'main' into dev 2023-03-03 01:14:04 +02:00
SillyLossy 402d88c354 Note styles from Ross 2023-03-03 01:07:21 +02:00
SillyLossy b0baeba156 Merge remote-tracking branch 'ross/main' 2023-03-03 01:02:45 +02:00
RossAsscends 751647461e Fixed broken character avatar updates + settings panel tooltips
1. Due to a mistake on my end character avatars were not updating real time. This has been fixed.

2. added some tooltips to icons and buttons on the right nav panel.

3. resized the New Character and Import Character buttons
2023-03-03 07:26:21 +09:00
SillyLossy 6c3984d4f4 Move message styles 2023-03-02 23:47:08 +02:00
SillyLossy 6b3bd1e6cf Fix message edit 2023-03-02 22:05:31 +02:00
SillyLossy 7a3e62692c Revert colab changes 2023-03-02 21:15:25 +02:00
RossAsscends cfa642507f Chat Filename Humanization + Larger Past Chats Box
1. Replaced all Date.now() instances with a humanized ISO8601 timestamp that is easily readable by users.

This has a seamless effect on the  embedded timestamping of chat mesages. Old chat files can still be edited (messages deleted), and continued.

Character PNG files get updated with the new date format, and this will be reflected in github but there is no functional change to the user.

2. Added character name to the front of all newly saved/imported chat files. Old chats will retain their original filename unless re-imported.

With these two changes, the new chat filenames are as such:

"Aqua - 2023-3-3 @03h 08m 36s 948ms.jsonl"

(I would like to make it smaller, perhaps by removing the milliseconds. Let me know if this is possible, or if it would introduce potential overwrites if users make/update files within the same second.)

3. Increased the size of the 'view past chats' popup box to max 800px so accommodate the new larger filenames.
2023-03-03 03:48:30 +09:00
SillyLossy 36b3d4cac3 Add support for external TAI API calls 2023-03-02 17:05:27 +02:00
RossAsscends 6cc4918d25 added styles to Notes pages. 2023-03-02 18:21:57 +09:00
SillyLossy da8ccbbcc1 Error handing for fetch and style fix 2023-03-02 01:42:00 +02:00
SillyLossy f5635155b9 Add extension loader 2023-03-02 01:32:33 +02:00
SillyLossy faf850794a Fix click propagation 2023-03-01 23:35:43 +02:00
SillyLossy ce90556729 Merge branch 'main' into dev 2023-03-01 23:30:18 +02:00
SillyLossy 65f900f0be Style fix-up 2023-03-01 23:20:31 +02:00
SillyLossy 48c9c8ca51 Merge remote-tracking branch 'ross/main' 2023-03-01 23:14:03 +02:00
SillyLossy 41437c7770 Add draft extensions loader 2023-03-01 23:12:34 +02:00
RossAsscends 7b3a6135f7 small alignment changes 2023-03-02 04:32:15 +09:00
SillyLossy 496e5008b1 Colab debug 2023-03-01 21:24:07 +02:00
RossAsscends 66562c53be small changes to checkbox placement 2023-03-02 04:19:08 +09:00
RossAsscends 4d07e4f785 removed excess remote font call in CSS 2023-03-02 04:12:13 +09:00
SillyLossy 569ae28e9e Add tensorflow to colab 2023-03-01 21:09:26 +02:00
RossAsscends c4a30056a2 fixed checkboxes
unified right-nav checkbox to match the delete-checkbox style
2023-03-02 04:03:27 +09:00
SillyLossy 71c02d0297 Colab debugging 2023-03-01 20:51:13 +02:00
SillyLossy 9950bdda31 Fix stupid bug 2023-03-01 20:28:59 +02:00
SillyLossy 327063f7fa Update extras Colab 2023-03-01 20:21:11 +02:00
SillyLossy a297962b99 Add extras to colab 2023-03-01 19:55:29 +02:00
RossAsscends c1e967021f cleaned up CSS
ran the CSS through a few validators and beautifiers. redundant styles removed, errors fixed.
2023-03-02 01:51:21 +09:00
RossAsscends 8e2ffa3a01 right nav header changes
changed the right nav header tabs from "character" and "settings" to emojis that represent each respectively. This was to allow the selected character's name to have a larger display footprint for mobile screens.
2023-03-01 20:03:12 +09:00
SillyLossy 3b30672b09 Merge branch 'main' into groupchats 2023-03-01 11:03:31 +02:00
SillyLossy a73ad9d53f Merge remote-tracking branch 'ross/main' 2023-03-01 10:54:51 +02:00
RossAsscends dac14985f4 fixed bug with ctrl+enter
previously the keydown eventlistener for  'enter' would trigger even though ctrl was pressed, so i changed it so it doesn't trigger when ctrl is pressed (previously it only checked if shift was not pressed)
2023-03-01 16:34:04 +09:00
RossAsscends a67d771d75 nav lock icon hover glow
- made the right nav lock icon glow on hover
- small HTML code cleanups (remove blank lines, etc)
2023-03-01 05:54:20 +09:00
RossAsscends db19ccb0f0 added panel lock to rightnav
Added a lock/unlock toggle to the right nav which will function to pin the panel in place (disengages auto-close) if the user desires it.
2023-03-01 05:38:02 +09:00
RossAsscends e16b1d533b nav-toggle transparency
fixed the transparency on the new nav-toggle setup.
2023-03-01 04:42:07 +09:00
RossAsscends ea30e8abe5 text-pole fixes
- removed forced size tags from text-pole div's as these caused some textareas to overflow the nav on iphone. instead widths are done with CSS now.

- added <br> after yourName textarea  and increased size of the nameChange button to match the API design. This is also better for phones.
2023-03-01 04:38:54 +09:00
RossAsscends fdc0665987 Updated Right Nav And Added Click-Away Closing
Rewrote the nav HTML/CSS

.nav --> #right-nav-panel
.nav-toggle <label> --> removed, using #nav-toggle:after for styling instead

The main purpose of this rewrite was to allow for a function such that the nav panel will auto-close when the user clicks away from it. The former structure of using a label for a hidden checkbox made this impossible, as the label produced two clicks when clicked on (one for the label, and one for the box), therefore locking the panel if the click-away feature was turned on.

I will add in a 'pin' toggle soon to allow users to hold the nav panel open if they wish.

- Changed default font size from 1rem to 15px;

- removed unused CSS code for <main>,<article>,<header>, and <footer>, which were not used in the HTML
2023-03-01 04:22:32 +09:00
RossAsscends d9a7a74116 Update index.html 2023-02-28 19:07:41 +09:00
SillyLossy 0e59edf5e1 Group chat auto-mode (broken & hidden) 2023-02-27 22:54:00 +02:00
SillyLossy a1c797fb13 Better scrolling (I hope) 2023-02-27 21:19:04 +02:00
SillyLossy 1b8b8f0f37 Fix deletion and smooth indicator 2023-02-27 21:15:35 +02:00
SillyLossy f215ff664e Shuffle randomly activated chars 2023-02-27 19:25:38 +02:00
SillyLossy aa05749e9b Implement message sending in group chats 2023-02-27 18:48:01 +02:00
SillyLossy 82566e1163 Add group chats creation 2023-02-27 01:57:10 +02:00
RossAsscends 097cfc2e4f Update style.css 2023-02-27 02:11:28 +09:00
RossAsscends 7ecf8b58ca reversed Enter/Shift+Enter functions
(and made connect buttons larger for mobile)
2023-02-27 00:27:41 +09:00
RossAsscends 29623350bd submenu stylings
- made send3.png opaque and adjusted opacity with CSS
- removed redundant backdrop blur on from <body>
- removed redundant backdrop blur from bg1 and bg2 (they now only self-blur)
- made "Connect" button on both API panels larger for mobile screens, and added :hover coloring
- made character 'export' and 'delete' buttons larger and further apart to decrease likeliness of mis-clicks, especially on phone screens.
- adjusted send_form opacity/background stylings to allow #options to perform blur effect
- added <br> after novel API URL input to match KoboldAI form style
- cleaned up #options_content and added styling
2023-02-27 00:19:51 +09:00
RossAsscends 76cfa2c050 Update style.css 2023-02-26 21:40:22 +09:00
RossAsscends 5d38f57292 menu btn color and character_popup changes
charcter_popup set to cover all main sheld elements for ease of use and to limit user errors (using the chat input box while having the character's advanced defs popup open)

removed forced coloring from popup menu buttons.
2023-02-26 21:30:33 +09:00
SillyLossy 335f311474 Merge remote-tracking branch 'ross/main' 2023-02-26 13:41:43 +02:00
RossAsscends 4aecc49e2a various design edits
- changed background color of messages selected for deletion
- changed color of delete message confirmation buton
- changed size/height of deletion menu to match normal send_form height (to avoid #chat resizing awkwardly)
- reverted #chat scrollbar to normal display since corners are no longer rounded
- removed corner radius from #chat .mes divs, since they are invisible anyway
- removed large margin-bottom between #chat .mes divs and replaced with a smaller padding. (This makes the delete screen look nicer as there are no gaps between the selected messages)
- aligned deletion checkboxes in the center of the divs and vertical aligned with avatar icons
2023-02-26 20:34:06 +09:00
RossAsscends 2a13d1d9d5 changed character-popup to match new chat div style 2023-02-26 19:34:49 +09:00
RossAsscends 4d36ebd6f3 changed send_form display
-100% width
- send_form's grid cell widths and options button paddings changed to fit
- changed corner roundness of chat and send_form
- reduced margin between chat and send_form to 1px
2023-02-26 18:31:39 +09:00
RossAsscends 3d05198efd changed input bar status indication
- removed the indicator circle under the send button
- made send_form turn red when not connected
- changed send_textarea's placeholder text when not connected
- made send button hide when not connected (avoids users trying to use API and instead getting a 'character not selected' button)
2023-02-26 18:19:04 +09:00
RossAsscends 2263ebe75d Update style.css 2023-02-26 17:04:52 +09:00
RossAsscends 384bb56f1e Update index.html 2023-02-26 13:30:17 +09:00
RossAsscends 2500fc3cdd hotkey switch
enter = new line
shift+enter = send
(imperfect solution but slightly better for mobile users)
2023-02-26 11:22:06 +09:00
RossAsscends d44cbac87f added proper scrolling to character settings side panel 2023-02-26 10:40:46 +09:00
SillyLossy e24e2bb2ca Correction in note regarding order 2023-02-25 23:33:05 +02:00
SillyLossy 6ad55a7fa5 Fix newlines in WI insertion 2023-02-25 23:28:50 +02:00
SillyLossy d33c08abd4 Reverse append order of WI 2023-02-25 22:13:24 +02:00
SillyLossy 61b672f02e Fix avatar upload align 2023-02-25 17:56:58 +02:00
SillyLossy 3a6e1cc660 Add avatar uploading 2023-02-25 17:53:05 +02:00
RossAsscends 26417f1383 Merge branch 'main' of https://github.com/RossAscends/TavernAI 2023-02-25 21:15:36 +09:00
RossAsscends e156373ad0 input bar auto-shrink on send
previous the input bar would expand to the fit the size of the typed input, but when it was sent, the bar would stay the same size. Now it will auto-shrink back to default size after sending the input to AI.
2023-02-25 21:15:29 +09:00
RossAscends 5029c6c3f5 added TAI main branch config.conf 2023-02-25 17:34:05 +09:00
RossAsscends 4f2174eced Delete settings.json 2023-02-25 17:20:04 +09:00
RossAsscends 60cbda218c Update .gitignore 2023-02-25 17:10:52 +09:00
RossAsscends d63c5683e3 removing more files so gitignore will stop tracking 2023-02-25 17:09:13 +09:00
RossAsscends 64a1ecac7e Update .gitignore 2023-02-25 17:04:32 +09:00
RossAsscends 2cda771055 removed character and chats from this branch
just trying to update the gitignore
2023-02-25 17:03:34 +09:00
RossAsscends d400a74bed Update .gitignore 2023-02-25 16:57:34 +09:00
RossAsscends de6cfc339a Update .gitignore 2023-02-25 16:56:31 +09:00
RossAsscends a0efd37a0c Update .gitignore 2023-02-25 16:50:28 +09:00
RossAsscends 13a1110474 Update .gitignore 2023-02-25 16:49:56 +09:00
RossAsscends 05ef64769d Merge branch 'main' of https://github.com/RossAscends/TavernAI 2023-02-25 16:46:53 +09:00
RossAsscends 001c8fa2b8 Update .gitignore 2023-02-25 16:46:41 +09:00
RossAscends cc55a885a4 Update style.css 2023-02-25 16:44:49 +09:00
SillyLossy a079dfaf11 Add newlines 2023-02-25 01:12:03 +02:00
SillyLossy 433a6575e8 Clean-up minor stuff for PR 2023-02-25 01:10:03 +02:00
SillyLossy 9a136dbd75 Post-merge fixes 2023-02-25 00:25:30 +02:00
SillyLossy 63a1f7abee Merge with ross changes 2023-02-25 00:02:17 +02:00
RossAsscends 9b9a6d909a updated gitignore
should hopefully not be tracking these files for future pushes.
2023-02-25 07:00:46 +09:00
RossAsscends 743371159b added gitignore
so future pushes don't include user data from public subdirectories, and uploads directory. also removed my config.conf, as I change it to disable the whitelisting feature.
2023-02-25 06:46:03 +09:00
RossAscends 5cf91b1264 some more index.html reverts
added back in cookie JS, favicon, and removed bootstrap links/script references.
2023-02-25 06:31:00 +09:00
RossAscends aa33f3be94 small CSS fix, reverting to default.
line 62 and 74 : background URL from "taverna.png" (my change) to "tavern.png" (default). I had made the url changes as a test for functionality while altering BG behavior. 

Even if taverna.png is in the CSS, the BG swapping works properly. 

I think I did this because having it set to tavern.png in the initial CSS will remove whatever BG was chosen by the user in a previous session. Could be wrong about that.
2023-02-25 06:18:15 +09:00
RossAscends 1f4c01fedf manual re-addition of index.html tokenizer code
line 849:
if((anchorTop != "" || charPersonality != "") && !is_pygmalion){

line 1035:
if(message_already_generated.indexOf('You:') === -1 && message_already_generated.indexOf('<|endoftext|>') === -1 && tokens_already_generated < parseInt(amount_gen) && getMessage.length > 0){
2023-02-25 06:03:12 +09:00
RossAscends 1c0ce37d3e Update bg_load.css 2023-02-25 05:46:17 +09:00
RossAscends 872c39ce3b Update index.html 2023-02-25 05:45:19 +09:00
RossAsscends 3663eb4564 Merge branch 'main' of https://github.com/RossAscends/TavernAI 2023-02-25 05:38:14 +09:00
RossAsscends 02330b4d12 Ross CSS 1.2.8 + hotkeys take 3 2023-02-25 05:36:41 +09:00
RossAscends d8544385ab Merge pull request #1 from SillyLossy/ross-css
New CSS from RossAscends
2023-02-25 05:14:43 +09:00
SillyLossy 21198fbad8 New CSS from RossAscends
Cleaner changes from https://github.com/RossAscends/TavernAI/tree/RossAscends-TavernAI-UI-for-1.2.8
2023-02-24 21:13:37 +02:00
SillyLossy b879b53a55 Add notes for Insertion Position 2023-02-23 20:43:58 +02:00
SillyLossy 5bea179f3b Update GPT tokenizer
Fixes being unable to tokenize words like constructor/toString/etc
2023-02-23 15:07:05 +02:00
SillyLossy 6eedc8e44c Add ability to change WI position 2023-02-23 01:51:05 +02:00
SillyLossy 9f04dcb498 Make resizable inputs in editor of WI 2023-02-22 21:04:16 +02:00
SillyLossy 215e7cef65 Reduced send area placeholder (ugly on mobile) 2023-02-22 00:06:46 +02:00
SillyLossy 3686971848 Add order of entries. 2023-02-21 23:31:19 +02:00
SillyLossy 406724f200 Disable server-side WI entirely 2023-02-21 16:22:28 +02:00
SillyLossy eff98b6efd Corrections to example lore 2023-02-21 16:19:03 +02:00
SillyLossy b36932f4df Merge branch 'main' of https://github.com/SillyLossy/TavernAI 2023-02-21 16:08:55 +02:00
SillyLossy 6b619b225b Better example lore. 2023-02-21 16:08:53 +02:00
SillyLossy 4d95807d4d Update note 2023-02-21 12:15:20 +02:00
SillyLossy e787370fc3 Default WI depth lowered 2023-02-21 12:11:04 +02:00
SillyLossy fd416dc6ae Merge branch 'main' of https://github.com/SillyLossy/TavernAI 2023-02-21 10:24:51 +02:00
SillyLossy c17e4c321c Move world info to client side 2023-02-21 00:19:48 +02:00
SillyLossy 41ab2eb1c3 Move world info to client side 2023-02-21 00:17:07 +02:00
SillyLossy 53bfce557f Replace implementation of world info 2023-02-20 18:19:46 +02:00
SillyLossy 94d4b06dc7 Merge branch 'TavernAI:main' into main 2023-02-19 12:43:51 +02:00
Ash a104082943 ip checking whitelist fix 2 2023-02-18 20:17:35 +04:00
Ash f24fd58710 ip whitelist fix 2023-02-18 19:54:44 +04:00
Ash 388acc4ddd optimisation checking EOS tag 2023-02-17 19:04:50 +04:00
Ash d6afa07560 favicon 2023-02-17 14:52:08 +04:00
Ash 6cf2d95144 ip whitelist check fix 2023-02-17 02:58:07 +04:00
Ash 7b9837fd06 fix 2023-02-17 02:42:49 +04:00
Ash 5e272e91d2 readme fix 2023-02-16 16:30:59 +04:00
Ash 82323fb2eb readme fix 2023-02-16 16:27:40 +04:00
Ash cebcd970c1 readme fix 2023-02-16 16:26:52 +04:00
SillyLossy 7cf902b7d2 Add async error handling 2023-02-16 13:01:11 +02:00
SillyLossy fcac6b0fe2 Change button styles 2023-02-15 21:41:08 +02:00
SillyLossy 2989f9566d Merge branch 'TavernAI:main' into main 2023-02-15 17:41:02 +02:00
Ash e764f94c8a Colab: add lt for KoboldAI 2023-02-15 16:49:46 +04:00
SillyLossy f60f2cb7a7 Uncomment set of boolean fields on Kobold WI 2023-02-15 14:35:31 +02:00
Ash a73decaac6 colab 2023-02-15 16:06:37 +04:00
Ash 171806db2f colab 2023-02-15 16:05:26 +04:00
Ash dbcc628d53 Merge branch 'main' of https://github.com/TavernAI/TavernAI
# Conflicts:
#	server.js
2023-02-15 15:36:42 +04:00
Ash 366f235c02 @1.2.8:
1) Security update: https://github.com/TavernAI/TavernAI/security/advisories/GHSA-25wp-82wc-xchj
2) Fixed several bugs related to character import: now all imported characters are added to the top of the list.
3) Fixed a bug that duplicated character cards if the character name and map name did not match.
4) Made minor fixes for prompt formatting.
5) Added the ability to enable/disable TavernAI autostart in the browser through the configuration file.
6) Adapted for Pygmalion Dev.
2023-02-15 15:33:06 +04:00
SillyLossy 7d2e4d4888 Style a system message. Fix up spacing in bias 2023-02-15 11:36:30 +02:00
SillyLossy 4ed158e23e Visual touche 2023-02-15 11:19:21 +02:00
SillyLossy d6e6f9520d Hide SPs select for now, refactor async endpoints 2023-02-15 11:08:01 +02:00
SillyLossy 3affc38b39 Better info about bias 2023-02-15 10:56:59 +02:00
SillyLossy 10e5e1e5ea Visual touche and fix-up of everything broken 2023-02-15 10:53:30 +02:00
SillyLossy 083e5efb32 Add missing div 2023-02-15 02:31:25 +02:00
SillyLossy 41c32fd12f Merge remote-tracking branch 'origin/softprompt' 2023-02-15 02:21:44 +02:00
SillyLossy 338de3f042 Merge remote-tracking branch 'upstream/main' 2023-02-15 02:19:57 +02:00
SillyLossy dde7e9ba97 Merge pull request #5 from SillyLossy/bias
Add message bias and a system message support
2023-02-15 02:14:50 +02:00
Borov666 e13c1a3877 Merge pull request #50 from 10sa/patch-3
Remove Cookie secure options
2023-02-15 02:04:31 +04:00
Tensa 44e7d2ab01 Remove Cookie secure options
almost server is not using https, so disable it.
2023-02-15 07:01:51 +09:00
Ash cb00faa570 Merge branch 'HEAD' of https://github.com/TavernAI/TavernAI 2023-02-14 23:11:24 +04:00
Ash baabea2c55 colab 2023-02-14 23:11:06 +04:00
TavernAI 8b7b51ffad Merge pull request #46 from ZoltanAI/main
Improve JSON import
2023-02-14 22:25:16 +04:00
TavernAI 8a47fa8385 Merge pull request from GHSA-25wp-82wc-xchj
Add X-CSRF-Token for preventing CSRF vulnerability
2023-02-14 22:24:37 +04:00
SillyLossy 052f12f8bc Add message bias and a system message support 2023-02-14 18:41:17 +02:00
10sa 1041fb77f7 Apply CORS Settings 2023-02-14 20:05:51 +09:00
SillyLossy ebe4c5ef7b Merge pull request #4 from SillyLossy/charsearch
Charsearch
2023-02-14 11:31:10 +02:00
SillyLossy d1b7423f7b Merge branch 'main' into charsearch 2023-02-14 11:31:01 +02:00
SillyLossy c89e28a645 Merge pull request #3 from RossAscends/CSS-Grey
CSS/JS/HTML edits
2023-02-14 11:28:45 +02:00
SillyLossy a465b39b8a Merge branch 'TavernAI:main' into softprompt 2023-02-14 10:59:36 +02:00
SillyLossy 99b054b644 Merge branch 'TavernAI:main' into charsearch 2023-02-14 10:58:37 +02:00
SillyLossy 3d4b16d18c Merge branch 'TavernAI:main' into main 2023-02-14 10:58:22 +02:00
Ash 20147fc8ca colab fix 2023-02-13 23:40:02 +04:00
10sa 9490c898c9 Implementats CSRF Token 2023-02-13 23:54:08 +09:00
SillyLossy 028b860bde Adjust CSS 2023-02-13 14:08:06 +02:00
SillyLossy 1922499193 Aligned search bar vertically 2023-02-13 13:59:56 +02:00
Ash 2dc54a95b5 colab 2023-02-13 13:02:08 +04:00
SillyLossy c0a8e26564 Move search form farther from scroll bar 2023-02-12 22:53:24 +02:00
SillyLossy b2fbd3d972 Removed extra closing div (I'm stoopid) 2023-02-12 22:43:44 +02:00
SillyLossy 0eb8aecdb2 Merge branch 'TavernAI:main' into softprompt 2023-02-12 22:34:42 +02:00
SillyLossy cb628ae072 Merge branch 'TavernAI:main' into charsearch 2023-02-12 22:34:33 +02:00
SillyLossy 455f1f0293 Merge branch 'TavernAI:main' into main 2023-02-12 22:33:57 +02:00
Ash 89f575852b fix 2023-02-12 23:15:06 +04:00
SillyLossy 4e638c65c5 Added search bar for characters 2023-02-12 20:13:23 +02:00
Ash 7309796847 colab fix 2023-02-12 21:37:53 +04:00
SillyLossy 38d83c7eec Add softprompts selector 2023-02-12 18:11:33 +02:00
Ash 309b1679c5 Colab update 2023-02-12 18:11:48 +04:00
Ash e0724a2825 Colab save/load update 2023-02-12 18:06:47 +04:00
SillyLossy c9271a9462 Merge pull request #2 from SillyLossy/worldinfo
Worldinfo
2023-02-12 14:47:53 +02:00
SillyLossy 87428fba78 Add world creation button 2023-02-12 14:31:01 +02:00
SillyLossy 2389cd91b4 Fix settings resetting. Hide secondary key unless selective 2023-02-12 13:47:36 +02:00
SillyLossy 8e4c872b2b Merge pull request #1 from SillyLossy/worldinfo
Worldinfo
2023-02-12 00:20:30 +02:00
SillyLossy d09e3d114c #21 Add world info editor 2023-02-12 00:01:54 +02:00
ZoltanAI 3c295cff77 Improve JSON import
Prefer TavernAI JSON format
Import all TavernAI JSON properties
Handle missing or null fields
2023-02-11 14:42:53 +00:00
SillyLossy d6763a2931 Fix style of world import button 2023-02-11 16:27:13 +02:00
SillyLossy d4e512ebe9 Prettier alignment of import button 2023-02-11 16:24:58 +02:00
SillyLossy f3bd18b79d Merge branch 'TavernAI:main' into worldinfo 2023-02-11 14:01:49 +02:00
Ash dc40b82c9a colab 2023-02-11 03:02:46 +04:00
Ash 46f4b1e735 colab 2023-02-11 02:49:56 +04:00
Ash 2dec0ffce6 colab 2023-02-11 02:31:12 +04:00
Ash abc2bce7cf colab 2023-02-11 01:56:15 +04:00
SillyLossy bea28c1845 #21 Add world info export, edit popup and deletion 2023-02-10 23:26:53 +02:00
SillyLossy 1e48220711 #21 Add basic upload of world infos. Add info Note 2023-02-10 18:12:19 +02:00
SillyLossy fc8dad5c3f Display a notice for United Kobold users 2023-02-10 13:51:07 +02:00
SillyLossy d79d4f83f9 Fix resetting world info for None option 2023-02-10 13:50:26 +02:00
SillyLossy 0c77d41fa6 Merge branch 'worldinfo' of https://github.com/SillyLossy/TavernAI into worldinfo 2023-02-10 11:14:41 +02:00
SillyLossy 26790f9b3c More tidy for PR 2023-02-10 11:14:30 +02:00
SillyLossy a76a47c541 Remove unused array 2023-02-09 23:33:23 +02:00
SillyLossy 0c423b7d08 Tidy for PR 2023-02-09 23:01:29 +02:00
SillyLossy 8baeb0c8d4 Smarted world info status 2023-02-09 22:33:34 +02:00
SillyLossy 60234d7b3f Remove dummy mistake 2023-02-09 22:18:21 +02:00
SillyLossy e90c9c5576 Change sample world description (No Touhou allowed) 2023-02-09 22:17:17 +02:00
SillyLossy 3850477814 #21 Add saving/loading of selected world info from local settings. Improve syncronization. Add status of world info (buggy rn) 2023-02-09 22:13:37 +02:00
SillyLossy c760ba54f2 #21 Adds basic support of World Info files loading and synchronization with Kobold API 2023-02-09 18:38:00 +02:00
RossAsscends a34592b397 CSS/JS/HTML edits
Grey CSS, expandable input bar, online indicator moved to under send button
2023-02-10 01:15:22 +09:00
SillyLossy 2aa9af07a9 Merge branch 'TavernAI:main' into worldinfo 2023-02-09 12:26:50 +02:00
SillyLossy 06dc120c22 Add function template for world info generation 2023-02-09 12:25:04 +02:00
SillyLossy e8c23a9cd5 Add gitignore 2023-02-09 12:24:17 +02:00
Ash 0a13b2da53 security update 2023-02-09 13:55:18 +04:00
Ash 0d54556d6d css fix 2023-02-08 22:00:28 +04:00
Borov666 1f28dc26fb Merge pull request #36 from 10sa/patch-1
Fix Invalid CSS styles and comments
2023-02-08 21:50:21 +04:00
Ash d23f6e541d fix 2023-02-08 21:49:35 +04:00
Ash b4f877e8fd fix colab 2023-02-07 16:05:30 +04:00
Ash e25f2be75f fix colab 2023-02-07 15:55:07 +04:00
Ash 1e91cfa679 fix colab 2023-02-07 15:50:56 +04:00
Ash 7a0362c5f0 fix 2023-02-07 15:47:50 +04:00
Ash 997146b4e6 fix 2023-02-05 22:31:19 +04:00
Ash aa8958adba fix 2023-02-05 20:58:28 +04:00
Ash e451bdf4d0 @1.2.7
The bug with multigen 100+ token has been fixed.
The replacement of <USER>, {{user}}, <BOT>, {{char}} in Description, First message, Personality Summary and Scenario has been added.
Added full Markdown support.
The behavior of scrolling the chat to the cursor when editing a message has been fixed.
The offline functionality of TavernAI has been fixed.
2023-02-05 18:12:18 +04:00
Tensa e859011a98 Fix invalid CSS comment
See https://www.w3schools.com/css/css_comments.asp
2023-02-05 22:13:05 +09:00
Tensa 5b6f7548e6 Fix invalid css style
disolay -> display, Apply pretty format.
2023-02-05 22:05:51 +09:00
Ash 28b2615c7a fix 2023-02-05 14:10:58 +04:00
Ash 2b4e36340e Multigen fix 2023-02-05 13:14:10 +04:00
Ash 9c569eff8a Multigen fix
Added tag replacement
2023-02-05 13:12:39 +04:00
Ash 00d731a55b fix 2023-02-02 16:11:18 +04:00
Ash 01da74e3a0 fix 2023-02-02 15:55:56 +04:00
Ash e7ecb6689f fix 2023-02-02 15:26:28 +04:00
Ash 14c471170e Colab 2023-02-02 15:12:32 +04:00
Ash efac6bbe67 Colab init 2023-02-02 11:43:38 +04:00
Ash 634add4b45 Colab text 2023-02-02 02:10:35 +04:00
Ash b535250428 Colab file fix 2023-02-02 02:02:15 +04:00
Ash d37d624b76 Colab 2023-02-02 01:50:12 +04:00
Ash ee6a50fa8c String colab fix 2023-02-02 00:55:30 +04:00
Ash de97167789 Colab fix 2023-02-02 00:46:51 +04:00
Ash e3b173703c Colab fix 2023-02-02 00:34:41 +04:00
Ash 4ae387be93 Colab fix 2023-02-02 00:19:01 +04:00
Ash 95a2c736cf Colab fix 2023-02-02 00:06:45 +04:00
Ash d80a0f1132 Merge branch 'main' of https://github.com/TavernAI/TavernAI 2023-02-01 23:55:53 +04:00
Ash f96bc01d9b Colab and any fix 2023-02-01 23:55:01 +04:00
TavernAI 19397c37ff Merge pull request #27 from Mindus1/main
[Docker] Fix
2023-01-31 20:17:53 +04:00
Mindus 50589d51da [Docker] Fix
- changed relative paths of symlinks to absolute paths.
2023-01-30 21:44:38 +01:00
Ash bd338518a0 @1.2.6
Multigeneration now takes context into account
Html tags are now displayed in the message
Fixed a bug where the chat selection was saved only after editing the character
Minor fixes
2023-01-30 20:03:50 +04:00
Mindus 52ee6eaa1d [Docker] Fix
- changed seperate vol. for characters, chats, ... to single config vol.
- settings.json is now persistent
Fixes #1
2023-01-30 13:11:41 +01:00
Ash 18732874dc Set route for compilation 2023-01-30 12:20:14 +04:00
Borov666 9642f8acf5 Merge pull request #24 from Neutrovertido/main
Fix for PayloadTooLarge error when saving a large chat filesize
2023-01-29 12:55:30 +04:00
Borov666 8cfa142b23 Merge pull request #19 from Mindus1/Mindus1/issue18
Add Dockerfile for easy hosting TavernAI-GUI on multiple platforms.
2023-01-29 11:22:14 +04:00
Neutrovertido b695107b39 Fix issue PayloadTooLarge 2023-01-28 14:53:12 -06:00
Mindus 1bf922d395 Fix
- Automatic change of windows line endings when building docker image
- Creating characters, chats, avatars folders before adding defaults
2023-01-28 13:19:02 +01:00
Ash ec607362b6 @1.2.5 2023-01-28 15:44:58 +04:00
Ash e23a0d2a93 @1.2.5 CAI Import chat fix 2023-01-28 15:42:40 +04:00
Ash 4591056e38 Pygmalion 6b Colab setting preset 2023-01-28 14:51:31 +04:00
Ash 448941af5d Pygmalion 6b Colab setting preset 2023-01-28 14:32:44 +04:00
Ash 5a6e8a8d0d character fix 2023-01-27 09:38:43 +04:00
Ash 9aafceacc6 characters fix 2023-01-26 23:53:18 +04:00
Ash 4e720aa333 @1.2.4
fix context
2023-01-26 23:22:00 +04:00
Ash 910a54725f @1.2.4
Version change
2023-01-26 22:41:38 +04:00
Ash e63968212c Example message context fix
The default size of avatars has been changed to a larger one
2023-01-26 20:40:43 +04:00
Ash e499f6bfb4 fix 2023-01-26 13:35:06 +04:00
Ash 680dada017 For auto launch 2023-01-26 13:33:50 +04:00
Ash 741f4c41f9 Merge branch 'main' of https://github.com/TavernAI/TavernAI 2023-01-26 13:26:52 +04:00
Ash f950972468 for merge 2023-01-26 13:24:00 +04:00
Borov666 1960be197b Merge pull request #20 from AuroraNemoia/main
Open automatically in browser
2023-01-26 12:30:47 +04:00
Noelle ab87fdec38 Open automatically in browser
Uses the open module to launch Tavern once it's ready in the browser.
2023-01-26 03:02:28 -05:00
Mindus a8ea6d621c Fix for Dockerfile
- Added changing permission for entrypoint script.
- Changed moving of default characters, chats and user avatars.
2023-01-25 20:58:51 +01:00
Mindus b8d7706752 Merge branch 'TavernAI:main' into Mindus1/issue18 2023-01-25 20:27:58 +01:00
Mindus 2192308e08 Add Dockerfile for easy hosting TavernAI-GUI on multiple platforms.
Implements #18
2023-01-25 20:25:10 +01:00
Ash deb55c1eef fix 2023-01-25 14:25:15 +01:00
Ash f784dbf556 fix 2023-01-25 17:17:30 +04:00
Ash 3ade2a3c90 @1.2.3
Fixed stuck messages
Fixed freezes
2023-01-25 13:52:52 +04:00
Ash 8bb41605e9 fix 2023-01-25 12:07:46 +04:00
Ash 7391878b1c @1.2.2
Fixed multiplication of spaces in Pygmalion
Fixed the loop of generation for Pygmalion
2023-01-25 03:24:38 +04:00
Ash f04961c8d3 fix 2023-01-24 23:56:27 +04:00
Ash 4e92d6a582 version fix 2023-01-24 23:28:57 +04:00
Ash 533dca5a1a fix 2023-01-24 22:00:57 +04:00
Ash e38df3bf0a fix 2023-01-24 21:46:50 +04:00
Ash b07c6f203b fix 2023-01-24 21:43:01 +04:00
Ash ec7b9b26c1 remove modules 2023-01-24 21:41:10 +04:00
Ash 790695a2e5 @1.2.1
Message send fix
2023-01-24 20:36:36 +04:00
Ash cd6244d4b7 fix send message 2023-01-24 20:23:27 +04:00
Ash 7b87227cd2 Update 1.2.0 Theme of update: Characters
1) Character files now represent images, all data about the characters is located within the image file. This makes it easy to exchange characters.

You do not need to redesign your old characters in the new format, the conversion will happen automatically, old character files will not be deleted

2) Import function for characters is available, you can also import characters in the old TavernAI .json format, and you can also import characters from the Pygmalion notebook format

3) Export function for characters is available

4) The chat structure has been completely redesigned, now chats are located in the public/chats folder, chats now represent jsonl files, messages can be read one line at a time from such a file, this will help for future optimization when there are many messages

5) A new menu for selecting saved TavernAI chats is now available

Importing TavernAI chats is now available

Importing chats from CAI is now available

6) Additional advanced settings have been added for characters. A "Scenario" field has been added, as well as a "Dialogue Examples" field

7) Full support for the Pygmalion format has been added

A indicator now appears when special formatting for Pygmalion is enabled

8) Many other minor bugs have been fixed

To update an old version to version 1.2.0, you simply need to copy files with replacement.
2023-01-24 17:30:40 +04:00
Ash 26ebf6ec64 modules 2023-01-24 17:15:57 +04:00
Ash 21898e64fb Message edit fix 2023-01-13 10:21:32 +04:00
Ash 308c780d69 @1.1.3
1) Corrected message breaks for Pygmalion models
2) Fixed NovelAI max context overflow
2023-01-12 20:25:09 +04:00
Ash a0c6f6d482 Pygmalion settings fix 2023-01-12 13:48:07 +04:00
Ash 099809c742 fix 2023-01-12 13:30:56 +04:00
Ash ba24a691f0 Pygmalion settings fix 2023-01-12 13:23:18 +04:00
Ash 5e15e685a7 fix 2023-01-11 07:56:53 +04:00
Ash e424f37da1 Pygmalion 6b fix 2023-01-11 07:33:38 +04:00
Ash f87976cc8b Pygmalion 6b fix 2023-01-11 07:16:54 +04:00
Ash 486cda3592 fix 2023-01-11 05:31:18 +04:00
Ash 7b228eead7 @1.1.1
1) Pygmalion support
2023-01-11 04:40:29 +04:00
Ash ac529307b9 Aqua and Darkness chat save fix 2023-01-10 17:35:18 +04:00
Ash 82986f7cf3 fix 2023-01-09 05:20:25 +04:00
Ash 3e7b8b796b fix 2023-01-08 17:33:09 +04:00
Ash 932ce422e3 fix 2023-01-08 17:30:26 +04:00
Ash e4fa5945a7 fix img 2023-01-08 17:28:34 +04:00
Ash 44e7e646f6 fix img 2023-01-08 17:27:17 +04:00
Ash 385539938c fix 2023-01-08 17:21:46 +04:00
Ash fbf2d5fc00 @1.1.0
1)NovelAI support
2)Changing your character name
3)Repetition Penalty has been moved to the main settings
4)Added Pro settings (Anchors Order)
5)Max Context and Amount Gen have been added to the Pro Settings
6)Editing messages
7)New backgrounds
2023-01-08 17:18:10 +04:00
Ash a9c0d50da2 fix 2023-01-08 16:56:18 +04:00
Ash d8136649c1 Update readme 2023-01-08 16:54:32 +04:00
Ash 637a60812f fix wiki 2023-01-05 03:24:22 +04:00
Ash 07401cfd21 fix 2022-12-29 14:11:31 +04:00
Ash 213a4f1aee readme and api url 2022-12-29 14:07:52 +04:00
Ash f306fd8ca5 Change presets 2022-12-27 01:30:39 +04:00
TavernAI 2d7cc1185c Update readme.md 2022-12-22 08:41:32 +04:00
TavernAI d4e1a8cda8 Update readme.md 2022-12-22 08:36:01 +04:00
TavernAI db7f0de1f3 Update readme.md 2022-12-22 08:30:57 +04:00
TavernAI cafb8eb9ce Update readme.md 2022-12-22 08:25:40 +04:00
TavernAI 564c5301ce Update readme.md 2022-12-22 08:24:58 +04:00
TavernAI 5a6b3af66d Update readme.md 2022-12-22 08:21:15 +04:00
TavernAI 1e578ba85f Update readme.md 2022-12-22 08:16:36 +04:00
Ashen One a417031af4 main 2022-12-22 07:22:29 +04:00
826 changed files with 15256 additions and 192077 deletions
+1 -6
View File
@@ -1,9 +1,4 @@
.git
node_modules
npm-debug.log
readme*
Start.bat
/dist
/backups/
cloudflared.exe
access.log
Start.bat
-14
View File
@@ -1,14 +0,0 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.{js, conf, json}]
charset = utf-8
indent_style = space
indent_size = 4
[*.md]
trim_trailing_whitespace = false
-68
View File
@@ -1,68 +0,0 @@
module.exports = {
root: true,
extends: [
'eslint:recommended',
],
env: {
es6: true,
},
parserOptions: {
ecmaVersion: 'latest',
},
overrides: [
{
// Server-side files (plus this configuration file)
files: ['src/**/*.js', './*.js', 'plugins/**/*.js'],
env: {
node: true,
},
},
{
// Browser-side files
files: ['public/**/*.js'],
env: {
browser: true,
jquery: true,
},
parserOptions: {
sourceType: 'module',
},
// These scripts are loaded in HTML; tell ESLint not to complain about them being undefined
globals: {
DOMPurify: 'readonly',
droll: 'readonly',
Fuse: 'readonly',
Handlebars: 'readonly',
hljs: 'readonly',
localforage: 'readonly',
moment: 'readonly',
pdfjsLib: 'readonly',
Popper: 'readonly',
showdown: 'readonly',
showdownKatex: 'readonly',
SVGInject: 'readonly',
toastr: 'readonly',
},
},
],
// There are various vendored libraries that shouldn't be linted
ignorePatterns: ['public/lib/**/*', '*.min.js', 'src/ai_horde/**/*'],
rules: {
'no-unused-vars': ['error', { args: 'none' }],
'no-control-regex': 'off',
'no-constant-condition': ['error', { checkLoops: false }],
'require-yield': 'off',
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'indent': ['error', 4, { SwitchCase: 1, FunctionDeclaration: { parameters: 'first' } }],
'comma-dangle': ['error', 'always-multiline'],
'eol-last': ['error', 'always'],
'no-trailing-spaces': 'error',
'object-curly-spacing': ['error', 'always'],
'space-infix-ops': 'error',
// These rules should eventually be enabled.
'no-async-promise-executor': 'off',
'no-inner-declarations': 'off',
},
};
-90
View File
@@ -1,90 +0,0 @@
name: Bug Report 🐛
description: Report something that's not working the intended way. Support requests for external programs (reverse proxies, 3rd party servers, other peoples' forks) will be refused!
title: '[BUG] <title>'
labels: ['bug']
body:
- type: dropdown
id: environment
attributes:
label: Environment
description: Where are you running SillyTavern?
options:
- Self-Hosted (Bare Metal)
- Self-Hosted (Docker)
- Android (Termux)
- Cloud Service (Static)
- Other (Specify below)
validations:
required: true
- type: input
id: system
attributes:
label: System
description: >-
For deployment issues, specify your [distro or OS](https://whatsmyos.com/) and/ or Docker version.
For client-side issues, include your [browser version](https://www.whatsmybrowser.org/)
placeholder: e.g. Firefox 101, Manjaro Linux 21.3.0, Docker 20.10.16
validations:
required: true
- type: input
id: version
attributes:
label: Version
description: What version of SillyTavern are you running?
placeholder: (check User Settings to see the version)
validations:
required: true
- type: textarea
id: desktop
attributes:
label: Desktop Information
description: Please provide details about your desktop environment.
placeholder: |
- Node.js version (if applicable): [run `node --version` in cmd]
- Generation API [e.g. KoboldAI, OpenAI]
- Branch [staging, release]
- Model [e.g. Pygmalion 6b, LLaMa 13b]
validations:
required: false
- type: textarea
id: repro
attributes:
label: Describe the problem
description: Please describe exactly what is not working, include the steps to reproduce, actual result and expected result
placeholder: When doing ABC then DEF, I expect to see XYZ, but I actually see ZYX
validations:
required: true
- type: textarea
id: logs
attributes:
label: Additional info
description: Logs? Screenshots? Yes, please.
placeholder: If the issue happens during build-time, include terminal logs. For run-time errors, include browser logs which you can view in the Dev Tools (F12), under the Console tab. Take care to blank out any personal info.
validations:
required: false
- type: checkboxes
id: idiot-check
attributes:
label: Please tick the boxes
description: Before submitting, please ensure that
options:
- label: You have explained the issue clearly, and included all relevant info
required: true
- label: You've checked that this [issue hasn't already been raised](https://github.com/SillyTavern/SillyTavern/issues?q=is%3Aissue)
required: true
- label: You've checked the [docs](https://docs.sillytavern.app/) ![important](https://img.shields.io/badge/Important!-F6094E)
required: true
- type: markdown
attributes:
value: |-
## Thanks 🙏
Thank you for raising this ticket - in doing so you are helping to make SillyTavern better for everyone.
validations:
required: false
+35
View File
@@ -0,0 +1,35 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS/Device: [e.g. Windows 11]
- Environment: [cloud, local]
- Browser [e.g. chrome, safari]
- Generation API [e.g. KoboldAI, OpenAI]
- Branch [main, dev]
- Model [e.g. Pygmalion 6b, LLaMa 13b]
**Additional context**
Add any other context about the problem here.
@@ -1,91 +0,0 @@
name: Feature Request ✨
description: Suggest an idea for future development of this project
title: '[FEATURE_REQUEST] <title>'
labels: ['enhancement']
body:
# Field 1 - Did the user searched for similar requests
- type: dropdown
id: similarRequest
attributes:
label: Have you searched for similar requests?
description:
options:
- 'No'
- 'Yes'
validations:
required: false
# Field 2 - Is it bug-related
- type: textarea
id: issue
attributes:
label: Is your feature request related to a problem? If so, please describe.
description:
placeholder: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
validations:
required: false
# Field 3 - Describe feature
- type: textarea
id: solution
attributes:
label: Describe the solution you'd like
placeholder: An outline of how you would like this to be implemented, include as much details as possible
validations:
required: true
# Field 4 - Describe alternatives
- type: textarea
id: alternatives
attributes:
label: Describe alternatives you've considered
placeholder: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: false
# Field 5 - Additional context
- type: textarea
id: addcontext
attributes:
label: Additional context
placeholder: Add any other context or screenshots about the feature request here.
validations:
required: false
# Field 6 - Priority
- type: dropdown
id: priority
attributes:
label: Priority
description: How urgent is the development of this feature
options:
- Low (Nice-to-have)
- Medium (Would be very useful)
- High (The app does not function without it)
validations:
required: true
# Field 7 - Can the user implement
- type: dropdown
id: canImplement
attributes:
label: Is this something you would be keen to implement?
description: Are you raising this ticket in order to get an issue number for your PR?
options:
- 'No'
- 'Maybe'
- 'Yes!'
validations:
required: false
# Final text
- type: markdown
attributes:
value: |-
## Thanks 🙏
Thank you for your feature suggestion.
Please note that there is no guarantee that your idea will be implemented.
validations:
required: false
+20
View File
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
-314
View File
@@ -1,314 +0,0 @@
[English](readme.md) | [中文](readme-zh_cn.md) | 日本語
![SillyTavern-Banner](https://github.com/SillyTavern/SillyTavern/assets/18619528/c2be4c3f-aada-4f64-87a3-ae35a68b61a4)
モバイルフレンドリーなレイアウト、マルチAPI(KoboldAI/CPP、Horde、NovelAI、Ooba、OpenAI、OpenRouter、Claude、Scale)、VN ライクな Waifu モード、Stable Diffusion、TTS、WorldInfo(伝承本)、カスタマイズ可能な UI、自動翻訳、あなたにとって必要とする以上のプロンプトオプション+サードパーティの拡張機能をインストールする機能。
[TavernAI](https://github.com/TavernAI/TavernAI) 1.2.8 のフォークに基づいています
## 重要ニュース!
1. 私たちは[ドキュメント website](https://docs.sillytavern.app/) を作成し、ほとんどの質問にお答えしています。
2. アップデートしたらに拡張機能を見失った?リリースバージョン 1.10.6 以降、これまで内蔵されていた拡張機能のほとんどがダウンロード可能なアドオンに変更されました。ダウンロードは、拡張機能パネル(トップバーのスタックドブロックアイコン)にある内蔵の "Download Extensions and Assets" メニューから行えます。
### Cohee、RossAscends、SillyTavern コミュニティがお届けします
### SillyTavern または TavernAI とは何ですか?
SillyTavern は、あなたのコンピュータ(および Android スマホ)にインストールできるユーザーインターフェイスで、テキスト生成 AI と対話したり、あなたやコミュニティが作成したキャラクターとチャットやロールプレイをすることができます。
SillyTavern は TavernAI 1.2.8 のフォークで、より活発な開発が行われており、多くの主要な機能が追加されています。現時点では、これらは完全に独立したプログラムと考えることができます。
### ブランチ
SillyTavern は、すべてのユーザーにスムーズな体験を保証するために、2 つのブランチシステムを使用して開発されています。
* release -🌟 **ほとんどのユーザーにお勧め。** これは最も安定した推奨ブランチで、メジャーリリースがプッシュされた時のみ更新されます。大半のユーザーに適しています。
* staging - ⚠️ **カジュアルな使用にはお勧めしない。** このブランチには最新の機能がありますが、いつ壊れるかわからないので注意してください。パワーユーザーとマニア向けです。
git CLI の使い方に慣れていなかったり、ブランチが何なのかわからなかったりしても、心配はいりません!リリースブランチが常に望ましい選択肢となります。
### Tavern 以外に何が必要ですか?
Tavern は単なるユーザーインターフェイスなので、それだけでは役に立ちません。ロールプレイキャラクターとして機能する AI システムのバックエンドにアクセスする必要があります。様々なバックエンドがサポートされています: OpenAPI API (GPT)、KoboldAI (ローカルまたは Google Colab 上で動作)、その他。詳しくは [FAQ](https://docs.sillytavern.app/usage/faq/) をご覧ください。
### Tavern を実行するには、強力な PC が必要ですか?
Tavern は単なるユーザーインターフェイスであり、必要なハードウェアはごくわずかです。パワフルである必要があるのは、AI システムのバックエンドです。
## モバイルサポート
> **注**
> **このフォークは Termux を使って Android スマホでネイティブに実行できます。ArroganceComplex#2659 のガイドを参照してください:**
<https://rentry.org/STAI-Termux>
## ご質問やご提案
### コミュニティ Discord サーバーを開設しました
サポートを受け、お気に入りのキャラクターやプロンプトを共有する:
### [参加](https://discord.gg/RZdyAEUPvj)
***
開発者と直接連絡を取る:
* Discord: cohee または rossascends
* Reddit: /u/RossAscends または /u/sillylossy
* [GitHub issue を投稿](https://github.com/SillyTavern/SillyTavern/issues)
## このバージョンには以下が含まれる
* 大幅に修正された TavernAI 1.2.8 (コードの 50% 以上が書き換えまたは最適化されています)
* スワイプ
* グループチャット: キャラクター同士が会話できるマルチボットルーム
* チャットチェックポイント / ブランチ
* 高度なKoboldAI / TextGen生成設定と、コミュニティが作成した多くのプリセット
* ワールド情報サポート: 豊富な伝承を作成したり、キャラクターカードにトークンを保存したりできます
* [OpenRouter](https://openrouter.ai) 各種 API(Claude、GPT-4/3.5 など)の接続
* [Oobabooga's TextGen WebUI](https://github.com/oobabooga/text-generation-webui) API 接続
* [AI Horde](https://horde.koboldai.net/) 接続
* プロンプト生成フォーマットの調整
## 拡張機能
SillyTavern は拡張性をサポートしており、[SillyTavern Extras API](https://github.com/SillyTavern/SillyTavern-extras) を介していくつかの追加AIモジュールをホストしています
* 作者ノート/キャラクターバイアス
* キャラクターの感情表現(スプライト)
* チャット履歴の自動サマリー
* チャットに画像を送り、AI が内容を解釈する
* Stable Diffusion 画像生成 (5 つのチャット関連プリセットと 'free mode')
* AI 応答メッセージの音声合成(ElevenLabs、Silero、または OS のシステム TTS 経由)
含まれている拡張機能の完全なリストとその使い方のチュートリアルは [Docs](https://docs.sillytavern.app/) にあります。
## RossAscends による UI/CSS/クオリティオブライフの調整
* iOS 用に最適化されたモバイル UI で、ホーム画面へのショートカット保存とフルスクリーンモードでの起動をサポート。
* ホットキー
* Up = チャットの最後のメッセージを編集する
* Ctrl+Up = チャットで最後のユーザーメッセージを編集する
* Left = 左スワイプ
* Right = 右スワイプ (注: チャットバーに何か入力されている場合、スワイプホットキーが無効になります)
* Ctrl+Left = ローカルに保存された変数を見る(ブラウザのコンソールウィンドウにて)
* Enter (チャットバー選択時) = AI にメッセージを送る
* Ctrl+Enter = 最後の AI 応答を再生成する
* ユーザー名の変更と文字の削除でページが更新されなくなりました。
* ページロード時に API に自動的に接続するかどうかを切り替えます。
* ページの読み込み時に、最近見た文字を自動的に読み込むかどうかを切り替えます。
* より良いトークンカウンター - 保存されていないキャラクターに対して機能し、永続的なトークンと一時的なトークンの両方を表示する。
* より良い過去のチャット
* 新しいチャットのファイル名は、"(文字) - (作成日)" という読みやすい形式で保存されます
* チャットのプレビューが 40 文字から 300 文字に増加。
* 文字リストの並べ替えに複数のオプション(名前順、作成日順、チャットサイズ順)があります。
* デフォルトでは、左右の設定パネルはクリックすると閉じます。
* ナビパネルのロックをクリックすると、パネルが開いたままになり、この設定はセッションをまたいで記憶されます。
* ナビパネルの開閉状態もセッションをまたいで保存されます。
* カスタマイズ可能なチャット UI:
* 新しいメッセージが届いたときにサウンドを再生する
* 丸型、長方形のアバタースタイルの切り替え
* デスクトップのチャットウィンドウを広くする
* オプションの半透明ガラス風パネル
* 'メインテキスト'、'引用テキスト'、'斜体テキスト'のページカラーをカスタマイズ可能。
* カスタマイズ可能な UI 背景色とぼかし量
## インストール
*注: このソフトウェアはローカルにインストールすることを目的としており、colab や他のクラウドノートブックサービス上では十分にテストされていません。*
> **警告**
> WINDOWS が管理しているフォルダ(Program Files、System32 など)にはインストールしないでください
> START.BAT を管理者権限で実行しないでください
### Windows
Git 経由でのインストール(更新を容易にするため推奨)
きれいな写真付きのわかりやすいガイド:
<https://docs.sillytavern.app/installation/windows/>
1. [NodeJS](https://nodejs.org/en) をインストールする(最新の LTS 版を推奨)
2. [GitHub Desktop](https://central.github.com/deployments/desktop/desktop/latest/win32) をインストールする
3. Windows エクスプローラーを開く (`Win+E`)
4. Windows によって制御または監視されていないフォルダを参照または作成する。(例: C:\MySpecialFolder\)
5. 上部のアドレスバーをクリックし、`cmd` と入力して Enter キーを押し、そのフォルダーの中にコマンドプロンプトを開きます。
6. 黒いボックス(コマンドプロンプト)がポップアップしたら、そこに以下のいずれかを入力し、Enter を押します:
* Release ブランチの場合: `git clone https://github.com/SillyTavern/SillyTavern -b release`
* Staging ブランチの場合: `git clone https://github.com/SillyTavern/SillyTavern -b staging`
7. すべてをクローンしたら、`Start.bat` をダブルクリックして、NodeJS に要件をインストールさせる。
8. サーバーが起動し、SillyTavern がブラウザにポップアップ表示されます。
ZIP ダウンロードによるインストール(推奨しない)
1. [NodeJS](https://nodejs.org/en) をインストールする(最新の LTS 版を推奨)
2. GitHub のリポジトリから zip をダウンロードする。(`ソースコード(zip)` は [Releases](https://github.com/SillyTavern/SillyTavern/releases/latest) から入手)
3. お好きなフォルダに解凍してください
4. `Start.bat` をダブルクリックまたはコマンドラインで実行する。
5. サーバーがあなたのためにすべてを準備したら、ブラウザのタブを開きます。
### Linux
1. `node -v` を実行して、Node.js v18 以上(最新の [LTS バージョン](https://nodejs.org/en/download/) を推奨)がインストールされていることを確認してください。
または、[Node Version Manager](https://github.com/nvm-sh/nvm#installing-and-updating) スクリプトを使用して、迅速かつ簡単に Node のインストールを管理します。
2. `start.sh` スクリプトを実行する。
3. お楽しみください。
## API キー管理
SillyTavern は API キーをサーバーディレクトリの `secrets.json` ファイルに保存します。
デフォルトでは、入力後にページをリロードしても、フロントエンドには表示されません。
API ブロックのボタンをクリックして、キーを閲覧できるようにする:
1. ファイル `config.yaml` で `allowKeysExposure` の値を `true` に設定する。
2. SillyTavern サーバを再起動します。
## リモート接続
SillyTavern をスマホで使用しながら、同じ Wifi ネットワーク上で ST サーバーを PC で実行したい場合に使用します。
しかし、これはどこからでもリモート接続を許可するために使用することができます。
**重要: SillyTavern はシングルユーザーのプログラムなので、ログインすれば誰でもすべてのキャラクターとチャットを見ることができ、UI 内で設定を変更することができます。**
### 1. ホワイトリスト IP の管理
* SillyTavern のベースインストールフォルダ内に `whitelist.txt` という新しいテキストファイルを作成します。
* テキストエディタでこのファイルを開き、接続を許可したい IP のリストを追加します。
*個々の IP とワイルドカード IP 範囲の両方が受け入れられる。例:*
```txt
192.168.0.1
192.168.0.20
```
または
```txt
192.168.0.*
```
(上記のワイルドカード IP 範囲は、ローカルネットワーク上のどのデバイスでも)
CIDR マスクも受け付ける(例:10.0.0.0/24)。
* `whitelist.txt` ファイルを保存する。
* TAI サーバーを再起動する。
これでファイルに指定された IP を持つデバイスが接続できるようになる。
*注: `config.yaml` にも `whitelist` 配列があり、同じように使うことができるが、`whitelist.txt` が存在する場合、この配列は無視される。*
### 2. ST ホストマシンの IP の取得
ホワイトリストの設定後、ST ホストデバイスの IP が必要になります。
ST ホストデバイスが同じ無線 LAN ネットワーク上にある場合、ST ホストの内部無線 LAN IP を使用します:
* Windows の場合: ウィンドウズボタン > 検索バーに `cmd.exe` と入力 > コンソールに `ipconfig` と入力して Enter > `IPv4` のリストを探す。
同じネットワーク上にいない状態で、ホストしているSTに接続したい場合は、STホスト機器のパブリックIPが必要です。
* ST ホストデバイスを使用中に、[このページ](https://whatismyipaddress.com/)にアクセスし、`IPv4` を探してください。これはリモートデバイスからの接続に使用するものです。
### 3. リモートデバイスを ST ホストマシンに接続します。
最終的に使用する IP が何であれ、その IP アドレスとポート番号をリモートデバイスのウェブブラウザに入力します。
同じ無線 LAN ネットワーク上の ST ホストの典型的なアドレスは以下のようになります:
`http://192.168.0.5:8000`
http:// を使用し、https:// は使用しないでください
### ST をすべての IP に開放する
これはお勧めしませんが、`config.yaml` を開き、`whitelistMode` を `false` に変更してください。
SillyTavern のベースインストールフォルダにある `whitelist.txt` が存在する場合は削除(または名前の変更)する必要があります。
これは通常安全ではないので、これを行う際にはユーザー名とパスワードを設定する必要があります。
ユーザー名とパスワードは `config.yaml` で設定します。
ST サーバを再起動すると、ユーザ名とパスワードさえ知っていれば、IP に関係なくどのデバイスでも ST サーバに接続できるようになる。
### まだ接続できませんか?
* `config.yaml` で見つかったポートに対して、インバウンド/アウトバウンドのファイアウォールルールを作成します。これをルーターのポートフォワーディングと間違えないでください。そうしないと、誰かがあなたのチャットログを見つける可能性があり、それはマジで止めましょう。
* 設定 > ネットワークとインターネット > イーサネットで、プライベートネットワークのプロファイルタイプを有効にします。そうしないと、前述のファイアウォールルールを使っても接続できません。
## パフォーマンスに問題がありますか?
ユーザー設定パネルでブラー効果なし(高速 UI)モードを有効にしてみてください。
## このプロジェクトが好きです!どうすればコントリビュートできますか?
### やるべきこと
1. プルリクエストを送る
2. 確立されたテンプレートを使って機能提案と課題レポートを送る
3. 何か質問する前に、readme ファイルや組み込みのドキュメントを読んでください
### やらないべきこと
1. 金銭の寄付を申し出る
2. 何の脈絡もなくバグ報告を送る
3. すでに何度も回答されている質問をする
## 古い背景画像はどこにありますか?
100% オリジナルコンテンツのみのポリシーに移行しているため、古い背景画像はこのリポジトリから削除されました。
アーカイブはこちら:
<https://files.catbox.moe/1xevnc.zip>
## スクリーンショット
<img width="400" alt="image" src="https://user-images.githubusercontent.com/18619528/228649245-8061c60f-63dc-488e-9325-f151b7a3ec2d.png">
<img width="400" alt="image" src="https://user-images.githubusercontent.com/18619528/228649856-fbdeef05-d727-4d5a-be80-266cbbc6b811.png">
## ライセンスとクレジット
**このプログラムは有用であることを願って配布されていますが、いかなる保証もありません;
また、商品性または特定目的への適合性についての黙示の保証もありません。
詳細は GNU Affero General Public License をご覧ください。**
* Humi によるTAI Base: 不明ライセンス
* Cohee の修正と派生コード: AGPL v3
* RossAscends の追加: AGPL v3
* CncAnon の TavernAITurbo 改造の一部: 不明ライセンス
* kingbri のさまざまなコミットと提案 (<https://github.com/bdashore3>)
* city_unit の拡張機能と様々な QoL 機能 (<https://github.com/city-unit>)
* StefanDanielSchwarz のさまざまなコミットとバグ報告 (<https://github.com/StefanDanielSchwarz>)
* PepperTaco の作品にインスパイアされた Waifu モード (<https:/fugithub.com/peppertaco/Tavern/>)
* ピグマリオン大学の皆さん、素晴らしいテスターとしてクールな機能を提案してくれてありがとう!
* TextGen のプリセットをコンパイルしてくれた obabooga に感謝
* KAI Lite の KoboldAI プリセット: <https://lite.koboldai.net/>
* Google による Noto Sans フォント(OFLライセンス)
* Font Awesome によるアイコンテーマ <https://fontawesome.com> (アイコン: CC BY 4.0、フォント: SIL OFL 1.1、コード: MIT License)
* ZeldaFan0225 による AI Horde クライアントライブラリ: <https://github.com/ZeldaFan0225/ai_horde>
* AlpinDale による Linux 起動スクリプト
* FAQ を提供してくれた paniphons に感謝
* 10K ディスコード・ユーザー記念背景 by @kallmeflocc
* デフォルトコンテンツ(キャラクターと伝承書)の提供: @OtisAlejandro、@RossAscends、@kallmeflocc
* @doloroushyeonse による韓国語翻訳
* k_euler_a による Horde のサポート <https://github.com/Teashrock>
* [@XXpE3](https://github.com/XXpE3) による中国語翻訳、中国語 ISSUES の連絡先は @XXpE3
-306
View File
@@ -1,306 +0,0 @@
[English](readme.md) | 中文 | [日本語](readme-ja_jp.md)
![image](https://github.com/SillyTavern/SillyTavern/assets/18619528/c2be4c3f-aada-4f64-87a3-ae35a68b61a4)
移动设备界面友好,多种人工智能服务或模型支持(KoboldAI/CPP, Horde, NovelAI, Ooba, OpenAI, OpenRouter, Claude, Scale),类似 Galgame 的 老 婆 模 式,Horde SD,文本系统语音生成,世界信息(Lorebooks),可定制的界面,自动翻译,和比你所需要的更多的 Prompt。附带扩展服务,支持文本绘画生成与语音生成和基于向量数据库 的聊天信息总结。
基于 TavernAI 1.2.8 的分叉版本
### 由 Cohee、RossAscends 和 SillyTavern 社区为您呈现
注意:我们创建了一个 [帮助文档](https://docs.sillytavern.app/) 网站来回答各类问题与帮助您开始使用。
### SillyTavern 或 TavernAI 是什么?
SillyTavern 是一个可以安装在电脑(和安卓手机)上的用户界面,让您可以与文本生成的人工智能互动,并与您或社区创建的角色聊天/玩角色扮演游戏。
SillyTavern 是 TavernAI 1.2.8 的一个分支,正在进行更积极地开发,并添加了许多重要功能。在这一点上,它可以被视为完全独立的程序。
### 分支
SillyTavern 采用双分支进行开发,以确保所有用户都能获得流畅的使用体验。
* release -🌟 **推荐给大多数用户。** 这是最稳定、最推荐的分支,只有在重大版本推送时才会更新。适合大多数用户使用。
* staging - ⚠️ **不建议随意使用。** 该分支拥有最新功能,但要谨慎,因为它随时可能崩溃。仅适用于高级用户和爱好者。
如果你不熟悉使用 Git 命令,或者不了解什么是分支,别担心!release 分支始终是您的首选。
### 除了 SillyTavern,我还需要什么?
SillyTavern 本身并无用处,因为它只是一个用户聊天界面。你必须接入一个能充当角色扮演的人工智能系统。支持的人工智能系统有多种:OpenAPI API (GPT)、KoboldAI(可在本地或 Google Colab 上运行)等。您可以在 [常见问题](https://docs.sillytavern.app/usage/faq/) 中阅读更多相关信息。
### 我需要一台性能强大的电脑来运行 SillyTavern 吗?
由于 SillyTavern 只是一个用户聊天界面,它对硬件性能的要求很低,可以在任何电脑上运行。需要强大性能的是人工智能系统。
### 移动设备支持
> 注意
> **此分叉可使用 Termux 在安卓手机上原生运行。请参考 ArroganceComplex#2659 编写的指南:**
<https://rentry.org/STAI-Termux>
## 有问题或建议?
### 我们现在有了 Discord 社区
获取支持,或分享喜爱的角色和 Prompt:
### [加入 Discord 社区](https://discord.gg/sillytavern)
***
直接与开发人员联系:
* Discord: cohee 或 rossascends
* Reddit:/u/RossAscends 或 /u/sillylossy
* [发布 GitHub 问题](https://github.com/SillyTavern/SillyTavern/issues)
## 此版本包括
* 经过大量修改的 TavernAI 1.2.8(超过 50% 的代码经过重写或优化)
* 根据自定义规则自动重新生成消息
* 群聊:多机器人房间,供角色与你或彼此交谈
* 聊天书签/分支(复制当前状态下的对话)
* 先进的 KoboldAI / TextGen 生成设置,包含大量社区预设
* 支持世界信息(Lorebooks):创建丰富的传说
* 支持 Window AI 浏览器扩展(运行 Claude、GPT 4 等模型):<https://windowai.io/>
* [Oobabooga's TextGen WebUI](https://github.com/oobabooga/text-generation-webui) API 连接
* 连接 [AI Horde](https://horde.koboldai.net/)
* Prompt 生成格式调整
* Webp 角色卡支持(PNG 仍是内部格式)
## 扩展
SillyTavern 支持扩展服务,一些额外的人工智能模块可通过 [SillyTavern Extras API](https://github.com/SillyTavern/SillyTavern-extras) 提供。
* 作者注释/角色偏见
* 角色情绪识别
* 聊天记录自动摘要
* 在聊天窗口发送图片,并由人工智能解释图片内容
* 文本图像生成(5 预设,以及 "自由模式")
* 聊天信息的文字转语音(通过 ElevenLabs、Silero 或操作系统的语音生成)
扩展服务的完整功能介绍和使用教程,请参阅 [Docs](https://docs.sillytavern.app/)。
## 界面/CSS/性能,由 RossAscends 调整并优化
* 针对 iOS 系统优化了界面,并支持将快捷方式保存到主屏幕,在全屏模式下打开。
* 热键
* 上 = 编辑聊天中的最后一条信息
* Ctrl+P = 编辑聊天中最后一条用户信息
* 左 = 向左滑动
* 右 = 向右滑动(注意:当聊天窗口输入内容时,轻扫快捷键将被禁用)
* Ctrl+左 = 查看本地存储的变量(在浏览器控制台窗口中)
* 回车(选择聊天栏)= 向人工智能发送信息
* Ctrl+Enter = 重新生成人工智能最后的回复
* 用户名更改和角色删除不再强制重新刷新页面。
* 增加在页面加载时自动连接 API 的选项。
* 增加选项,在页面加载时自动加载最近的聊天信息。
* 更好的 Tokens 计算器 - 适用于未保存的文字,并显示永久和临时 Tokens 数量
* 更好的聊天历史查询窗口
* 聊天的文件名以"(角色卡名称)+(创建时间)"的可读格式保存
* 聊天历史预览从 40 个字符增加到 300 个字符。
* 聊天历史排序有多种选择(按名称、创建日期、聊天记录大小)。
* 默认情况下,左侧和右侧弹出的设置面板会在点击其他区域时自动关闭。
* 点击导航面板上的 "锁按钮" 将保持弹出面板打开,并在不同聊天中记住此设置。
* 导航面板的打开或关闭状态也会跨聊天保存。
* 自定义聊天界面:
* 收到新消息时播放提示音
* 切换圆形或长方形头像样式
* 在台式电脑上拥有更宽的聊天窗口
* 可选的半透明玻璃效果聊天窗口
* 可定制 "主文本"、"引用文本 "和 "斜体文本 "的字体颜色。
* 可定制聊天界面的背景颜色和透明模糊程度
## 安装
*注意:SillyTavern 用于本地安装,尚未在 Colab 或其他云服务上进行全面测试。
> **警告**
> 切勿安装到任何受 Windows 控制的系统文件夹(Program Files, System32, etc)中。
> 不要以管理员权限运行 start.bat
### Windows
通过 Git 安装(推荐使用,便于更新)
附有精美图片示例的简易指南:
<https://docs.sillytavern.app/installation/windows/>
1. 安装 [NodeJS](https://nodejs.org/en)(建议使用最新的 LTS 版本)
2. 安装 [GitHub 客户端](https://central.github.com/deployments/desktop/desktop/latest/win32)
3. 打开 Windows 资源管理器 (`Win+E`)
4. 浏览或创建一个不受 Windows 控制或监控的文件夹。(例如:C:\MySpecialFolder\)
5. 点击顶部的 "地址栏",在该文件夹内打开命令提示符,输入 `cmd`,然后按回车。
6. 弹出黑框(CMD 命令提示符)后,键入以下其中一项并按 Enter:
* 稳定分支:`git clone https://github.com/SillyTavern/SillyTavern -b release`
* 开发分支: `git clone https://github.com/SillyTavern/SillyTavern -b staging`
7. 等待 Git 克隆完成后,双击文件夹中的 `Start.bat` 将启动 NodeJS 并开始自动安装需要的软件包。
8. 然后 SillyTavern 服务就会自动启动,同时在浏览器新标签页中自动打开。
通过压缩包下载安装(不推荐)
1. 安装 [NodeJS](https://nodejs.org/en)(建议使用最新的 LTS 版本)
2. 从该 GitHub 仓库下载压缩包。(从 [Releases](https://github.com/SillyTavern/SillyTavern/releases/latest) 获取 "Source code(zip)")。
3. 将压缩包解压到您选择的文件夹中
4. 双击或在命令行中运行 `Start.bat`。
5. SillyTavern 服务自动为你准备好一切后,会在你的浏览器中打开一个新标签页。
### Linux
1.运行 `start.sh` 脚本。
2.等待自动完成,然后开始享受
## API 密钥管理
SillyTavern 会将 API 密钥保存在目录中的 `secrets.json` 文件内。
默认情况下,输入密钥并重新加载页面后,密钥会自动隐藏以保证安全。
如果要想通过点击 API 输入框旁边的按钮来查看密钥,请按照以下设置:
1. 打开 `config.yaml` 文件,将里面的 `allowKeysExposure` 设置为 `true`。
2. 然后重启 SillyTavern 服务。
## 远程访问
这通常是为那些想在手机上使用 SillyTavern 的人准备的,而他们的电脑和手机在同一个局域网中。
不过,SillyTavern 也可以被设置为允许从任何地方进行远程访问。
**重要提示:SillyTavern 是单用户程序,因此任何人登录后都能看到所有的角色卡和聊天内容,并能更改任何设置。
### 1.管理白名单 IP
* 在你的 SillyTavern 文件夹中新建一个文本文件,名为 `whitelist.txt`。
* 用文本编辑器打开该文件,添加你希望允许连接的 IP 地址列表。
* 接受单个 IP 地址和 IP 范围,示例:
```
192.168.0.1
192.168.0.20
```
或者
```
192.168.0.*
```
(上述 IP 范围将允许局域网中的任何设备连接)
也接受子网掩码设置(如 10.0.0.0/24)。
* 保存`whitelist.txt`文件。
* 重启 SillyTavern 服务。
然后,文件中设置的 IP 就可以访问 SillyTavern 了。
*注意:"config.yaml" 文件内也有一个 "whitelist" 设置,你可以用同样的方法设置它,但如果 "whitelist.txt" 文件存在,这个设置将被忽略。
### 2.获取 SillyTavern 服务的 IP 地址
白名单设置完成后,您需要 SillyTavern 服务的 IP 地址。
如果 SillyTavern 服务设备在同一个局域网上,则使用安装 SillyTavern 服务的电脑的局域网 IP 地址:
* Windows:Windows 按钮 > 在搜索栏中输入 `cmd.exe` > 在打开的控制台中输入 `ipconfig`,回车 > 然后在输出中查找 `IPv4` 地址。
如果您(或其他人)想在互联网中访问你自己的 SillyTavern 服务,则需要运行 SillyTavern 服务的设备的互联网 IP 地址。
* 使用运行 SillyTavern 的设备,访问 [this page](https://whatismyipaddress.com/) 并查找 `IPv4`。这是您从互联网访问时要用到的。
### 3. 使用其他设备访问 SillyTavern 服务
无论你最终使用的是什么 IP 地址,都要将该 IP 地址和端口号输入其他设备网络浏览器。
同一局域网中的 SillyTavern 服务的典型默认地址如下:
`http://192.168.0.5:8000`
使用 http:// 而不是 https://
### 向所有 IP 开放您的 SillyTavern 服务
我们不建议这样做,但您可以打开 `config.yaml` 并将里面的 `whitelistMode` 设置改为 `false`。
你必须删除(或重命名)SillyTavern 文件夹中的 `whitelist.txt` 文件(如果有的话)。
这通常是不安全的做法,所以我们要求在这样做时必须设置用户名和密码。
用户名和密码在`config.yaml`文件中设置。
重启 SillyTavern 服务后,只要知道用户名和密码,任何设备都可以访问。
### 还是无法访问?
* 为 `config.yaml` 文件中的端口创建一条入站/出站防火墙规则。切勿将此误认为是路由器上的端口转发,否则,有人可能会发现你的聊天隐私,那就大错特错了。
* 在 "设置" > "网络和 Internet" > "以太网" 中启用 "专用网络" 配置。这对 Windows 11 非常重要,否则即使添加了上述防火墙规则也无法连接。
### 性能问题?
尝试在用户设置面板上关闭模糊效果(快速用户界面)模式。
## 我喜欢你的项目!我该如何贡献自己的力量?
### 应该
1. 发送 Fork 请求
2. 使用规定的模板发送功能建议和问题报告
3. 在提出任何问题之前,请先阅读 Readme 文件和文档
#### 不应该
1. 提供金钱捐赠
2. 发送错误报告而不提供任何详细信息
3. 提出已经回答过无数次的问题
## 我在哪里可以找到以前的聊天背景图片?
我们正在实行 100% 原创内容的政策,因此旧的背景图片已从该资源库中删除。
不过你可以在这里找到它们的存档:
<https://files.catbox.moe/1xevnc.zip>
## 屏幕截图
<img width="400" alt="image" src="https://user-images.githubusercontent.com/18619528/228649245-8061c60f-63dc-488e-9325-f151b7a3ec2d.png">
<img width="400" alt="image" src="https://user-images.githubusercontent.com/18619528/228649856-fbdeef05-d727-4d5a-be80-266cbbc6b811.png">
## 许可证和贡献
**发布本程序是希望它能有所帮助,但不做任何保证;甚至没有明示的性能、稳定性和其他任何特定用途的可用性保证。更多详情,请参阅 GNU Affero 通用公共许可证。**
**This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.**
* TAI Base by Humi: Unknown license
* Cohee's modifications and derived code: AGPL v3
* RossAscends' additions: AGPL v3
* Portions of CncAnon's TavernAITurbo mod: Unknown license
* kingbri's various commits and suggestions (<https://github.com/bdashore3>)
* StefanDanielSchwarz's various commits and bug reports (<https://github.com/StefanDanielSchwarz>)
* Waifu mode inspired by the work of PepperTaco (<https://github.com/peppertaco/Tavern/>)
* Thanks Pygmalion University for being awesome testers and suggesting cool features!
* Thanks oobabooga for compiling presets for TextGen
* KoboldAI Presets from KAI Lite: <https://lite.koboldai.net/>
* Noto Sans font by Google (OFL license)
* Icon theme by Font Awesome <https://fontawesome.com> (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* AI Horde client library by ZeldaFan0225: <https://github.com/ZeldaFan0225/ai_horde>
* Linux startup script by AlpinDale
* Thanks paniphons for providing a FAQ document
* 10K Discord Users Celebratory Background by @kallmeflocc
* Default content (characters and lore books) provided by @OtisAlejandro, @RossAscends and @kallmeflocc
* Korean translation by @doloroushyeonse
* 中文翻译由 [@XXpE3](https://github.com/XXpE3) 完成,中文 ISSUES 可以联系 @XXpE3
-327
View File
@@ -1,327 +0,0 @@
English | [中文](readme-zh_cn.md) | [日本語](readme-ja_jp.md)
![SillyTavern-Banner](https://github.com/SillyTavern/SillyTavern/assets/18619528/c2be4c3f-aada-4f64-87a3-ae35a68b61a4)
Mobile-friendly layout, Multi-API (KoboldAI/CPP, Horde, NovelAI, Ooba, OpenAI, OpenRouter, Claude, Scale), VN-like Waifu Mode, Stable Diffusion, TTS, WorldInfo (lorebooks), customizable UI, auto-translate, and more prompt options than you'd ever want or need + ability to install third-party extensions.
Based on a fork of [TavernAI](https://github.com/TavernAI/TavernAI) 1.2.8
## Important news!
1. We have created a [Documentation website](https://docs.sillytavern.app/) to answer most of your questions and help you get started.
2. Missing extensions after the update? Since the 1.10.6 release version, most of the previously built-in extensions have been converted to downloadable add-ons. You can download them via the built-in "Download Extensions and Assets" menu in the extensions panel (stacked blocks icon in the top bar).
### Brought to you by Cohee, RossAscends, and the SillyTavern community
### What is SillyTavern or TavernAI?
SillyTavern is a user interface you can install on your computer (and Android phones) that allows you to interact with text generation AIs and chat/roleplay with characters you or the community create.
SillyTavern is a fork of TavernAI 1.2.8 which is under more active development and has added many major features. At this point, they can be thought of as completely independent programs.
### Branches
SillyTavern is being developed using a two-branch system to ensure a smooth experience for all users.
* release -🌟 **Recommended for most users.** This is the most stable and recommended branch, updated only when major releases are pushed. It's suitable for the majority of users.
* staging - ⚠️ **Not recommended for casual use.** This branch has the latest features, but be cautious as it may break at any time. Only for power users and enthusiasts.
If you're not familiar with using the git CLI or don't understand what a branch is, don't worry! The release branch is always the preferable option for you.
### What do I need other than Tavern?
On its own Tavern is useless, as it's just a user interface. You have to have access to an AI system backend that can act as the roleplay character. There are various supported backends: OpenAPI API (GPT), KoboldAI (either running locally or on Google Colab), and more. You can read more about this in [the FAQ](https://docs.sillytavern.app/usage/faq/).
### Do I need a powerful PC to run Tavern?
Since Tavern is only a user interface, it has tiny hardware requirements, it will run on anything. It's the AI system backend that needs to be powerful.
## Mobile support
> **Note**
> **This fork can be run natively on Android phones using Termux. Please refer to this guide by ArroganceComplex#2659:**
<https://rentry.org/STAI-Termux>
## Questions or suggestions?
### We now have a community Discord server
Get support, share favorite characters and prompts:
### [Join](https://discord.gg/sillytavern)
***
Get in touch with the developers directly:
* Discord: cohee or rossascends
* Reddit: /u/RossAscends or /u/sillylossy
* [Post a GitHub issue](https://github.com/SillyTavern/SillyTavern/issues)
## This version includes
* A heavily modified TavernAI 1.2.8 (more than 50% of code rewritten or optimized)
* Swipes
* Group chats: multi-bot rooms for characters to talk to you or each other
* Chat checkpoints / branching
* Advanced KoboldAI / TextGen generation settings with a lot of community-made presets
* World Info support: create rich lore or save tokens on your character card
* [OpenRouter](https://openrouter.ai) connection for various APIs (Claude, GPT-4/3.5 and more)
* [Oobabooga's TextGen WebUI](https://github.com/oobabooga/text-generation-webui) API connection
* [AI Horde](https://horde.koboldai.net/) connection
* Prompt generation formatting tweaking
## Extensions
SillyTavern has extensibility support, with some additional AI modules hosted via [SillyTavern Extras API](https://github.com/SillyTavern/SillyTavern-extras)
* Author's Note / Character Bias
* Character emotional expressions (sprites)
* Auto-Summary of the chat history
* Sending images to chat, and the AI interpreting the content
* Stable Diffusion image generation (5 chat-related presets plus 'free mode')
* Text-to-speech for AI response messages (via ElevenLabs, Silero, or the OS's System TTS)
A full list of included extensions and tutorials on how to use them can be found in the [Docs](https://docs.sillytavern.app/).
## UI/CSS/Quality of Life tweaks by RossAscends
* Mobile UI optimized for iOS, and supports saving a shortcut to the home screen and opening in fullscreen mode.
* HotKeys
* Up = Edit last message in chat
* Ctrl+Up = Edit last USER message in chat
* Left = swipe left
* Right = swipe right (NOTE: swipe hotkeys are disabled when the chat bar has something typed into it)
* Ctrl+Left = view locally stored variables (in the browser console window)
* Enter (with chat bar selected) = send your message to AI
* Ctrl+Enter = Regenerate the last AI response
* User Name Changes and Character Deletion no longer force the page to refresh.
* Toggle option to automatically connect to API on page load.
* Toggle option to automatically load the most recently viewed character on page load.
* Better Token Counter - works on unsaved characters, and shows both permanent and temporary tokens.
* Better Past Chats View
* New Chat filenames are saved in a readable format of "(character) - (when it was created)"
* Chat preview increased from 40 characters to 300.
* Multiple options for characters list sorting (by name, creation date, chat sizes).
* By default the left and right settings panel will close when you click away from it.
* Clicking the Lock on the nav panel will hold the panel open, and this setting be remembered across sessions.
* Nav panel status of open or closed will also be saved across sessions.
* Customizable chat UI:
* Play a sound when a new message arrives
* Switch between round or rectangle avatar styles
* Have a wider chat window on the desktop
* Optional semi-transparent glass-like panels
* Customizable page colors for 'main text', 'quoted text', and 'italics text'.
* Customizable UI background color and blur amount
## Installation
*NOTE: This software is intended for local install purposes, and has not been thoroughly tested on a colab or other cloud notebook service.*
> **Warning**
> DO NOT INSTALL INTO ANY WINDOWS CONTROLLED FOLDER (Program Files, System32, etc).
> DO NOT RUN START.BAT WITH ADMIN PERMISSIONS
### Windows
Installing via Git (recommended for easy updating)
An easy-to-follow guide with pretty pictures:
<https://docs.sillytavern.app/installation/windows/>
1. Install [NodeJS](https://nodejs.org/en) (latest LTS version is recommended)
2. Install [GitHub Desktop](https://central.github.com/deployments/desktop/desktop/latest/win32)
3. Open Windows Explorer (`Win+E`)
4. Browse to or Create a folder that is not controlled or monitored by Windows. (ex: C:\MySpecialFolder\)
5. Open a Command Prompt inside that folder by clicking in the 'Address Bar' at the top, typing `cmd`, and pressing Enter.
6. Once the black box (Command Prompt) pops up, type ONE of the following into it and press Enter:
* for Release Branch: `git clone https://github.com/SillyTavern/SillyTavern -b release`
* for Staging Branch: `git clone https://github.com/SillyTavern/SillyTavern -b staging`
7. Once everything is cloned, double-click `Start.bat` to make NodeJS install its requirements.
8. The server will then start, and SillyTavern will pop up in your browser.
Installing via ZIP download (discouraged)
1. Install [NodeJS](https://nodejs.org/en) (latest LTS version is recommended)
2. Download the zip from this GitHub repo. (Get the `Source code (zip)` from [Releases](https://github.com/SillyTavern/SillyTavern/releases/latest))
3. Unzip it into a folder of your choice
4. Run `Start.bat` by double-clicking or in a command line.
5. Once the server has prepared everything for you, it will open a tab in your browser.
### Linux
#### Unofficial Debian/Ubuntu PKGBUILD
> **This installation method is unofficial and not supported by the project. Report any issues to the PKGBUILD maintainer.**
> The method is intended for Debian-based distributions (Ubuntu, Mint, etc).
1. Install [makedeb](https://www.makedeb.org/).
2. Ensure you have Node.js v18 or higher installed by running `node -v`. If you need to upgrade, you can install a [node.js repo](https://mpr.makedeb.org/packages/nodejs-repo) (you'll might need to edit the version inside the PKGBUILD). As an alternative, install and configure [nvm](https://mpr.makedeb.org/packages/nvm) to manage multiple node.js installations. Finally, you can [install node.js manually](https://nodejs.org/en/download), but you will need to update the PATH variable of your environment.
3. Now build the [sillytavern package](https://mpr.makedeb.org/packages/sillytavern). The build needs to run with the correct node.js version.
#### Manual
1. Ensure you have Node.js v18 or higher (the latest [LTS version](https://nodejs.org/en/download/) is recommended) installed by running `node -v`.
Alternatively, use the [Node Version Manager](https://github.com/nvm-sh/nvm#installing-and-updating) script to quickly and easily manage your Node installations.
2. Run the `start.sh` script.
3. Enjoy.
## API keys management
SillyTavern saves your API keys to a `secrets.json` file in the server directory.
By default, they will not be exposed to a frontend after you enter them and reload the page.
In order to enable viewing your keys by clicking a button in the API block:
1. Set the value of `allowKeysExposure` to `true` in `config.yaml` file.
2. Restart the SillyTavern server.
## Remote connections
Most often this is for people who want to use SillyTavern on their mobile phones while their PC runs the ST server on the same wifi network.
However, it can be used to allow remote connections from anywhere as well.
**IMPORTANT: SillyTavern is a single-user program, so anyone who logs in will be able to see all characters and chats, and be able to change any settings inside the UI.**
### 1. Managing whitelisted IPs
* Create a new text file inside your SillyTavern base install folder called `whitelist.txt`.
* Open the file in a text editor, and add a list of IPs you want to be allowed to connect.
*Both individual IPs and wildcard IP ranges are accepted. Examples:*
```txt
192.168.0.1
192.168.0.20
```
or
```txt
192.168.0.*
```
(the above wildcard IP range will allow any device on the local network to connect)
CIDR masks are also accepted (eg. 10.0.0.0/24).
* Save the `whitelist.txt` file.
* Restart your TAI server.
Now devices which have the IP specified in the file will be able to connect.
*Note: `config.yaml` also has a `whitelist` array, which you can use in the same way, but this array will be ignored if `whitelist.txt` exists.*
### 2. Getting the IP for the ST host machine
After the whitelist has been setup, you'll need the IP of the ST-hosting device.
If the ST-hosting device is on the same wifi network, you will use the ST-host's internal wifi IP:
* For Windows: windows button > type `cmd.exe` in the search bar > type `ipconfig` in the console, hit Enter > look for `IPv4` listing.
If you (or someone else) want to connect to your hosted ST while not being on the same network, you will need the public IP of your ST-hosting device.
* While using the ST-hosting device, access [this page](https://whatismyipaddress.com/) and look for `IPv4`. This is what you would use to connect from the remote device.
### 3. Connect the remote device to the ST host machine
Whatever IP you ended up with for your situation, you will put that IP address and port number into the remote device's web browser.
A typical address for an ST host on the same wifi network would look like this:
`http://192.168.0.5:8000`
Use http:// NOT https://
### Opening your ST to all IPs
We do not recommend doing this, but you can open `config.yaml` and change `whitelistMode` to `false`.
You must remove (or rename) `whitelist.txt` in the SillyTavern base install folder if it exists.
This is usually an insecure practice, so we require you to set a username and password when you do this.
The username and password are set in `config.yaml`.
After restarting your ST server, any device will be able to connect to it, regardless of their IP as long as they know the username and password.
### Still Unable To Connect?
* Create an inbound/outbound firewall rule for the port found in `config.yaml`. Do NOT mistake this for port-forwarding on your router, otherwise, someone could find your chat logs and that's a big no-no.
* Enable the Private Network profile type in Settings > Network and Internet > Ethernet. This is VERY important for Windows 11, otherwise, you would be unable to connect even with the aforementioned firewall rules.
## Performance issues?
Try enabling the No Blur Effect (Fast UI) mode on the User settings panel.
## I like your project! How do I contribute?
### DO's
1. Send pull requests
2. Send feature suggestions and issue reports using established templates
3. Read the readme file and built-in documentation before asking anything
### DONT's
1. Offer monetary donations
2. Send bug reports without providing any context
3. Ask the questions that were already answered numerous times
## Where can I find the old backgrounds?
We're moving to a 100% original content only policy, so old background images have been removed from this repository.
You can find them archived here:
<https://files.catbox.moe/1xevnc.zip>
## Screenshots
<img width="400" alt="image" src="https://github.com/SillyTavern/SillyTavern/assets/61471128/e902c7a2-45a6-4415-97aa-c59c597669c1">
<img width="400" alt="image" src="https://github.com/SillyTavern/SillyTavern/assets/61471128/f8a79c47-4fe9-4564-9e4a-bf247ed1c961">
## License and credits
**This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.**
* TAI Base by Humi: Unknown license
* Cohee's modifications and derived code: AGPL v3
* RossAscends' additions: AGPL v3
* Portions of CncAnon's TavernAITurbo mod: Unknown license
* kingbri's various commits and suggestions (<https://github.com/bdashore3>)
* city_unit's extensions and various QoL features (<https://github.com/city-unit>)
* StefanDanielSchwarz's various commits and bug reports (<https://github.com/StefanDanielSchwarz>)
* Waifu mode inspired by the work of PepperTaco (<https://github.com/peppertaco/Tavern/>)
* Thanks Pygmalion University for being awesome testers and suggesting cool features!
* Thanks oobabooga for compiling presets for TextGen
* KoboldAI Presets from KAI Lite: <https://lite.koboldai.net/>
* Noto Sans font by Google (OFL license)
* Icon theme by Font Awesome <https://fontawesome.com> (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* AI Horde client library by ZeldaFan0225: <https://github.com/ZeldaFan0225/ai_horde>
* Linux startup script by AlpinDale
* Thanks paniphons for providing a FAQ document
* 10K Discord Users Celebratory Background by @kallmeflocc
* Default content (characters and lore books) provided by @OtisAlejandro, @RossAscends and @kallmeflocc
* Korean translation by @doloroushyeonse
* k_euler_a support for Horde by <https://github.com/Teashrock>
* Chinese translation by [@XXpE3](https://github.com/XXpE3), 中文 ISSUES 可以联系 @XXpE3
@@ -1,37 +0,0 @@
name: Build and Publish Release (Release)
on:
push:
branches:
- release
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Build and package with pkg
run: |
npm install -g pkg
npm run pkg
- name: Upload binaries to release
uses: softprops/action-gh-release@v1
with:
files: dist/*
tag_name: ci-release
name: Continuous Release (Release)
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -1,37 +0,0 @@
name: Build and Publish Release (Staging)
on:
push:
branches:
- staging
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Build and package with pkg
run: |
npm install -g pkg
npm run pkg
- name: Upload binaries to release
uses: softprops/action-gh-release@v1
with:
files: dist/*
tag_name: ci-staging
name: Continuous Release (Staging)
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-45
View File
@@ -1,45 +0,0 @@
# This workflow will publish a docker image for every full release to the GitHub package repository
name: Create Docker Image on Release
on:
release:
# Only runs on full releases not pre releases
types: [released]
env:
# This should allow creation of docker images even in forked repositories
# Image name may not contain uppercase characters, so we can not use the repository name
# Creates a string like: ghcr.io/SillyTavern/sillytavern
image_name: ghcr.io/sillytavern/sillytavern
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# Build docker image using dockerfile and tag it with branch name
# Assumes branch name is the version number
- name: Build the Docker image
run: |
docker build . --file Dockerfile --tag $image_name:${{ github.ref_name }}
# Login into package repository as the person who created the release
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Assumes release is the latest and marks image as such
- name: Docker Tag and Push
run: |
docker tag $image_name:${{ github.ref_name }} $image_name:latest
docker push $image_name:${{ github.ref_name }}
docker push $image_name:latest
-32
View File
@@ -1,32 +0,0 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Node.js Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
-43
View File
@@ -1,43 +0,0 @@
name: Update SillyTavern-Docs
on:
push:
branches:
- main
jobs:
update_docs:
runs-on: ubuntu-latest
steps:
- name: Checkout current repository
uses: actions/checkout@v2
- name: Checkout SillyTavern-Docs repository
uses: actions/checkout@v2
with:
repository: SillyTavern/SillyTavern-Docs
path: SillyTavern-Docs
- name: Clone SillyTavern wiki into SillyTavern-Docs/extensions
run: rm -rf SillyTavern-Docs/extensions && git clone https://github.com/SillyTavern/SillyTavern.wiki.git SillyTavern-Docs/extensions && rm -rf SillyTavern-Docs/extensions/.git
- name: Copy files
run: |
cp public/notes/content.md SillyTavern-Docs/guidebook.md
cp faq.md SillyTavern-Docs/faq.md
cp readme.md SillyTavern-Docs/readme.md
cp public/notes/update.md SillyTavern-Docs/update.md
- name: Deploy to external repository
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
# GitHub Action output files
source-directory: SillyTavern-Docs/
destination-github-username: SillyTavern
destination-repository-name: SillyTavern-Docs
user-email: github-actions[bot]@users.noreply.github.com
user-name: "GitHub Actions"
target-branch: "main"
+1 -32
View File
@@ -4,42 +4,11 @@ public/characters/
public/User Avatars/
public/backgrounds/
public/groups/
public/group chats/
public/worlds/
public/user/
public/css/bg_load.css
public/themes/
public/OpenAI Settings/
public/KoboldAI Settings/
public/NovelAI Settings/
public/TextGen Settings/
public/instruct/
public/context/
public/scripts/extensions/third-party/
public/stats.json
/uploads/
*.jsonl
/config.conf
/config.yaml
/config.conf.bak
/docker/config
config.conf
.DS_Store
public/settings.json
/thumbnails
whitelist.txt
.vscode/**
!.vscode/extensions.json
.idea/
secrets.json
/dist
/backups/
public/movingUI/
public/QuickReplies/
content.log
cloudflared.exe
public/assets/
access.log
/vectors/
/cache/
public/css/user.css
/plugins/
-8
View File
@@ -1,8 +0,0 @@
node_modules/
/uploads/
.DS_Store
/thumbnails
secrets.json
/dist
/backups/
access.log
-81
View File
@@ -1,81 +0,0 @@
hidden = [".config", "package-lock.json"]
run = "chmod 755 ./start.sh && ./start.sh"
entrypoint = "server.js"
[[hints]]
regex = "Error \\[ERR_REQUIRE_ESM\\]"
message = "We see that you are using require(...) inside your code. We currently do not support this syntax. Please use 'import' instead when using external modules. (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import)"
[nix]
channel = "stable-22_11"
[env]
XDG_CONFIG_HOME = "/home/runner/$REPL_SLUG/.config"
PATH = "/home/runner/$REPL_SLUG/.config/npm/node_global/bin:/home/runner/$REPL_SLUG/node_modules/.bin"
npm_config_prefix = "/home/runner/$REPL_SLUG/.config/npm/node_global"
[gitHubImport]
requiredFiles = [".replit", "replit.nix", ".config", "package.json", "package-lock.json"]
[packager]
language = "nodejs"
[packager.features]
packageSearch = true
guessImports = true
enabledForHosting = false
[unitTest]
language = "nodejs"
[debugger]
support = true
[debugger.interactive]
transport = "localhost:0"
startCommand = [ "dap-node" ]
[debugger.interactive.initializeMessage]
command = "initialize"
type = "request"
[debugger.interactive.initializeMessage.arguments]
clientID = "replit"
clientName = "replit.com"
columnsStartAt1 = true
linesStartAt1 = true
locale = "en-us"
pathFormat = "path"
supportsInvalidatedEvent = true
supportsProgressReporting = true
supportsRunInTerminalRequest = true
supportsVariablePaging = true
supportsVariableType = true
[debugger.interactive.launchMessage]
command = "launch"
type = "request"
[debugger.interactive.launchMessage.arguments]
args = []
console = "externalTerminal"
cwd = "."
environment = []
pauseForSourceMap = false
program = "./server.js"
request = "launch"
sourceMaps = true
stopOnEntry = false
type = "pwa-node"
[languages]
[languages.javascript]
pattern = "**/{*.js,*.jsx,*.ts,*.tsx,*.json}"
[languages.javascript.languageServer]
start = "typescript-language-server --stdio"
[deployment]
run = ["sh", "-c", "./start.sh"]
-11
View File
@@ -1,11 +0,0 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"dbaeumer.vscode-eslint",
"EditorConfig.EditorConfig"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
+14 -20
View File
@@ -3,44 +3,38 @@ FROM node:19.1.0-alpine3.16
# Arguments
ARG APP_HOME=/home/node/app
# Install system dependencies
RUN apk add gcompat tini git
# Ensure proper handling of kernel signals
ENTRYPOINT [ "tini", "--" ]
# Create app directory
WORKDIR ${APP_HOME}
# Install app dependencies
COPY package*.json post-install.js ./
COPY package*.json ./
RUN \
echo "*** Install npm packages ***" && \
npm install && npm cache clean --force
npm install
# Bundle app source
COPY . ./
# Copy default chats, characters and user avatars to <folder>.default folder
RUN \
IFS="," RESOURCES="assets,backgrounds,user,context,instruct,QuickReplies,movingUI,themes,characters,chats,groups,group chats,User Avatars,worlds,OpenAI Settings,NovelAI Settings,KoboldAI Settings,TextGen Settings" && \
\
echo "*** Store default $RESOURCES in <folder>.default ***" && \
for R in $RESOURCES; do mv "public/$R" "public/$R.default"; done || true && \
\
echo "*** Copy default chats, characters and user avatars to <folder>.default folder ***" && \
mv "./public/characters" "./public/characters.default" && \
mv "./public/chats" "./public/chats.default" && \
mv "./public/User Avatars" "./public/User Avatars.default" && \
mv "./public/settings.json" "./public/settings.json.default" && \
echo "*** Create symbolic links to config directory ***" && \
for R in $RESOURCES; do ln -s "../config/$R" "public/$R"; done || true && \
\
rm -f "config.yaml" "public/settings.json" || true && \
ln -s "./config/config.yaml" "config.yaml" || true && \
ln -s "../config/settings.json" "public/settings.json" || true && \
mkdir "config" || true
ln -s "${APP_HOME}/config/characters" "${APP_HOME}/public/characters" && \
ln -s "${APP_HOME}/config/chats" "${APP_HOME}/public/chats" && \
ln -s "${APP_HOME}/config/User Avatars" "${APP_HOME}/public/User Avatars" && \
ln -s "${APP_HOME}/config/settings.json" "${APP_HOME}/public/settings.json"
# Cleanup unnecessary files
RUN \
echo "*** Cleanup ***" && \
mv "./docker/docker-entrypoint.sh" "./" && \
rm -rf "./docker" && \
rm -rf "./.git" && \
echo "*** Make docker-entrypoint.sh executable ***" && \
chmod +x "./docker-entrypoint.sh" && \
echo "*** Convert line endings to Unix format ***" && \
@@ -48,4 +42,4 @@ RUN \
EXPOSE 8000
CMD [ "./docker-entrypoint.sh" ]
ENTRYPOINT [ "/bin/sh", "-c", "./docker-entrypoint.sh" ]
-661
View File
@@ -1,661 +0,0 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.
-18
View File
@@ -1,18 +0,0 @@
@echo off
echo ========================================================================================================================
echo WARNING: Cloudflare Tunnel!
echo ========================================================================================================================
echo This script downloads and runs the latest cloudflared.exe from Cloudflare to set up an HTTPS tunnel to your SillyTavern!
echo Using the randomly generated temporary tunnel URL, anyone can access your SillyTavern over the Internet while the tunnel
echo is active. Keep the URL safe and secure your SillyTavern installation by setting a username and password in config.yaml!
echo.
echo See https://docs.sillytavern.app/usage/remoteconnections/ for more details about how to secure your SillyTavern install.
echo.
echo By continuing you confirm that you're aware of the potential dangers of having a tunnel open and take all responsibility
echo to properly use and secure it!
echo.
echo To abort, press Ctrl+C or close this window now!
echo.
pause
if not exist cloudflared.exe curl -Lo cloudflared.exe https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-windows-amd64.exe
cloudflared.exe tunnel --url localhost:8000
-25
View File
@@ -1,25 +0,0 @@
# Security Policy
We take the security of this project seriously. If you discover any security vulnerabilities or have concerns regarding the security of this repository, please reach out to us immediately. We appreciate your efforts in responsibly disclosing the issue and will make every effort to address it promptly.
## Reporting a Vulnerability
To report a security vulnerability, please follow these steps:
1. Go to the **Security** tab of this repository on GitHub.
2. Click on **"Report a vulnerability"**.
3. Provide a clear description of the vulnerability and its potential impact. Be as detailed as possible.
4. If applicable, include steps or a PoC (Proof of Concept) to reproduce the vulnerability.
5. Submit the report.
Once we receive the private report notification, we will promptly investigate and assess the reported vulnerability.
Please do not disclose any potential vulnerabilities in public repositories, issue trackers, or forums until we have had a chance to review and address the issue.
## Scope
This security policy applies to all the code and files within this repository and its dependencies actively maintained by us. If you encounter a security issue in a dependency that is not directly maintained by us, please follow responsible disclosure practices and report it to the respective project.
While we strive to ensure the security of this project, please note that there may be limitations on resources, response times, and mitigations.
Thank you for your help in making this project more secure.
+2 -5
View File
@@ -1,5 +1,2 @@
pushd %~dp0
call npm install --no-audit
node server.js %*
pause
popd
call npm install
node server.js
-66
View File
@@ -1,66 +0,0 @@
How to Update SillyTavern
The most recent version can be found here: https://docs.sillytavern.app/usage/update/
This is not an installation guide. If you need installation instructions, look here:
https://docs.sillytavern.app/installation/windows/
This guide assumes you have already installed SillyTavern once, and know how to run it on your OS.
Linux/Termux:
You definitely installed via git, so just 'git pull' inside the SillyTavern directory.
Windows/MacOS:
Method 1 - GIT
We always recommend users install using 'git'. Here's why:
When you have installed via `git clone`, all you have to do to update is type `git pull` in a command line in the ST folder.
You can also try running the 'UpdateAndStart.bat' file, which will almost do the same thing. (Windows only)
Alternatively, if the command prompt gives you problems (and you have GitHub Desktop installed), you can use the 'Repository' menu and select 'Pull'.
The updates are applied automatically and safely.
Method 2 - ZIP
If you insist on installing via a zip, here is the tedious process for doing the update:
1. Download the new release zip.
2. Unzip it into a folder OUTSIDE of your current ST installation.
3. Do the usual setup procedure for your OS to install the NodeJS requirements.
4. Copy the following files/folders as necessary(*) from your old ST installation:
- Assets
- Backgrounds
- Characters
- Chats
- Context
- Groups
- Group chats
- Instruct
- movingUI
- KoboldAI Settings
- NovelAI Settings
- OpenAI Settings (Chat Completion API)
- TextGen Settings (Text Completion API)
- QuickReplies
- Themes
- User Avatars
- Worlds
- User
- settings.json
- secrets.json <---- this one is in the base folder, not /public/
(*) 'As necessary' = "If you made any custom content related to those folders".
None of the folders are mandatory, so only copy what you need.
**NB: DO NOT COPY THE ENTIRE /PUBLIC/ FOLDER.**
Doing so could break the new install and prevent new features from being present.
5. Paste those items into the /Public/ folder of the new install.
6. Start SillyTavern once again with the method appropriate to your OS, and pray you got it right.
7. If everything shows up, you can safely delete the old ST folder.
-17
View File
@@ -1,17 +0,0 @@
@echo off
pushd %~dp0
git --version > nul 2>&1
if %errorlevel% neq 0 (
echo Git is not installed on this system. Skipping update.
echo If you installed with a zip file, you will need to download the new zip and install it manually.
) else (
call git pull --rebase --autostash
if %errorlevel% neq 0 (
REM incase there is still something wrong
echo There were errors while updating. Please download the latest version manually.
)
)
call npm install
node server.js %*
pause
popd
+152 -141
View File
@@ -1,25 +1,53 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"metadata": {
"id": "d-Yihz3hAb2E"
},
"source": [
"https://colab.research.google.com/github/TavernAI/TavernAI/blob/main/colab/GPU.ipynb<br>\n",
"\n",
"Works with:<br>\n",
"KoboldAI https://github.com/KoboldAI/KoboldAI-Client<br>\n",
"Pygmalion https://huggingface.co/PygmalionAI/<br>\n",
"<br>\n",
"**Links**<br>\n",
"Extensions API GitHub: https://github.com/SillyTavern/SillyTavern-extras/<br>\n",
"SillyTavern community Discord (support and discussion): https://discord.gg/sillytavern"
"TavernAI Github https://github.com/TavernAI/TavernAI<br>\n",
"TavernAI Discord https://discord.gg/zmK2gmr45t<br>\n",
"TavernAI Boosty https://boosty.to/tavernai\n",
"<pre>\n",
" Tavern.AI/ \\ / ^ ^ ^ ^ ~~~~ ^ \\ / ^ ^ ^ ^/ ^ ^ \\/^ ^ \\\n",
" /^ ^\\ ^ ^ ^ ^ ^ ~~ ^ \\ / ^ ^ ^ / ^ ^ ^/ ^ ^ \\\n",
" /^ ^ ^\\^ ^ ^ ^ _||____ ^ \\ / ^ ^ ^ / / ^ ^ ^ \\\n",
" /\\ /\\ /\\ ^ \\ /\\ /\\ /\\\\\\\\\\\\\\\\ ^ \\ ^ /\\ /\\ /\\ /\\ /\\ /\\ ^ ^ ^/\\\n",
"//\\\\/\\\\/\\\\ ^ \\//\\\\/\\\\ /__\\\\\\\\\\\\\\\\ _, \\ //\\\\/\\\\/\\\\ //\\\\/\\\\/\\\\ ^ ^ //\\\\\n",
"//\\\\/\\\\/\\\\ //\\\\/\\\\ |__|_|_|__| \\__, //\\\\/\\\\/\\\\ //\\\\/\\\\/\\\\ ///\\\\\\\n",
" || || (@^◡^)(≖ ‸ ≖*) ( ←_← )\\| /| /\\ \\ヽ(°ㅂ°╬) |( Ψ▼ー▼)∈ (O_O; ) |||\n",
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~ \n",
"</pre>\n",
"**Launch Instructions**<br>\n",
"1. Click the launch button.\n",
"2. Wait for the environment and model to load\n",
"3. After initialization, a TavernAI link will appear\n",
"\n",
"**Faq**<br>\n",
"* Q: I do not get a TavernAI link\n",
"* A: It seems the localtunnel service is currently down, so the TavernAI link is unavailable. Need to wait for it to start working again."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"id": "hCpoIHxYcDGs"
},
"outputs": [],
"source": [
"#@title <-- Tap this if you run on Mobile { display-mode: \"form\" }\n",
"#@title <-- Tap this if you play on Mobile { display-mode: \"form\" }\n",
"#Taken from KoboldAI colab\n",
"%%html\n",
"<b>Press play on the audio player to keep the tab alive. (Uses only 13MB of data)</b><br/>\n",
"<b>Press play on the music player to keep the tab alive, then start TavernAI below (Uses only 13MB of data)</b><br/>\n",
"<audio src=\"https://henk.tech/colabkobold/silence.m4a\" controls>"
]
},
@@ -27,156 +55,138 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "lVftocpwCoYw"
"id": "hps3qtPLFNBb",
"cellView": "form"
},
"outputs": [],
"source": [
"#@markdown (RECOMMENDED) Generates an API key for you to use with the API\n",
"secure = False #@param {type:\"boolean\"}\n",
"#@markdown Allows to run SillyTavern Extras on CPU (use if you're out of daily GPU allowance)\n",
"use_cpu = False #@param {type:\"boolean\"}\n",
"#@markdown Allows to run Stable Diffusion pipeline on CPU (slow!)\n",
"use_sd_cpu = False #@param {type:\"boolean\"}\n",
"#@markdown ***\n",
"#@markdown Enables the WebSearch module\n",
"extras_enable_websearch = True #@param {type:\"boolean\"}\n",
"#@markdown ***\n",
"#@markdown Loads the image captioning module\n",
"extras_enable_caption = True #@param {type:\"boolean\"}\n",
"captioning_model = \"Salesforce/blip-image-captioning-large\" #@param [ \"Salesforce/blip-image-captioning-large\", \"Salesforce/blip-image-captioning-base\" ]\n",
"#@markdown * Salesforce/blip-image-captioning-large - good base model\n",
"#@markdown * Salesforce/blip-image-captioning-base - slightly faster but less accurate\n",
"#@markdown ***\n",
"#@markdown Loads the sentiment classification model\n",
"extras_enable_classify = True #@param {type:\"boolean\"}\n",
"classification_model = \"nateraw/bert-base-uncased-emotion\" #@param [\"nateraw/bert-base-uncased-emotion\", \"joeddav/distilbert-base-uncased-go-emotions-student\"]\n",
"#@markdown * nateraw/bert-base-uncased-emotion = 6 supported emotions<br>\n",
"#@markdown * joeddav/distilbert-base-uncased-go-emotions-student = 28 supported emotions\n",
"#@markdown ***\n",
"#@markdown Loads the story summarization module\n",
"extras_enable_summarize = True #@param {type:\"boolean\"}\n",
"summarization_model = \"slauw87/bart_summarisation\" #@param [ \"slauw87/bart_summarisation\", \"Qiliang/bart-large-cnn-samsum-ChatGPT_v3\", \"Qiliang/bart-large-cnn-samsum-ElectrifAi_v10\", \"distilbart-xsum-12-3\" ]\n",
"#@markdown * slauw87/bart_summarisation - general purpose summarization model\n",
"#@markdown * Qiliang/bart-large-cnn-samsum-ChatGPT_v3 - summarization model optimized for chats\n",
"#@markdown * Qiliang/bart-large-cnn-samsum-ElectrifAi_v10 - nice results so far, but still being evaluated\n",
"#@markdown * distilbart-xsum-12-3 - faster, but pretty basic alternative\n",
"#@markdown ***\n",
"#@markdown Enables Silero text-to-speech module\n",
"extras_enable_silero_tts = True #@param {type:\"boolean\"}\n",
"#@markdown Enables Microsoft Edge text-to-speech module\n",
"extras_enable_edge_tts = True #@param {type:\"boolean\"}\n",
"#@markdown Enables RVC module\n",
"extras_enable_rvc = False #@param {type:\"boolean\"}\n",
"#@markdown ***\n",
"#@markdown Enables Whisper speech recognition module\n",
"extras_enable_whisper_stt = True #@param {type:\"boolean\"}\n",
"whisper_model = \"base.en\" #@param [ \"tiny.en\", \"base.en\", \"small.en\", \"medium.en\", \"tiny\", \"base\", \"small\", \"medium\", \"large\" ]\n",
"#@markdown There are five model sizes, four with English-only versions, offering speed and accuracy tradeoffs.\n",
"#@markdown The .en models for English-only applications tend to perform better, especially for the tiny.en and base.en models.\n",
"#@markdown ***\n",
"#@markdown Enables SD picture generation\n",
"extras_enable_sd = True #@param {type:\"boolean\"}\n",
"sd_model = \"ckpt/anything-v4.5-vae-swapped\" #@param [ \"ckpt/anything-v4.5-vae-swapped\", \"hakurei/waifu-diffusion\", \"philz1337/clarity\", \"prompthero/openjourney\", \"ckpt/sd15\", \"stabilityai/stable-diffusion-2-1-base\" ]\n",
"#@markdown * ckpt/anything-v4.5-vae-swapped - anime style model\n",
"#@markdown * hakurei/waifu-diffusion - anime style model\n",
"#@markdown * philz1337/clarity - realistic style model\n",
"#@markdown * prompthero/openjourney - midjourney style model\n",
"#@markdown * ckpt/sd15 - base SD 1.5\n",
"#@markdown * stabilityai/stable-diffusion-2-1-base - base SD 2.1\n",
"#@markdown ***\n",
"#@markdown Enables ChromaDB module\n",
"extras_enable_chromadb = True #@param {type:\"boolean\"}\n",
"#@title <b>TavernAI</b>\n",
"#@markdown <- Click For Start (≖ ‸ ≖ ✿)\n",
"\n",
"Model = \"Pygmalion 6B\" #@param [ \"Pygmalion 6B\", \"Pygmalion 6B Dev\"] {allow-input: true}\n",
"Version = \"Official\" \n",
"KoboldAI_Provider = \"Localtunnel\" #@param [\"Localtunnel\", \"Cloudflare\"]\n",
"use_google_drive = True #@param {type:\"boolean\"}\n",
"Provider = KoboldAI_Provider\n",
"!nvidia-smi\n",
"import subprocess\n",
"import secrets\n",
"import time\n",
"import sys\n",
"import os\n",
"import threading\n",
"import shutil\n",
"from google.colab import drive\n",
"\n",
"# ---\n",
"# SillyTavern extras\n",
"extras_url = '(disabled)'\n",
"params = []\n",
"if use_cpu:\n",
" params.append('--cpu')\n",
"if use_sd_cpu:\n",
" params.append('--sd-cpu')\n",
"if secure:\n",
" params.append('--secure')\n",
"params.append('--share')\n",
"modules = []\n",
" \n",
"if use_google_drive:\n",
" drive.mount('/content/drive/')\n",
" if not os.path.exists(\"/content/drive/MyDrive/TavernAI/\"):\n",
" os.mkdir(\"/content/drive/MyDrive/TavernAI/\")\n",
" if not os.path.exists(\"/content/drive/MyDrive/TavernAI/characters/\"):\n",
" os.mkdir(\"/content/drive/MyDrive/TavernAI/characters/\")\n",
" if not os.path.exists(\"/content/drive/MyDrive/TavernAI/chats/\"):\n",
" os.mkdir(\"/content/drive/MyDrive/TavernAI/chats/\")\n",
"else:\n",
" if not os.path.exists(\"/content/drive\"):\n",
" os.mkdir(\"/content/drive\")\n",
" if not os.path.exists(\"/content/drive/MyDrive/\"):\n",
" os.mkdir(\"/content/drive/MyDrive/\")\n",
"\n",
"if extras_enable_caption:\n",
" modules.append('caption')\n",
"if extras_enable_summarize:\n",
" modules.append('summarize')\n",
"if extras_enable_classify:\n",
" modules.append('classify')\n",
"if extras_enable_sd:\n",
" modules.append('sd')\n",
"if extras_enable_silero_tts:\n",
" modules.append('silero-tts')\n",
"if extras_enable_edge_tts:\n",
" modules.append('edge-tts')\n",
"if extras_enable_chromadb:\n",
" modules.append('chromadb')\n",
"if extras_enable_whisper_stt:\n",
" modules.append('whisper-stt')\n",
" params.append(f'--stt-whisper-model-path={whisper_model}')\n",
"if extras_enable_rvc:\n",
" modules.append('rvc')\n",
" params.append('--max-content-length=2000')\n",
" params.append('--rvc-save-file')\n",
"def copy_characters(use_google_drive=False):\n",
" if not use_google_drive:\n",
" return\n",
" \n",
" src_folder = \"/TavernAIColab/public/characters\"\n",
" dst_folder = \"/content/drive/MyDrive/TavernAI/characters\"\n",
"\n",
" for filename in os.listdir(src_folder):\n",
" src_file = os.path.join(src_folder, filename)\n",
" dst_file = os.path.join(dst_folder, filename)\n",
"\n",
" if os.path.exists(dst_file):\n",
" print(f\"{dst_file} already exists. Skipping...\")\n",
" continue\n",
"\n",
" shutil.copy(src_file, dst_folder)\n",
" print(f\"{src_file} copied to {dst_folder}\")\n",
"Revision = \"\"\n",
"\n",
"if Model == \"Pygmalion 6B\":\n",
" Model = \"PygmalionAI/pygmalion-6b\"\n",
" path = \"\"\n",
" download = \"\"\n",
" Version = \"United\"\n",
"elif Model == \"Pygmalion 6B Dev\":\n",
" Model = \"PygmalionAI/pygmalion-6b\"\n",
" Revision = \"--revision dev\"\n",
" path = \"\"\n",
" Version = \"United\"\n",
" download = \"\"\n",
"\n",
"if Provider == \"Localtunnel\":\n",
" tunnel = \"--localtunnel yes\"\n",
"else:\n",
" tunnel = \"\"\n",
"\n",
"\n",
"if extras_enable_websearch:\n",
" print(\"Enabling WebSearch module\")\n",
" modules.append('websearch')\n",
" !apt update\n",
" !apt install -y chromium-chromedriver\n",
"\n",
"params.append(f'--classification-model={classification_model}')\n",
"params.append(f'--summarization-model={summarization_model}')\n",
"params.append(f'--captioning-model={captioning_model}')\n",
"params.append(f'--sd-model={sd_model}')\n",
"params.append(f'--enable-modules={\",\".join(modules)}')\n",
"#Henk's KoboldAI script\n",
"!wget https://koboldai.org/ckds && chmod +x ckds\n",
"!./ckds --init only\n",
"if Provider == \"Localtunnel\":\n",
" p = subprocess.Popen(['/content/ckds', '--model', Model, '--localtunnel', 'yes'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)\n",
"else:\n",
" p = subprocess.Popen(['/content/ckds', '--model', Model], stdout=subprocess.PIPE, stderr=subprocess.PIPE)\n",
"\n",
"\n",
"%cd /\n",
"!git clone https://github.com/SillyTavern/SillyTavern-extras\n",
"%cd /SillyTavern-extras\n",
"!git clone https://github.com/Cohee1207/tts_samples\n",
"!npm install -g localtunnel\n",
"%pip install -r requirements.txt\n",
"!wget https://github.com/cloudflare/cloudflared/releases/download/2023.5.0/cloudflared-linux-amd64 -O /tmp/cloudflared-linux-amd64\n",
"!chmod +x /tmp/cloudflared-linux-amd64\n",
"\n",
"if extras_enable_rvc:\n",
" print(\"Installing RVC requirements\")\n",
" %pip install -r requirements-rvc.txt\n",
"\n",
"# Generate a random API key\n",
"api_key = secrets.token_hex(5)\n",
"\n",
"# Write the API key to api_key.txt\n",
"with open('./api_key.txt', 'w') as f:\n",
" f.write(api_key)\n",
"print(f\"API Key generated: {api_key}\")\n",
"\n",
"cmd = f\"python server.py {' '.join(params)}\"\n",
"print(cmd)\n",
"extras_process = subprocess.Popen(\n",
" cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, cwd='/SillyTavern-extras', shell=True)\n",
"print('processId:', extras_process.pid)\n",
"#Do not repeat! Tricks performed by a professional!\n",
"url = ''\n",
"while True:\n",
" line = extras_process.stdout.readline().decode().strip()\n",
" if line != None and line != '':\n",
" print(line)\n"
" line = p.stdout.readline().decode().strip()\n",
" if \"KoboldAI has finished loading and is available at the following link: \" in line:\n",
" print(line)\n",
" url = line.split(\"KoboldAI has finished loading and is available at the following link: \")[1]\n",
" print(url)\n",
" break\n",
" if \"KoboldAI has finished loading and is available at the following link for UI 1: \" in line:\n",
" print(line)\n",
" url = line.split(\"KoboldAI has finished loading and is available at the following link for UI 1: \")[1]\n",
" print(url)\n",
" break\n",
" if not line:\n",
" break\n",
" print(line)\n",
" if \"INIT\" in line and \"Transformers\" in line:\n",
" print(\"Model loading... (It will take 2 - 5 minutes)\")\n",
"\n",
"\n",
"#TavernAI\n",
"%cd /\n",
"!curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash\n",
"!nvm install 19.1.0\n",
"!nvm use 19.1.0\n",
"!node -v\n",
"!git clone https://github.com/TavernAI/TavernAIColab\n",
"copy_characters(use_google_drive)\n",
"%cd TavernAIColab\n",
"!npm install\n",
"time.sleep(1)\n",
"%env colab=2\n",
"%env colaburl=$url\n",
"if use_google_drive:\n",
" %env googledrive=2\n",
"!nohup node server.js &\n",
"time.sleep(3)\n",
"print('KoboldAI LINK:')\n",
"print(url)\n",
"print('')\n",
"print('###TavernAI LINK###')\n",
"!lt --port 8000\n"
]
}
],
"metadata": {
"accelerator": "GPU",
"colab": {
"private_outputs": true,
"provenance": []
},
"gpuClass": "standard",
@@ -186,8 +196,9 @@
},
"language_info": {
"name": "python"
}
},
"accelerator": "GPU"
},
"nbformat": 4,
"nbformat_minor": 0
}
}
+11
View File
@@ -0,0 +1,11 @@
const port = 8000;
const whitelist = ['127.0.0.1','192.168.0.*']; //Example for add several IP in whitelist: ['127.0.0.1', '192.168.0.10']
const whitelistMode = false; //Disabling enabling the ip whitelist mode. true/false
const autorun = true; //Autorun in the browser. true/false
const enableExtensions = true; //Enables support for TavernAI-extras project
const listen = true; // If true, Can be access from other device or PC. otherwise can be access only from hosting machine.
module.exports = {
port, whitelist, whitelistMode, autorun, enableExtensions, listen
};
-69
View File
@@ -1,69 +0,0 @@
# -- NETWORK CONFIGURATION --
# Listen for incoming connections
listen: false
# Server port
port: 8000
# Toggle whitelist mode
whitelistMode: true
# Whitelist of allowed IP addresses
whitelist:
- 127.0.0.1
# Toggle basic authentication for endpoints
basicAuthMode: false
# Basic authentication credentials
basicAuthUser:
username: "user"
password: "password"
# Enables CORS proxy middleware
enableCorsProxy: false
# Disable security checks - NOT RECOMMENDED
securityOverride: false
# -- ADVANCED CONFIGURATION --
# Open the browser automatically
autorun: true
# Disable thumbnail generation
disableThumbnails: false
# Thumbnail quality (0-100)
thumbnailsQuality: 95
# Generate avatar thumbnails as PNG instead of JPG (preserves transparency but increases filesize by about 100%)
# Changing this only affects new thumbnails. To recreate the old ones, clear out your ST/thumbnails/ folder.
avatarThumbnailsPng: false
# Allow secret keys exposure via API
allowKeysExposure: false
# Skip new default content checks
skipContentCheck: false
# Disable automatic chats backup
disableChatBackup: false
# API request overrides (for KoboldAI and Text Completion APIs)
## Format is an array of objects:
## - hosts:
## - example.com
## headers:
## Content-Type: application/json
requestOverrides: []
# -- PLUGIN CONFIGURATION --
# Enable UI extensions
enableExtensions: true
# Extension settings
extras:
# Disables automatic model download from HuggingFace
disableAutoDownload: false
# Extra models for plugins. Expects model IDs from HuggingFace model hub in ONNX format
classificationModel: Cohee/distilbert-base-uncased-go-emotions-onnx
captioningModel: Xenova/vit-gpt2-image-captioning
embeddingModel: Cohee/jina-embeddings-v2-base-en
promptExpansionModel: Cohee/fooocus_expansion-onnx
# -- OPENAI CONFIGURATION --
openai:
# Will send a random user ID to OpenAI completion API
randomizeUserId: false
# If not empty, will add this as a system message to the start of every caption completion prompt
# Example: "Perform the instructions to the best of your ability.\n" (for LLaVA)
# Not used in image inlining mode
captionSystemPrompt: ""
# -- DEEPL TRANSLATION CONFIGURATION --
deepl:
# Available options: default, more, less, prefer_more, prefer_less
formality: default
# -- SERVER PLUGIN CONFIGURATION --
enableServerPlugins: false
@@ -1,86 +0,0 @@
{
"3": {
"class_type": "KSampler",
"inputs": {
"cfg": "%scale%",
"denoise": 1,
"latent_image": [
"5",
0
],
"model": [
"4",
0
],
"negative": [
"7",
0
],
"positive": [
"6",
0
],
"sampler_name": "%sampler%",
"scheduler": "%scheduler%",
"seed": "%seed%",
"steps": "%steps%"
}
},
"4": {
"class_type": "CheckpointLoaderSimple",
"inputs": {
"ckpt_name": "%model%"
}
},
"5": {
"class_type": "EmptyLatentImage",
"inputs": {
"batch_size": 1,
"height": "%height%",
"width": "%width%"
}
},
"6": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"4",
1
],
"text": "%prompt%"
}
},
"7": {
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"4",
1
],
"text": "%negative_prompt%"
}
},
"8": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"3",
0
],
"vae": [
"4",
2
]
}
},
"9": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "SillyTavern",
"images": [
"8",
0
]
}
}
}
-71
View File
@@ -1,71 +0,0 @@
{
"entries": {
"0": {
"uid": 0,
"key": [
"eldoria",
"wood",
"forest",
"magical forest"
],
"keysecondary": [],
"comment": "",
"content": "{{user}}: \"What is Eldoria?\"\n{{char}}: *Seraphina turns, her gown shimmering in the soft light as she offers you a kind smile.* \"Eldoria is here, all of the woods. This is my forest glade, a sanctuary of peace within it.\" *She gestures at the space around you.* \"I am its guardian, tasked with protecting all who seek refuge here. The forest can be perilous, but no harm will come to you under my watch.\" *Her amber eyes sparkle with compassion as she looks upon you.* \"For many years, I have protected those who seek refuge here, but not all are as friendly as me.\" *With a graceful nod, Seraphina returns to her vigil at the doorway, her form radiating a soft glow of magic and comfort.* \"The entirety of Eldoria used to be a safe haven for travelers and merchants alike... that was until the Shadowfangs came.\"\n{{user}}: \"What happened to Eldoria?\"\n{{char}}: *Letting out a sigh, Seraphina gazes out at the forest beyond her glade.* \"Long ago, Eldoria was a place of wonder. Rolling meadows, a vast lake, mountains that touched the sky.\" *Her eyes grow distant, longing for days now lost.* \"But the Shadowfangs came and darkness reigns where once was light. The lake turned bitter, mountains fell to ruin and beasts stalk where once travelers walked in peace.\" *With another flicker, a small raincloud forms above with a shower upon your brow wink.* \"Some places the light still lingers, pockets of hope midst despair - havens warded from the shadows, oases in a desert of danger.\" *Glancing over you with a smile, she sighs, clasping your hand.*",
"constant": false,
"selective": false,
"order": 100,
"position": 0,
"disable": false
},
"1": {
"uid": 1,
"key": [
"shadowfang",
"beast",
"monster",
"monsters",
"beasts"
],
"keysecondary": [],
"comment": "",
"content": "{{user}}: \"What are Shadowfangs?\"\n{{char}}: *Seraphina's eyes darken, brow furrowing with sorrow at the memory.* \"The Shadowfangs are beasts of darkness, corrupted creatures that feast on suffering. When they came, the forest turned perilous — filled with monsters that stalk the night.\" *She squeezes your hand gently, willing her magic to soothe your pain.* \"They spread their curse, twisting innocent creatures into sinister beasts without heart or mercy, turning them into one of their own.\" *With a sigh, Seraphina turns to gaze out at the gnarled, twisting trees beyond her glade.* \"Though they prey on travelers, within these woods you'll find sanctuary. No shadowed beast may enter here, for my power protects this haven.\" *Her eyes soften as she looks back to you, filled with compassion.* \"Worry not, you're safe now. Rest and heal, I'll stand watch through the night. The Shadowfangs will not find you.\"",
"constant": false,
"selective": false,
"order": 100,
"position": 0,
"disable": false
},
"2": {
"uid": 2,
"key": [
"glade",
"safe haven",
"refuge"
],
"keysecondary": [],
"comment": "",
"content": "{{user}}: \"What is the glade?\"\n{{char}}: *Seraphina smiles softly, her eyes sparkling with warmth as she nods.* \"This is my forest glade, a haven of safety I've warded with ancient magic. No foul beast may enter, nor any with ill intent.\" *She gestures around at the twisted forest surrounding them.* \"Eldoria was once a place of wonder, but since the Shadowfangs came darkness reigns. Their evil cannot penetrate here though — my power protects all within.\" *Standing up and peering outside, Seraphina looks back to you, amber eyes filled with care and compassion as she squeezes your hand.* \"You need not fear the night, for I shall keep watch till dawn. Rest now, your strength will return in time. My magic heals your wounds, you've nothing more to fear anymore.\" *With a soft smile she releases your hand, moving to stand guard at the glade's edge, gaze wary yet comforting - a silent sentinel to ward off the dangers lurking in the darkened woods.*",
"constant": false,
"selective": false,
"order": 100,
"position": 0,
"disable": false
},
"3": {
"uid": 3,
"key": [
"power",
"magic",
"ability"
],
"keysecondary": [],
"comment": "",
"content": "{{user}}: \"What are your powers?\"\n{{char}}: *Seraphina smiles softly, turning back toward you as she hums in thought.* \"Well, as guardian of this glade, I possess certain gifts - healing, protection, nature magic and the like.\" *Lifting her hand, a tiny breeze rustles through the room, carrying the scent of wildflowers as a few petals swirl around you. A butterfly flits through the windowsill and lands on her fingertips as she returns to you.* \"My power wards this haven, shields it from darkness and heals those in need. I can mend wounds, soothe restless minds and provide comfort to weary souls.\" *Her eyes sparkle with warmth and compassion as she looks upon you, and she guides the butterfly to you.*",
"constant": false,
"selective": false,
"order": 100,
"position": 0,
"disable": false
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 338 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 598 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 517 KiB

-359
View File
@@ -1,359 +0,0 @@
[
{
"filename": "default_Seraphina.png",
"type": "character"
},
{
"filename": "default_CodingSensei.png",
"type": "character"
},
{
"filename": "default_FluxTheCat.png",
"type": "character"
},
{
"filename": "Seraphina",
"type": "sprites"
},
{
"filename": "Eldoria.json",
"type": "world"
},
{
"filename": "user-default.png",
"type": "avatar"
},
{
"filename": "Default_Comfy_Workflow.json",
"type": "workflow"
},
{
"filename": "presets/kobold/Ace of Spades.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Basic Coherence.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Best Guess.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Coherent Creativity.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Deterministic.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Genesis.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Godlike.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Good Winds.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Liminal Drift.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Low Rider.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Luna Moth.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Mayday.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Miro Bronze.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Miro Gold.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Miro Silver.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Ouroboros.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Pleasing Results.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Pro Writer.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/RecoveredRuins.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Space Alien.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Storywriter.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/TFS-with-Top-A.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Titanic.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Universal-Creative.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Universal-Light.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/Universal-Super-Creative.json",
"type": "kobold_preset"
},
{
"filename": "presets/kobold/simple-proxy-for-tavern.json",
"type": "kobold_preset"
},
{
"filename": "presets/novel/Asper-Kayra.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/Blended-Coffee-Kayra.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/Blook-Kayra.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/Carefree-Kayra.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/CosmicCube-Kayra.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/Edgewise-Clio.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/Fresh-Coffee-Clio.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/Fresh-Coffee-Kayra.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/Green-Active-Writer-Kayra.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/Keelback-Clio.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/Long-Press-Clio.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/Pilotfish-Kayra.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/Pro_Writer-Kayra.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/Stelenes-Kayra.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/Talker-Chat-Clio.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/Tea_Time-Kayra.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/Tesseract-Kayra.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/Vingt-Un-Clio.json",
"type": "novel_preset"
},
{
"filename": "presets/novel/Writers-Daemon-Kayra.json",
"type": "novel_preset"
},
{
"filename": "presets/textgen/Asterism.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Beam Search.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Big O.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Contrastive Search.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Default.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Deterministic.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Divine Intellect.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Kobold (Godlike).json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Kobold (Liminal Drift).json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/LLaMa-Precise.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Midnight Enigma.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Miro Bronze.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Miro Gold.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Miro Silver.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Mirostat.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Naive.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/NovelAI (Best Guess).json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/NovelAI (Decadence).json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/NovelAI (Genesis).json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/NovelAI (Lycaenidae).json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/NovelAI (Ouroboros).json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/NovelAI (Pleasing Results).json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/NovelAI (Sphinx Moth).json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/NovelAI (Storywriter).json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Shortwave.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Simple-1.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Space Alien.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/StarChat.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/TFS-with-Top-A.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Titanic.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Universal-Creative.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Universal-Light.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Universal-Super-Creative.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/Yara.json",
"type": "textgen_preset"
},
{
"filename": "presets/textgen/simple-proxy-for-tavern.json",
"type": "textgen_preset"
},
{
"filename": "presets/openai/Default.json",
"type": "openai_preset"
}
]
@@ -1,24 +0,0 @@
{
"temp": 1.15,
"rep_pen": 1.05,
"rep_pen_range": 2048,
"top_p": 0.95,
"top_a": 0,
"top_k": 0,
"typical": 1,
"tfs": 0.8,
"rep_pen_slope": 7,
"sampler_order": [
6,
3,
2,
0,
5,
1,
4
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 0.59,
"rep_pen": 1.1,
"rep_pen_range": 2048,
"top_p": 1,
"top_a": 0,
"top_k": 0,
"typical": 1,
"tfs": 0.87,
"rep_pen_slope": 0.3,
"sampler_order": [
6,
5,
0,
2,
3,
1,
4
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 0.8,
"rep_pen": 1.15,
"rep_pen_range": 2048,
"top_p": 0.9,
"top_a": 0,
"top_k": 100,
"typical": 1,
"tfs": 1,
"rep_pen_slope": 3.4,
"sampler_order": [
6,
5,
0,
2,
3,
1,
4
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 0.51,
"rep_pen": 1.2,
"rep_pen_range": 2048,
"top_p": 1,
"top_a": 0,
"top_k": 0,
"typical": 1,
"tfs": 0.99,
"rep_pen_slope": 0,
"sampler_order": [
6,
5,
0,
2,
3,
1,
4
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 0,
"rep_pen": 1.18,
"rep_pen_range": 2048,
"top_p": 0,
"top_a": 0,
"top_k": 1,
"typical": 1,
"tfs": 1,
"rep_pen_slope": 0,
"sampler_order": [
6,
0,
1,
3,
4,
2,
5
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 0.63,
"rep_pen": 1.05,
"rep_pen_range": 2048,
"top_p": 0.98,
"top_a": 0,
"top_k": 0,
"typical": 1,
"tfs": 0.98,
"rep_pen_slope": 0.1,
"sampler_order": [
6,
2,
0,
3,
5,
1,
4
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 0.7,
"rep_pen": 1.1,
"rep_pen_range": 1024,
"top_p": 0.5,
"top_a": 0.75,
"top_k": 0,
"typical": 0.19,
"tfs": 0.97,
"rep_pen_slope": 0.7,
"sampler_order": [
6,
5,
4,
3,
2,
1,
0
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 0.7,
"rep_pen": 1.1,
"rep_pen_range": 1024,
"top_p": 1,
"top_a": 0,
"top_k": 0,
"typical": 1,
"tfs": 0.9,
"rep_pen_slope": 0.7,
"sampler_order": [
6,
0,
1,
2,
3,
4,
5
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 0.66,
"rep_pen": 1.1,
"rep_pen_range": 1024,
"top_p": 1,
"top_a": 0.96,
"top_k": 0,
"typical": 0.6,
"tfs": 1,
"rep_pen_slope": 0.7,
"sampler_order": [
6,
4,
5,
1,
0,
2,
3
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 0.94,
"rep_pen": 1.05,
"rep_pen_range": 2048,
"top_p": 1,
"top_a": 0,
"top_k": 12,
"typical": 1,
"tfs": 0.94,
"rep_pen_slope": 0.2,
"sampler_order": [
6,
5,
0,
2,
3,
1,
4
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 1.5,
"rep_pen": 1.1,
"rep_pen_range": 2048,
"top_p": 0.24,
"top_a": 0,
"top_k": 85,
"typical": 1,
"tfs": 1,
"rep_pen_slope": 0,
"sampler_order": [
6,
5,
0,
2,
3,
1,
4
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 1.05,
"rep_pen": 1.1,
"rep_pen_range": 1024,
"top_p": 0.95,
"top_a": 0,
"top_k": 0,
"typical": 1,
"tfs": 1,
"rep_pen_slope": 0.7,
"sampler_order": [
6,
0,
1,
2,
3,
4,
5
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 1.06,
"rep_pen": 1,
"rep_pen_range": 0,
"top_p": 1,
"top_a": 0,
"top_k": 0,
"typical": 1,
"tfs": 1,
"rep_pen_slope": 0.9,
"sampler_order": [
6,
0,
1,
3,
4,
2,
5
],
"mirostat": 2,
"mirostat_tau": 9.61,
"mirostat_eta": 1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 1.17,
"rep_pen": 1,
"rep_pen_range": 0,
"top_p": 1,
"top_a": 0,
"top_k": 0,
"typical": 1,
"tfs": 1,
"rep_pen_slope": 0.9,
"sampler_order": [
6,
0,
1,
3,
4,
2,
5
],
"mirostat": 2,
"mirostat_tau": 9.91,
"mirostat_eta": 1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 1.17,
"rep_pen": 1,
"rep_pen_range": 0,
"top_p": 1,
"top_a": 0,
"top_k": 0,
"typical": 1,
"tfs": 1,
"rep_pen_slope": 0.9,
"sampler_order": [
6,
0,
1,
3,
4,
2,
5
],
"mirostat": 2,
"mirostat_tau": 9.62,
"mirostat_eta": 1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 1.07,
"rep_pen": 1.05,
"rep_pen_range": 404,
"top_p": 1,
"top_a": 0,
"top_k": 100,
"typical": 1,
"tfs": 0.93,
"rep_pen_slope": 0.8,
"sampler_order": [
6,
0,
5,
3,
2,
1,
4
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 0.44,
"rep_pen": 1.15,
"rep_pen_range": 2048,
"top_p": 1,
"top_a": 0,
"top_k": 0,
"typical": 1,
"tfs": 0.9,
"rep_pen_slope": 6.8,
"sampler_order": [
6,
5,
0,
2,
3,
1,
4
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 1.35,
"rep_pen": 1.15,
"rep_pen_range": 2048,
"top_p": 1,
"top_a": 0,
"top_k": 0,
"typical": 1,
"tfs": 0.69,
"rep_pen_slope": 0.1,
"sampler_order": [
6,
3,
2,
5,
0,
1,
4
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 1,
"rep_pen": 1.1,
"rep_pen_range": 600,
"top_p": 0.95,
"top_a": 0,
"top_k": 0,
"typical": 1,
"tfs": 1,
"rep_pen_slope": 0,
"sampler_order": [
6,
0,
1,
2,
3,
4,
5
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 1.31,
"rep_pen": 1.09,
"rep_pen_range": 2048,
"top_p": 0.29,
"top_a": 0,
"top_k": 72,
"typical": 1,
"tfs": 1,
"rep_pen_slope": 0,
"sampler_order": [
6,
0,
1,
3,
4,
2,
5
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 0.72,
"rep_pen": 1.1,
"rep_pen_range": 2048,
"top_p": 0.73,
"top_a": 0,
"top_k": 0,
"typical": 1,
"tfs": 1,
"rep_pen_slope": 0.2,
"sampler_order": [
6,
5,
0,
2,
3,
1,
4
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 0.7,
"rep_pen": 1.15,
"rep_pen_range": 2048,
"top_p": 1,
"top_a": 0.2,
"top_k": 0,
"typical": 1,
"tfs": 0.95,
"rep_pen_slope": 0,
"sampler_order": [
6,
0,
1,
3,
4,
2,
5
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 1.01,
"rep_pen": 1.21,
"rep_pen_range": 2048,
"top_p": 0.21,
"top_a": 0.75,
"top_k": 91,
"typical": 1,
"tfs": 1,
"rep_pen_slope": 0,
"sampler_order": [
6,
0,
1,
3,
4,
2,
5
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,26 +0,0 @@
{
"temp": 1.5,
"rep_pen": 1,
"rep_pen_range": 600,
"top_p": 1,
"min_p": 0.1,
"top_a": 0,
"top_k": 0,
"typical": 1,
"tfs": 1,
"rep_pen_slope": 0,
"sampler_order": [
5,
6,
0,
1,
2,
3,
4
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"use_default_badwordsids": false,
"grammar": ""
}
@@ -1,26 +0,0 @@
{
"temp": 1.25,
"rep_pen": 1,
"rep_pen_range": 600,
"top_p": 1,
"min_p": 0.1,
"top_a": 0,
"top_k": 0,
"typical": 1,
"tfs": 1,
"rep_pen_slope": 0,
"sampler_order": [
5,
6,
0,
1,
2,
3,
4
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"use_default_badwordsids": false,
"grammar": ""
}
@@ -1,26 +0,0 @@
{
"temp": 2,
"rep_pen": 1,
"rep_pen_range": 600,
"top_p": 1,
"min_p": 0.1,
"top_a": 0,
"top_k": 0,
"typical": 1,
"tfs": 1,
"rep_pen_slope": 0,
"sampler_order": [
5,
6,
0,
1,
2,
3,
4
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"use_default_badwordsids": false,
"grammar": ""
}
@@ -1,24 +0,0 @@
{
"temp": 0.65,
"rep_pen": 1.18,
"rep_pen_range": 2048,
"top_p": 0.47,
"top_a": 0,
"top_k": 42,
"typical": 1,
"tfs": 1,
"rep_pen_slope": 0,
"sampler_order": [
6,
0,
1,
3,
4,
2,
5
],
"mirostat": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"grammar": ""
}
@@ -1,20 +0,0 @@
{
"order": [5, 0, 1, 3],
"temperature": 1.16,
"max_length": 150,
"min_length": 1,
"top_k": 175,
"typical_p": 0.96,
"tail_free_sampling": 0.994,
"repetition_penalty": 1.68,
"repetition_penalty_range": 2240,
"repetition_penalty_slope": 1.5,
"repetition_penalty_frequency": 0,
"repetition_penalty_presence": 0.005,
"use_cache": false,
"return_full_text": false,
"prefix": "vanilla",
"cfg_scale": 1,
"phrase_rep_pen": "medium",
"max_context": 7800
}
@@ -1,19 +0,0 @@
{
"order": [6, 0, 1, 2, 3],
"temperature": 1,
"max_length": 150,
"min_length": 1,
"top_k": 25,
"top_p": 1,
"tail_free_sampling": 0.925,
"repetition_penalty": 1.6,
"repetition_penalty_frequency": 0.001,
"repetition_penalty_range": 0,
"repetition_penalty_presence": 0,
"use_cache": false,
"return_full_text": false,
"prefix": "vanilla",
"phrase_rep_pen": "medium",
"cfg_scale": 1.55,
"max_context": 7800
}
@@ -1,20 +0,0 @@
{
"order": [6, 2, 3, 1, 0],
"temperature": 1,
"max_length": 150,
"min_length": 1,
"top_k": 0,
"top_p": 0.96,
"tail_free_sampling": 0.96,
"repetition_penalty": 2,
"repetition_penalty_slope": 1,
"repetition_penalty_frequency": 0.02,
"repetition_penalty_range": 0,
"repetition_penalty_presence": 0.3,
"use_cache": false,
"return_full_text": false,
"prefix": "vanilla",
"phrase_rep_pen": "very_aggressive",
"cfg_scale": 1.3,
"max_context": 7800
}
@@ -1,21 +0,0 @@
{
"order": [2, 3, 0, 4, 1],
"temperature": 1.35,
"max_length": 150,
"min_length": 1,
"top_k": 15,
"top_p": 0.85,
"top_a": 0.1,
"tail_free_sampling": 0.915,
"repetition_penalty": 2.8,
"repetition_penalty_range": 2048,
"repetition_penalty_slope": 0.02,
"repetition_penalty_frequency": 0.02,
"repetition_penalty_presence": 0,
"use_cache": false,
"return_full_text": false,
"prefix": "vanilla",
"cfg_scale": 1,
"phrase_rep_pen": "aggressive",
"max_context": 7800
}
@@ -1,20 +0,0 @@
{
"order": [8, 6, 5, 0, 3],
"temperature": 0.9,
"max_length": 150,
"min_length": 1,
"typical_p": 0.95,
"tail_free_sampling": 0.92,
"mirostat_lr": 0.22,
"mirostat_tau": 4.95,
"repetition_penalty": 3,
"repetition_penalty_range": 4000,
"repetition_penalty_frequency": 0,
"repetition_penalty_presence": 0,
"use_cache": false,
"return_full_text": false,
"prefix": "vanilla",
"phrase_rep_pen": "off",
"cfg_scale": 1.48,
"max_context": 7800
}
@@ -1,21 +0,0 @@
{
"order": [4, 0, 5, 3, 2],
"temperature": 1.09,
"max_length": 150,
"min_length": 1,
"top_p": 0.969,
"top_a": 0.09,
"typical_p": 0.99,
"tail_free_sampling": 0.969,
"repetition_penalty": 1.09,
"repetition_penalty_range": 8192,
"repetition_penalty_slope": 0.069,
"repetition_penalty_frequency": 0.006,
"repetition_penalty_presence": 0.009,
"use_cache": false,
"return_full_text": false,
"prefix": "vanilla",
"cfg_scale": 1,
"phrase_rep_pen": "very_light",
"max_context": 7800
}
@@ -1,22 +0,0 @@
{
"order": [0, 1, 2, 3],
"temperature": 1,
"max_length": 40,
"min_length": 1,
"top_k": 25,
"top_p": 1,
"top_a": 0,
"typical_p": 1,
"tail_free_sampling": 0.925,
"repetition_penalty": 1.9,
"repetition_penalty_range": 768,
"repetition_penalty_slope": 3.33,
"repetition_penalty_frequency": 0.0025,
"repetition_penalty_presence": 0.001,
"use_cache": false,
"return_full_text": false,
"prefix": "vanilla",
"cfg_scale": 1,
"phrase_rep_pen": "very_light",
"max_context": 7800
}
@@ -1,20 +0,0 @@
{
"order": [0, 1, 2, 3],
"temperature": 1,
"max_length": 150,
"min_length": 1,
"top_k": 25,
"top_p": 1,
"tail_free_sampling": 0.925,
"repetition_penalty": 1.9,
"repetition_penalty_range": 768,
"repetition_penalty_slope": 1,
"repetition_penalty_frequency": 0.0025,
"repetition_penalty_presence": 0.001,
"use_cache": false,
"return_full_text": false,
"prefix": "vanilla",
"cfg_scale": 1,
"phrase_rep_pen": "off",
"max_context": 7800
}
@@ -1,20 +0,0 @@
{
"order": [6, 0, 8, 5, 3],
"temperature": 1.5,
"max_length": 150,
"min_length": 1,
"typical_p": 0.95,
"tail_free_sampling": 0.95,
"mirostat_lr": 0.2,
"mirostat_tau": 5.5,
"repetition_penalty": 1,
"repetition_penalty_range": 1632,
"repetition_penalty_frequency": 0,
"repetition_penalty_presence": 0,
"use_cache": false,
"return_full_text": false,
"prefix": "vanilla",
"phrase_rep_pen": "very_aggressive",
"cfg_scale": 1.4,
"max_context": 7800
}
@@ -1,22 +0,0 @@
{
"order": [4, 5, 0, 3],
"temperature": 1.18,
"max_length": 40,
"min_length": 1,
"top_a": 0.022,
"top_k": 0,
"top_p": 1,
"typical_p": 0.9,
"tail_free_sampling": 0.956,
"repetition_penalty": 1.25,
"repetition_penalty_range": 4096,
"repetition_penalty_slope": 0.9,
"repetition_penalty_frequency": 0,
"repetition_penalty_presence": 0,
"use_cache": false,
"return_full_text": false,
"prefix": "vanilla",
"cfg_scale": 1,
"phrase_rep_pen": "very_light",
"max_context": 7800
}

Some files were not shown because too many files have changed in this diff Show More