Commit Graph

1294 Commits

Author SHA1 Message Date
Cohee
5fa574b851 Alt.greetings br0ke 2024-09-28 02:03:11 +03:00
Cohee
3b27c90a19 Don't allow empty stop strings 2024-09-27 21:08:28 +03:00
Cohee
735fe49a84 Fix magic wand 2024-09-27 09:41:59 +03:00
Cohee
ff56cb9c2e
Merge pull request #2903 from SillyTavern/extensions-slash-commands
Slash commands to manage Extensions
2024-09-27 01:23:07 +03:00
Cohee
75308bfe7f
Alt greetings restyle (#2902)
* Slight QoL restyle of alternate greetings
* Update to new popup
* Add visible labels to buttons
2024-09-26 23:56:38 +03:00
Cohee
c4462cc8bb Add Erato preamble token 2024-09-26 07:56:32 +00:00
Wolfsblvt
9fbcb12210 Fix third party extension findings + enum provider
- Allow extension names without the "third-party/" prefix
- Expand enum provider to show what third-party extensions are
2024-09-25 23:33:00 +02:00
Wolfsblvt
169504aa68 Refactor extension slash commands into own file
- Weird circle imports again with the slash command classes
2024-09-25 23:18:37 +02:00
Wolfsblvt
ff989b3352 Move extensions init to function 2024-09-25 21:58:46 +02:00
Cohee
8c39e20ed9 Merge branch 'staging' into deprecate-cc-or-instruct 2024-09-24 21:19:03 +03:00
Cohee
182756fcb2
Erato (#2896)
* Erato
erato
2024-09-24 03:10:31 +03:00
Cohee
5b4d524bc0 Fix TC sysprompt leaking into CC prompts 2024-09-23 16:42:40 +00:00
Cohee
7dd8229df6 Return GENERATION_STARTED to original location. Add GENERATION_AFTER_COMMANDS 2024-09-23 10:07:50 +03:00
Cohee
3812e3bdcb Merge branch 'staging' into sysprompt-divorce 2024-09-22 19:56:29 +03:00
Cohee
a18dae8f69 Remove "include newlines" checkbox from context formatting settings 2024-09-22 19:55:43 +03:00
Cohee
9d0ffc2d0d Merge branch 'staging' into sysprompt-divorce 2024-09-22 18:42:19 +03:00
Cohee
93bf87b035 Shut tokenization errors if not using ooba
Closes #2849
2024-09-22 17:44:19 +03:00
Cohee
ba52ceb979 Add GENERATION_ENTERED event 2024-09-22 15:19:17 +03:00
Cohee
1864b7d868 Merge branch 'staging' into sysprompt-divorce 2024-09-22 12:35:28 +03:00
Cohee
94977e71ff Merge OpenAI init functions 2024-09-22 12:29:32 +03:00
Cohee
9206e6d948 Await locales initialzation 2024-09-22 12:22:50 +03:00
Cohee
ade6ef8af8 Better customized sysprompt migration 2024-09-22 12:20:07 +03:00
Cohee
462b2ea7b2 Fix sysprompt dependency on instruct 2024-09-20 21:27:04 +03:00
Cohee
1dd3be9479 Use init function 2024-09-19 23:59:58 +03:00
Cohee
d0657161a1 Merge branch 'staging' into sysprompt-divorce 2024-09-19 23:14:40 +03:00
Cohee
9197ed7fce Fix connection profile for CC setting incorrect source by preset 2024-09-19 23:12:33 +03:00
Cohee
0d294c5371 Merge branch 'staging' into sysprompt-divorce 2024-09-19 22:59:53 +03:00
ceruleandeep
a2d9526cdf Minimal support for importing chat histories in Chub format
Fix crasher in script.js:displayChats if user has directly put a Chub chat file into their user data

Let eslint tidy a few things
2024-09-19 14:20:05 +10:00
Cohee
0f2daede51 Merge branch 'staging' into sysprompt-divorce 2024-09-18 23:40:46 +03:00
Cohee
dcbaa0787d
Merge pull request #2863 from SillyTavern/unify-user-avatar
Unify default user avatars
2024-09-17 21:47:37 +03:00
Cohee
8546f498bf Emit GENERATION_STARTED after processing commands 2024-09-17 13:55:10 +00:00
Cohee
b377a2b7d3 Decouple system prompts from instruct mode 2024-09-17 10:37:36 +00:00
Cohee
8ec509c777 Unify default user avatars
Closes #2862
2024-09-16 22:08:40 +03:00
Cohee
05df2be047 Trim renamed chat name 2024-09-16 16:19:54 +00:00
Cohee
3e2b892aae Sanitize file names on chat renaming 2024-09-16 11:02:09 +00:00
Cohee
08f2b73ab8
Preserve neutral chat on reloading with commands (#2848)
* Preserve neutral chat on reloading

* Restore neutral on deleting character with bulk
2024-09-16 00:38:41 +03:00
Cohee
30af741c3e Deprecated forced instruct on OpenRouter for Chat Completion 2024-09-15 10:54:12 +03:00
Cohee
2478e17164 Remove legacy API for Aphrodite 2024-09-15 08:05:53 +03:00
Cohee
1fe4a230fe Record tokenizer to itemized prompts. 2024-09-14 22:05:59 +03:00
RossAscends
b376ea884b
Markdown hotkeys for textareas (#2800)
* initial commit

* dont hijack all ctrl keybinds

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

* better early return, hotkey reversiblility

* possible undo solution, key checks to switch

* execCommand alternate, perfect Undo

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

* double backticks do nothing, dummy.

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

* remove console logs

* Add new hotkeys to help

* Allow hotkeys in message edit textarea

* add markdown hotkey help text

* help text addition to mention hotkeys work in message edits

* add markdown hotkeys to WI entry content box

* disengage if alt/win pressed, universal prevent default

* disengage if shiftKey pressed

* re-allow shift for one special case

* add MD hotkeys toggle in user settings

* add markdown enabled icon on relevant textareas when appropriate

* Add icon to help

* Uniform formatting

* Add opacity to icon

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-09-14 14:16:26 +03:00
Cohee
917a994ca8 Merge branch 'staging' into small-bookmark-updates 2024-09-13 21:10:12 +03:00
Cohee
d99a5eba2a Remove empty message looping 2024-09-13 20:52:34 +03:00
Cohee
6d79cc015a Add OpenAI o1 2024-09-13 19:44:12 +03:00
Cohee
8dd7a97eb3 Prevent duplicate toasts 2024-09-13 11:22:12 +00:00
Cohee
0aede54cf1 Fix throw on /gen 2024-09-13 11:10:24 +00:00
Wolfsblvt
f5b68893d0 Improve error handling of /genraw and /gen
- /generate TC backend returns more status/error texts
- Fix /genraw and /gen returning null/undefined
- Logging errors on /genraw if backend throws an error
- Fixes #2836
2024-09-12 22:41:53 +02:00
Cohee
d082c2f14d Merge branch 'staging' into small-bookmark-updates 2024-09-12 23:10:33 +03:00
Cohee
1762e8d83f Replace ajax with fetch in character create/edit 2024-09-12 10:43:40 +00:00
Cohee
e0c3ac84a2 Fix alignment of swipe counter 2024-09-11 19:52:31 +03:00
Cohee
ea6fa265c7 /instruct command: add forceGet argument. Document that it enables instruct mode if disabled. 2024-09-10 22:33:00 +03:00