Commit Graph

8777 Commits

Author SHA1 Message Date
Cohee
cbeb7ddcec Update persona upload methods to fetch 2025-01-30 02:30:51 +02:00
Wolfsblvt
3d817352ec Add rename personas functionality 2025-01-30 01:17:43 +01:00
Wolfsblvt
f9324c74cd Streamline persona toasts, infos and states
- Added "info" block to persona description panel to show when a temporary persona is in use. Hide the long text behind a tooltip
- Reduce toast spam even further, not showing toasts when persona panel is open
- Restyle connection state buttons a bit
- Designed common 'info-block' utility to show markdown-like info blocks, with CSS styling
2025-01-30 00:50:48 +01:00
Wolfsblvt
e5db40cf2d Add persona connection states to persona list
- Show persona connection/lock states in persona list (chat & char lock)
- Refactor persona images url to 'data-avatar-id' attribute
- Try make persona blocks' height consistent
- Fix persona list not correctly updating selected persona on navigating pages
- Fix group/char difference not correctly working
- Create common style template for hover-able images buttons/tags where the label only appears on hover
2025-01-29 22:54:22 +01:00
Wolfsblvt
2344d98e20 Move persona buttons to right panel
- Move all buttons from the persona list to the right panel, to the already existing ones
- Common CSS class/style for '.buttons_block'
- Common CSS style for a red button
- Refactored a few persona buttons' functionalities
2025-01-28 20:53:55 +01:00
Wolfsblvt
6081b9f0ce Merge branch 'staging' into persona-improvements 2025-01-28 18:57:20 +01:00
Cohee
0c9b301a57 Prevent ephemeral message extra changes vanish upon swiping 2025-01-28 15:39:09 +00:00
Cohee
3a8a329b0f Merge pull request #3373 from braxton-p/fix-newlines-skip_tags-regex
Fix tts.skip_tags's regex to match newlines
2025-01-28 09:50:51 +02:00
Small Eggs
145136059e Fix tts.skip_tags's regex to match newlines
The extension_settings.tts.skip_tags setting is meant to skip sending
tags and their content to the TTS API provider. The original regular
expression matched content inside tags with ".*?". Unfortunately,
Javascript's engine does *not* match newlines on the "." without the /s
flag.

The /s flag was added in ES2018. To be more compatible, the regex
has been changed to "[\s\S]+?". This gives similar performance (instead
of using capture groups) and matches all content within a tag, as the
original regex intended.
2025-01-27 17:43:24 -08:00
Cohee
3b8fd6f62f Merge pull request #3345 from SillyTavern/woo-yeah
Better reasoning
2025-01-27 22:09:32 +02:00
Cohee
abe240397d Set assistant role to bias in CC
#3366
2025-01-27 22:01:44 +02:00
Cohee
8b5e0df2d7 Refactor reasoning placeholder clean-up 2025-01-27 21:56:15 +02:00
Cohee
2b919d0cf2 Merge pull request #3367 from witten/patch-1
Update docker command in README to actually run the container
2025-01-27 21:39:43 +02:00
Dan Helfman
a03193b2f7 Change docker create to run so it actually runs the container. 2025-01-27 11:08:08 -08:00
Cohee
a5a8f6057b Merge branch 'staging' into woo-yeah 2025-01-27 20:56:04 +02:00
Cohee
fd1fdc6466 Fix fitting class resetting after picking BG 2025-01-27 17:48:50 +00:00
Wolfsblvt
913509f887 Don't look at this 2025-01-26 22:27:59 +01:00
Wolfsblvt
1f116d9afe Reduce persona toast spam 2025-01-26 22:13:32 +01:00
Wolfsblvt
2cfb9e8dab Fix lock icon state on auto-lock to chat 2025-01-26 20:50:10 +01:00
Cohee
8448d6c6e6 Merge branch 'staging' into persona-improvements 2025-01-26 21:18:51 +02:00
Cohee
9f54adbeb4 Comment dupe default persona button 2025-01-26 21:18:38 +02:00
Cohee
6d43eea1bd Merge pull request #3361 from SillyTavern/write-fallback-img
Use default avatar if imported image is corrupted
2025-01-26 20:36:14 +02:00
Cohee
312969462e Fix AICC website reference 2025-01-26 20:35:24 +02:00
Cohee
999da4945a Fix error log 2025-01-26 20:29:04 +02:00
Cohee
bf294aa684 Merge pull request #3360 from SillyTavern/group-member-version
Add char version to group panel member names
2025-01-26 20:22:27 +02:00
Cohee
a58476d079 Clip long version strings 2025-01-26 20:15:32 +02:00
Cohee
65e32f720d Use default avatar if imported image is corrupted 2025-01-26 19:58:37 +02:00
Wolfsblvt
35ab677ff1 Add char version to group panel member names
- Follows the same style as version in char list
- Respects the chosen "auxiliary field" setting

