1265 Commits

Author SHA1 Message Date
Cohee
9197ed7fce Fix connection profile for CC setting incorrect source by preset 2024-09-19 23:12:33 +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
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
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
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
Cohee
1c421cc117 Await GENERATION_STARTED event 2024-09-08 19:19:18 +03:00
Cohee
3bf801aeee Don't trigger "Send" to continue if pending file attachments
Fixes #2763
2024-09-08 19:15:50 +03:00
Cohee
0db9bc6591 Fix attachments being sent on irregular generation types
Fixes #2763
2024-09-08 18:11:38 +03:00
Wolfsblvt
22d2b7d2a2 Add slash commands for checkpoints and branch 2024-09-08 03:28:54 +02:00
Wolfsblvt
4ba99412af Refactor args for context/instruct select 2024-09-08 01:00:50 +02:00
Wolfsblvt
6c0ecdef69 Refactor move bookmark functionality 2024-09-08 00:34:03 +02:00
Wolfsblvt
6c94297724 Expand checkpoint tooltip to contain name 2024-09-08 00:20:56 +02:00
Cohee
38751d4fe2 Replace details view toggle with a button 2024-09-08 01:19:52 +03:00
Wolfsblvt
6a4ba1344f Remove legacy bookmark messages 2024-09-07 23:55:45 +02:00
Wolfsblvt
f5d164302b Remove double flags for bookmarks
- Remove the double flag if a checkpoint exists
- Add the "replace checkpoint" functionality as a Shift+Click option to the checkpoint flag
2024-09-07 23:55:34 +02:00
Wolfsblvt
7952b5f2c9 Handle aborting status check gracefully 2024-09-07 23:27:46 +02:00
Cohee
669c49ebba Merge branch 'staging' into connection-manager 2024-09-07 23:23:26 +03:00
Cohee
97a2c4b2c7 Add quiet arg to /context 2024-09-07 21:40:21 +03:00
Cohee
10ddf77948 Await for profiles loading before continuing 2024-09-07 21:33:31 +03:00
Cohee
42b1a368cb Fix instruct toggle commands not working 2024-09-06 23:27:42 +03:00
Cohee
3bea7d4885 Add /instruct-state command 2024-09-06 23:16:11 +03:00
Cohee
c68b344b60 Add quiet args to /instruct and /model 2024-09-06 23:09:06 +03:00
Cohee
3e3597673b Less horrible charListGrid load 2024-09-05 21:22:54 +03:00