1383 Commits

Author SHA1 Message Date
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
Cohee
59e9fda312 /instruct command: don't return current template name if instruct mode is disabled 2024-09-10 22:20:54 +03:00
Wolfsblvt
894b95679c Merge branch 'staging' into small-bookmark-updates 2024-09-10 19:05:05 +02:00
Cohee
b0214298fd
Merge pull request #2810 from SillyTavern/tabby-models-list
Tabby models list
2024-09-10 00:37:31 +03:00
Cohee
dc3be8afc1 Merge branch 'staging' into tabby-models-list 2024-09-09 22:09:47 +03:00
Cohee
075391e720 Add continue type to not-emit list 2024-09-09 20:46:29 +03:00
Cohee
70450d7867 Emit message events on stream abortion 2024-09-09 20:39:30 +03:00
I
448af33b4d
Update script.js - fixes group chat this_chid being set twice in character edit panel 2024-09-09 00:17:19 -04:00
Cohee
725aff3474 Display API and model used in itemization 2024-09-09 00:26:06 +03:00
Cohee
0c9f2e91eb Merge branch 'staging' into tabby-models-list 2024-09-08 23:53:53 +03:00
Cohee
75e279091c Fix open drawer sizing issues in Firefox 2024-09-08 23:41:26 +03:00
Cohee
42fa3c79d7 Add Tabby model selection 2024-09-08 22:23:25 +03:00