Closes #3359
2025-01-26 18:44:12 +01:00
Cohee
bfedf20db5 Add reasoning tokens to token count. 2025-01-26 18:29:31 +02:00
Cohee
a7516937f7 Add reasoning slash commands 2025-01-26 18:00:14 +02:00
Cohee
a42337ad0a Use 'localhost' as a fallback for hostname 2025-01-26 16:50:59 +02:00
Cohee
c9ab987658 Fix default thonk separator 2025-01-26 16:48:04 +02:00
Cohee
eb798fa4f1 Move reasoning-specific code into its own module 2025-01-26 16:47:13 +02:00
Cohee
17d4175b47 Functional reasoning edit 2025-01-26 05:14:17 +02:00
Cohee
45d4d1bb3e [wip] Open reasoning editor 2025-01-26 02:49:10 +02:00
Cohee
8fc880b69b Early stopping if prompt reasoning limit reached 2025-01-26 02:07:50 +02:00
Cohee
30426d21e7 Merge branch 'staging' into woo-yeah 2025-01-26 01:57:36 +02:00
Cohee
9aac5a22f1 Defer middleware HTML file reads 2025-01-26 01:46:30 +02:00
Cohee
96143177ce Fix logit bias for DeepSeek on OpenRouter 2025-01-26 01:42:08 +02:00
Cohee
c9a1a3eb94 Merge pull request #3351 from SillyTavern/csrf-sync
Replace CSRF middleware
2025-01-25 23:23:43 +02:00
Cohee
44ade6ad64 Customize CSRF token error message 2025-01-25 23:20:26 +02:00
Cohee
44ad69ceca Merge pull request #3342 from Spappz/staging
Allow customisation of the 403 page
2025-01-25 23:00:23 +02:00
Wolfsblvt
f78bf5e46f Add "StartDev.bat" placeholder to .gitignore 2025-01-25 21:45:55 +01:00
Cohee
94ed548353 Formatting setting to send reasoning back to the model
Supersedes #3352
2025-01-25 22:41:08 +02:00
Spappz
6099ffece1 No exceptions on missing error webpages
- Create a `safeReadFileSync()` function in `src/utils.js` to wrap around `fs.readFileSync()`
- Migrate error-webpage loads to use `safeReadFileSync()`, with default values of an empty string
- Move the 404 error middleware to explicitly only be called *after* extensions are registered
2025-01-25 20:29:31 +00:00
Cohee
347a515c25 Thonk yeet 2025-01-25 21:38:57 +02:00
Spappz
9e54070c1d Revert path/posix to path in post-install.js 2025-01-25 19:38:01 +00:00
Wolfsblvt
9a79c6b1a4 Remove all connections button for the popups 2025-01-25 19:54:45 +01:00
Wolfsblvt
3fc4207cdb Temporary persona toast respects setting 2025-01-25 19:27:29 +01:00
Wolfsblvt
ef73ab43da Fix "Default" persona connection tooltip 2025-01-25 19:25:42 +01:00