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
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
Cohee
2d8da60ffc
Fix types for session
2025-01-25 19:13:25 +02:00
Cohee
5ff402aabf
Replace CSRF middleware
...
Closes #3349
2025-01-25 16:56:11 +02:00
Spappz
e07faea874
rework createDefaultFiles()
...
Reorganised copy-able `default/` files as a sparse copy of the production file-tree. This should save the `defaultItems` (formerly `files`) array from getting unwieldy.
2025-01-25 03:45:16 +00:00
Spappz
a5dc505e61
add 404 error-handling to server
...
This is all that seems necessary according to Express? Admittedly my first time using it.
https://expressjs.com/en/starter/faq.html#how-do-i-handle-404-responses
2025-01-25 03:42:04 +00:00
Spappz
538d66191e
add 401 error page for basicAuth
mode
...
Most modern browsers don't actually show users 401 responses, but it doesn't hurt to have it in there anyway ¯\_(ツ)_/¯
2025-01-25 03:40:47 +00:00
Spappz
928487985d
defer 403 HTML to file
2025-01-25 03:38:52 +00:00
Cohee
9d73189133
Add updateMessageBlock and appendMediaToMessage to getContext
2025-01-25 00:38:13 +02:00
Cohee
536d4218c2
Update button class
2025-01-25 00:33:07 +02:00
Cohee
e3885c2b5c
Combine functions
2025-01-25 00:29:55 +02:00
Cohee
9250be348d
Split if condition
2025-01-25 00:28:16 +02:00
Cohee
8d35ca90e1
Decrease block size
2025-01-25 00:12:48 +02:00
Cohee
24c16f622f
Update styles for mes_reasoning
2025-01-24 23:56:16 +02:00
Cohee
9a2968d1eb
Merge branch 'staging' into woo-yeah
2025-01-24 23:50:15 +02:00
Cohee
0937f44f39
Validate avatar_url field with a middleware ( #3314 )
...
* Validate avatar_url field with a middleware
* Fix validating wrong endpoint
2025-01-24 23:47:32 +02:00
Spappz
075368b5ae
Ensure Handlebars template is only compiled once
2025-01-24 19:56:19 +00:00
Spappz
90459116e3
woohoo
2025-01-24 03:39:05 +00:00