Commit Graph

331 Commits

Author SHA1 Message Date
Cohee 529c461318 Fix ban EOS token 2023-09-04 01:51:14 +03:00
Cohee 2bef2d602e
Merge pull request #1087 from majick/tau-goes-up-to-11
So it turns out Tau isn't capped at 10.
2023-09-03 21:01:17 +03:00
Cohee 3e1815f599 Fix [BUG] Card sorting is broken #1069 2023-09-03 18:52:04 +03:00
majick d4688d22d3 So it turns out Tau isn't capped at 10.
Bumped it for 20 for textgen and kobold, because there's no theoretical
limit as far as the math is concerned.  I have no idea what the Novel
API can take, though.
2023-09-03 08:15:48 -07:00
Cohee 802149380d Evenize template dropdowns 2023-09-03 02:06:05 +03:00
Cohee 1e24d97fd8 Better layout for user settings on small screens 2023-09-03 02:00:51 +03:00
Cohee aebf173720 Fix instruct mode being too cool for tiny phone screens 2023-09-03 01:52:34 +03:00
Cohee 69b085e911 Remove ♦ 2023-09-03 01:44:12 +03:00
Cohee 4e366a8e9e Fix extensions menu 2023-09-02 18:32:33 +03:00
Cohee 2d933f835c Move toasts to top center 2023-09-02 18:32:15 +03:00
Cohee 37eb074652 Fix maxlength on instruct stop sequence 2023-09-02 16:39:31 +03:00
rbmj 6c097560ca
goodbye axios (#1073)
* goodbye axios

* Rewrite error handling for OpenAI

* Increase instruct sequence length limit

* Buttons markup

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2023-09-01 19:00:32 +03:00
Cohee 1f10acdf17 Slight refactor Kobold version flags 2023-09-01 01:07:04 +03:00
Cohee 019c47adc6 #1068 Display token counts on generated messages 2023-08-31 17:10:01 +03:00
Cohee 5057aab739
Solid snacke/release (#1067)
Finished a little translation into Russian. Draft.

---------

Co-authored-by: SolidSnacke <solid.snacke@bk.ru>
2023-08-31 12:45:45 +03:00
city-unit 4ff3b337e2 Same as above, close button 2023-08-30 20:09:01 -04:00
Cohee 194278d171 Merge branch 'staging' into feature/exorcism 2023-08-31 00:42:34 +03:00
RossAscends b190035224 Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into staging 2023-08-31 04:27:19 +09:00
RossAscends 100ba3e89b quickfix: mobile AdvFormat Preset Selector Width 2023-08-31 04:27:18 +09:00
Cohee 10148167ba Option to disable group impersonation ban. Hide CFG for simple UI 2023-08-30 16:31:53 +03:00
city-unit 165d4b3b75 Merge branch 'staging' of https://github.com/city-unit/SillyTavern into feature/exorcism 2023-08-30 00:12:00 -04:00
city-unit de5bc45060 Much closer 2023-08-29 22:44:09 -04:00
Cohee 6a028cc828 Fix double <hr> render in certain cases 2023-08-29 21:31:58 +03:00
Cohee 2b768cc151 Simple UI mode for WI menu 2023-08-29 21:26:57 +03:00
Cohee 02c4ee12c4 Add context unlock to simple mode 2023-08-29 19:41:42 +03:00
Cohee 1ddd5d971a Simple mode for API settings 2023-08-29 19:37:50 +03:00
Cohee 44f88c61ff Add simplified UI switch 2023-08-29 18:04:10 +03:00
Cohee 030424d034 Add char to persona converter. Move persona functions to a separate script file 2023-08-29 01:54:11 +03:00
Cohee 9ce8aa661f Deprecate "After Char" position for persona description 2023-08-29 00:10:18 +03:00
Cohee ae8dbcc6d0 Add robots.txt 2023-08-28 21:12:39 +03:00
city-unit 79448f5fe7 Getting there, but it's not great. 2023-08-28 00:49:20 -04:00
Cohee 3b4e6f0b78 Add debug functions menu 2023-08-27 23:20:43 +03:00
Cohee 96512c178e More readable no connection color. 2023-08-27 22:38:42 +03:00
Cohee 0844374de5 Remove old GPT-2 tokenizer. Redirect to tiktoken's tokenizer 2023-08-27 22:14:39 +03:00
Cohee 636c06ffdd Autosize prompt manager boxes 2023-08-27 21:28:13 +03:00
Cohee 9660aaa2c2 Add NovelAI hypebot plugin 2023-08-27 18:27:34 +03:00
Cohee 57985eb08e Fix hint for "Add names" 2023-08-27 13:16:42 +03:00
Cohee 0714e190de Unrestrict budget cap step 2023-08-26 21:29:54 +03:00
Cohee 9d166db4ee Set rep pen range unlocked for bigger max context 2023-08-26 21:27:37 +03:00
Stefan Daniel Schwarz 3509e6b1d4 default context preset cannot be deleted 2023-08-26 14:52:23 +02:00
Stefan Daniel Schwarz 7ab857be46 quick fix for misplaced index.html </div> tag 2023-08-26 12:22:35 +02:00
Stefan Daniel Schwarz 1d7165c047 context template preset manager 2023-08-26 12:09:47 +02:00
Cohee 44661d0e2b Merge branch 'staging' into generate-array 2023-08-26 01:07:19 +03:00
SDS 45046aa211
Merge branch 'staging' into improved-instruct-mode-sequences 2023-08-25 23:06:44 +02:00
Cohee aae269704a Adjust Custom stopping strings header 2023-08-25 23:36:37 +03:00
Stefan Daniel Schwarz 3e0ce12b23 first_output_sequence and system_sequence_prefix 2023-08-25 22:34:08 +02:00
Stefan Daniel Schwarz ca37ac679e Improved Advanced Formatting UI 2023-08-25 21:04:06 +02:00
Cohee 12f1cdb3fd #1020 Fix summarize + prompt manager. Clarify naming for insertion position. 2023-08-25 20:03:31 +03:00
Cohee e34e51226f Add monkey patch for structured Clone 2023-08-25 16:40:43 +03:00
Cohee 91d13efcef #1018 Round Typical P to 3rd decimal for Novel 2023-08-25 15:38:07 +03:00
Stefan Daniel Schwarz be3ebcda0d improved instruct mode sequences (WIP) 2023-08-25 14:01:25 +02:00
Cohee 3c0d7d8feb Return old minmax values for font scale 2023-08-25 01:30:56 +03:00
Cohee 14d94d9108 Merge branch 'staging' of https://github.com/SillyTavern/SillyTavern into staging 2023-08-24 20:20:03 +03:00
Cohee ab52af4fb5 Add support for Koboldcpp tokenization endpoint 2023-08-24 20:19:57 +03:00
Cohee d4bd91f6ec Merge branch 'staging' of http://github.com/cohee1207/SillyTavern into staging 2023-08-24 18:32:46 +03:00
Cohee 7010e05f8e Sync bottom form height with the font size 2023-08-24 18:32:42 +03:00
Cohee f5fd15ffd2 #976 Return "Continue on send". Allow continuing the first chat message. Add debug function for i18n. 2023-08-24 15:13:04 +03:00
Cohee 4aa31fcba9 Add fallback option for OpenRouter 2023-08-24 03:21:17 +03:00
Cohee e2507e8840 #976 Add "quick continue" button. Remove "send to continue" option. 2023-08-24 01:37:44 +03:00
maver 0e378d93b2 Make quick edit fields static 2023-08-22 20:37:37 +02:00
Cohee 042c0b84a1 Add a token counter for persona descriptions 2023-08-22 18:32:18 +03:00
based ba925f388c added more options to the scale request 2023-08-22 21:29:18 +10:00
based 06902279a9 merge 2023-08-22 21:17:18 +10:00
Cohee 2615eb8532 Extract system message templates to template files 2023-08-22 10:37:18 +03:00
Cohee 92686d4ba8 Optimize WI editor header. Add entries search 2023-08-22 01:51:31 +03:00
Cohee e228a9d6fc
Merge pull request #993 from StefanDanielSchwarz/Instruct-Mode-improvements
Instruct Mode improvements
2023-08-22 00:15:59 +03:00
RossAscends c24dd5b3cd unify 'rename X' icons 2023-08-22 06:06:50 +09:00
Stefan Daniel Schwarz 9df4c51b07 Instruct Mode improvements 2023-08-21 22:32:58 +02:00
Cohee 069a07a139 Add pagination for WI entries #964 2023-08-21 21:10:11 +03:00
Cohee 2a2ab00b55 Rearrange context formatting blocks 2023-08-21 17:10:42 +03:00
Cohee 05d719107f Move total token counter. Tighten the UI 2023-08-21 17:00:28 +03:00
Cohee c735bf546a Add token counters for individual fields. Optimize total counter display 2023-08-21 15:32:27 +03:00
Cohee 897ad28477 Apply preset manager for instruct presets 2023-08-21 00:56:53 +03:00
Cohee 8bb59a9e22 Merge branch 'staging' of https://github.com/SillyTavern/SillyTavern into staging 2023-08-20 23:33:26 +03:00
Cohee 6738ffe2a4 Add auto-select for instruct presets. Re-organize instruct mode code. Prepare for preset manager integration 2023-08-20 23:29:43 +03:00
Cohee 013a0a56b4
Merge pull request #983 from StefanDanielSchwarz/simple-proxy-for-tavern-replacement-enhanced
Simple proxy for tavern replacement enhanced
2023-08-20 23:27:33 +03:00
Cohee be6fedd626 Simplify Claude prefill code 2023-08-20 19:26:49 +03:00
Cohee a27bef8b12 Merge branch 'staging' into qolfeatures 2023-08-20 18:47:43 +03:00
Stefan Daniel Schwarz 2fb86c8ebd Added Persona Description and System Prompt to Story String 2023-08-20 16:08:54 +02:00
based 7ecc0295dc scale cookie method 2023-08-20 20:55:37 +10:00
Cohee 106f7afdcb Slight performance increase for opening large World Infos 2023-08-20 13:15:02 +03:00
Cohee 7528a3828a
Merge pull request #978 from 50h100a/mancer-url-ui 2023-08-20 11:33:15 +03:00
Cohee d3efc90886
Merge pull request #975 from StefanDanielSchwarz/roleplay-preset-newlines 2023-08-20 11:29:38 +03:00
RossAscends 334dcc7454 WIP splitting of style.css 5.6k --> 3.5k lines 2023-08-20 15:49:27 +09:00
50h100a 8dca75f6c3 single-URL ui for mancer.
automatically produce streaming URL from blocking URL.
2023-08-20 00:33:00 -04:00
Stefan Daniel Schwarz 357b765897 roleplay preset newlines 2023-08-20 01:03:34 +02:00
RossAscends 93cb3bfee3 Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into staging 2023-08-20 03:39:30 +09:00
RossAscends 16888a007f unify import/export icons 2023-08-20 03:39:28 +09:00
Cohee aef78c6d99 Fix group candidates search. Fix tag exclusion filter display 2023-08-19 21:08:35 +03:00
based e0de442523 Merge branch 'staging' of https://github.com/Cohee1207/SillyTavern into qolfeatures 2023-08-20 03:22:54 +10:00
Cohee1207 06c7b8d7d6 [WIP] Add UI for auto-select instruct 2023-08-19 20:18:39 +03:00
based ce40780ed1 Added option to exclude assistant prefix to Claude prompt (for jailbreaks already appending Assistant:) 2023-08-20 03:09:50 +10:00
Cohee1207 771c9d6165 Optimize SVG loader. Add ai21 icon 2023-08-19 19:48:33 +03:00
based 0d694dcc32 Added power user option to remove examples 2023-08-20 02:25:07 +10:00
Cohee 438c78574f
Merge pull request #971 from kingbased/jurassic
AI21 Adapter
2023-08-19 18:48:15 +03:00
based 0f21eabb6e AI21 Adapter + Tokenization implementation 2023-08-20 01:20:42 +10:00
Cohee1207 336e27a92d Move 3rd-party scripts into /lib 2023-08-19 16:29:46 +03:00
Cohee1207 991ff98eaa Performance optimizations for character edit / chat opening 2023-08-19 15:58:17 +03:00
city-unit 8581ef14dd Add search filtering for past chats 2023-08-18 23:48:08 -04:00
Cohee f27107e0ef Refactor and optimize group members display 2023-08-19 02:53:05 +03:00
Cohee 602c5cd791 Add pagination for characters list view 2023-08-18 23:13:15 +03:00
RossAscends a0ed362591 move char panel token counter to desc box 2023-08-18 22:47:43 +09:00
RossAscends 0c5c8c50ad half-fix for small boxes in mobile no spoiler view 2023-08-18 22:45:40 +09:00
Cohee c24f636a10 Add Last output sequence setting for instruct mode 2023-08-17 23:33:27 +03:00
Cohee 80092b3170 #790 Simplify local prompt formatting. Use handlebars to render story string. 2023-08-17 22:47:34 +03:00
Cohee a9a929afaf Fix HTML template oddity 2023-08-17 13:10:44 +03:00
Cohee 0b412033ba Streamline and simply Novel logit bias. Make it a part of preset 2023-08-17 13:05:22 +03:00
Mike Weldon 722801bb50 Add logit biases for NovelAI 2023-08-16 22:14:04 -07:00
Cohee 1f2394cada Apply preset manager for NovelAI 2023-08-16 21:43:38 +03:00
Cohee 81ed4d8431 Reorderable samplers for Novel 2023-08-16 20:34:47 +03:00
Mike Weldon feb523bd01 NovelAI Kayra 1.1 update
* Updated some presets and added Cosmic Cube
* Change defaults for NovelAI to select Clio on cold start
* Automatically change the preset to an appropriate default whenever you change the model
* Removed deprecated Top G sampler
2023-08-15 18:52:29 -07:00
Cohee fa35e1185e Merge branch 'release' into staging 2023-08-15 21:51:08 +03:00
Cohee 8470acda41 Add English language option 2023-08-15 21:47:49 +03:00
Cohee eb81c4807a Add UI locale selector 2023-08-15 21:37:56 +03:00
Cohee 869478627d Add UI locale selector 2023-08-15 21:32:17 +03:00
Cohee 57b9a94c17 Add banned tokens for Novel 2023-08-15 15:51:14 +03:00
Cohee 706be4390d Add new Claude instant model 2023-08-15 14:57:11 +03:00
Cohee e1ea448236
Merge pull request #939 from SillyTavern/hotfix-prompt-manager 2023-08-15 09:51:14 +03:00
Mike Weldon b0cce17638 Minor string changes to match NAI UX 2023-08-14 19:43:05 -07:00
Mike Weldon 41ec7e5600 Many NovelAI fixes from dev guidance
* Remove AI Module "Autoselect" and make the auto-instruct work for all modules. This is how NAI is supposed to work.
* Log the response from the API.
* Move the AI Module setting up to the top of the settings window since it isn't part of the preset.
* Refactor phrase_rep_pen to use the actual API strings.
* Clamp the maximum token length to 150 before we call the API.
* Clamp the minimum token length in the UX from 1 to 150.
* Fix bug where the preamble was not initialized on cold start.
* Get rid of extra newline before dinkus.
* Make always_force_name2 default true.
2023-08-14 19:35:21 -07:00
maver 2bb8fa5ea1 Update quick edit textareas when prompt manager re-renders 2023-08-15 01:20:42 +02:00
Cohee 9f49a2612c Return option to close chat to menu 2023-08-15 00:10:48 +03:00
Cohee 238b667262 Merge branch 'staging' of https://github.com/SillyLossy/TavernAI into staging 2023-08-14 22:19:17 +03:00
Cohee 3850e6b50a Replace object stores for Chroma and token cache 2023-08-14 22:19:14 +03:00
maver 151a13eefa Fix formatting 2023-08-14 20:35:45 +02:00
maver 033dc45ab9 Move quick edit ui identifiers into configuration 2023-08-14 20:29:01 +02:00
maver 6caa8a4765 Add nsfw prompt to quick edit drawer 2023-08-14 20:28:57 +02:00
Cohee 8c759e87cf Better UI control for phrase rep pen 2023-08-14 19:00:36 +03:00
Cohee ce03921df4 Move CFG block for ooba higher 2023-08-14 13:10:44 +03:00
Cohee 32eb877fdb Add native presetable CFG scale for ooba 2023-08-14 13:06:20 +03:00
Cohee 7107813b6e Move prompt manager down to ease mobile scrolling 2023-08-14 12:45:20 +03:00
Cohee d395d3d8e6 Add peek proxy password btn 2023-08-14 12:01:06 +03:00
city-unit f528791c4f Merge branch 'staging' of https://github.com/city-unit/SillyTavern into feature/ui 2023-08-13 18:46:37 -04:00
city-unit ad04344392 Api/Model icon option 2023-08-13 18:43:16 -04:00
SDS 33a32d0380
Set TextGen temperature slider min value to 0.0
When updating the TextGen preset, I noticed the slider not going to the true minimum, so I fixed that as well. Same as [#825](https://github.com/SillyTavern/SillyTavern/issues/825) for KoboldAI.
2023-08-13 20:11:02 +02:00
Cohee c0bc425c8b Debounce manager changes 2023-08-13 18:43:17 +03:00
Cohee 9b8d069e3b Apply CFG extension for Novel 2023-08-13 15:38:07 +03:00
Cohee 9615495878
Merge pull request #768 from SillyTavern/prompt-manager-cherrypicked
Feature: Prompt manager (cherrypicked onto stage)
2023-08-13 14:44:28 +03:00
Cohee dd21091807 Selectable NovelAI module 2023-08-12 21:26:51 +03:00
Cohee 166ab4dbab Move assistant prefill to quick edit 2023-08-12 18:40:39 +02:00
Cohee 5f43121e15 Expand quick edits rows 2023-08-12 18:40:39 +02:00
maver db8624cefe Move quick edits on top of prompt manager 2023-08-12 18:40:39 +02:00
maver 1b7a1cbc4a Add quick edit drawer and fields for main and jailbreak 2023-08-12 18:40:39 +02:00
maver 6e4689ba39 Add theme tint and blur to prompt manager popup drawer 2023-08-12 18:40:39 +02:00
maver fc44a02323 Set utility prompt text area size to 3 rows 2023-08-12 18:40:39 +02:00
maver 82a11316bc Add continue nudge to editable utility prompts 2023-08-12 18:40:39 +02:00
maver f2227ded9a Move utility prompts in its own, independent dropdown
And merge with existing advanced prompt bits
2023-08-12 18:40:38 +02:00
maver 3cc092a432 Add margin utility classes 2023-08-12 18:40:38 +02:00
maver 9669199408 Allow user to edit new chat, new group chat and new example chat prompts 2023-08-12 18:40:38 +02:00
maver 632fa770be Create a deep copy of prompt defaults on char select
Along other minor fixes and optimizations
2023-08-12 18:40:38 +02:00