Commit Graph

210 Commits

Author SHA1 Message Date
f4eb32c71c Merge pull request #3760 from SillyTavern/feat/expressions-none-default-option
Add 'none' expression classifier API option and set as default
2025-03-26 11:10:13 +02:00
b96bed7240 chore: make layer updates exportable 2025-03-25 20:09:48 -05:00
cbfc1f7a0e Add 'none' classifier API option and set as default
Introduces a no-op API selection to disable expression classification
Shows warnings when no valid API is selected to prevent silent failures
Updates migration logic and settings UI to use new default value

This allows users to explicitly opt-out of automatic expression detection
while maintaining backwards compatibility with existing configurations
2025-03-26 01:50:26 +01:00
d70c346b12 Expression API on new install defaults to 'local' 2025-03-25 05:17:06 +01:00
6bfa54e9b4 Merge pull request #3725 from SillyTavern/feat/expressions-filter-available
Adds filtering to expressions to ignore labels that do not have sprites available
2025-03-19 19:18:02 +02:00
f5ecd1fa5f Reduce warning level to debug 2025-03-19 19:15:07 +02:00
2e936e804a Fix default value for filter argument 2025-03-19 10:17:08 +01:00
d5d3516e18 Merge pull request #3724 from SillyTavern/fix/expressions-upload-new
Fix not being able to upload sprite when no sprite existed for an expression
2025-03-19 09:51:45 +02:00
a8899f7d81 Clean reasoning from classify response
- If a reasoning model is used (via LLM, or R1 distill via webLLM), it'll likely return reasoning. That should not be used for the search of classification inside the response
2025-03-19 03:30:53 +01:00
5a6058d319 Adds sprite-based filtering for expressions
- Functionality only available for LLM/webLLM
- New toggle to filter expressions on availalbe sprites
- `getExpressionsList` filters cached expressions when checked (using sprite folder name/override)
- `/expression-list` slash command has "filter" arg to filter list
- `/expression-classify` slash command has "filter" arg now, to use filtered list for classification
- `getExpressionLabel` uses filtered expressions when LLM/webLLM
2025-03-19 03:06:50 +01:00
0be952b9a0 Fix sprite upload on empty expression
- When no sprite was defined before, it falsely tried to derive the filename from the existing filename when "allow multiple" was not enabled. It now correctly just utilizes the expression name, not relying on filename anymore.
2025-03-19 02:17:17 +01:00
5585220d0a Fix Expression Override not resetting if empty
- When switching chars, override field gets correctly loaded. The display value won't be reset when the override was empty. This was likely unintended.
2025-03-17 23:23:58 +01:00
1aae08be5b Fix char A/N and expressions folder for first in the list 2025-02-28 09:12:22 +00:00
3cf4be8e85 Remove unused import 2025-02-22 20:12:19 +02:00
f2cac8e7f7 Revert "Return fallback expression if no group message found" 2025-02-22 20:02:34 +02:00
d21b0f1b5e Add default fallback expression 2025-02-22 13:45:54 +02:00
db988411fd Return fallback expression if no group message found 2025-02-22 13:40:43 +02:00
afbe21b6b4 Make sendExpressionCall exportable
- For compatibility with existing extensions
2025-02-22 01:44:42 +01:00
a7d7b6fb0f Fix group VN updates on switching to chat 2025-02-21 22:05:08 +02:00
cb6adc30ce Fix null confrimation when no custom expressions 2025-02-21 02:05:43 +02:00
bdbcf8623e Fix force set emote in group 2025-02-21 01:46:10 +02:00
e35217e7e3 Fix image loading resolve 2025-02-21 01:32:13 +02:00
aca1cb7f99 Fix first reorder of group VN with reduced motion 2025-02-21 01:19:19 +02:00
07160e0e60 Fix group VN mode not updating on kicking group members 2025-02-21 01:01:30 +02:00
179153ae67 Fix group VN mode with reduced motion 2025-02-21 00:51:17 +02:00
94f53835f4 Forbid custom expressions to be prefixed with defaults 2025-02-21 00:29:05 +02:00
2834681a4b Fix sprite upload replace existing
- Also fix form not resetting on cancel of replace popup
2025-02-20 19:25:20 +01:00
19e2a2f7d2 safety check on upload on sprite name 2025-02-20 19:05:20 +01:00
a58e026a40 Don't show del popup on placeholder sprite 2025-02-20 19:02:29 +01:00
a40f568409 Fix sprite deletion 'no' option 2025-02-20 18:51:44 +01:00
135bf8a55b Add progress toast for sprite ZIP upload 2025-02-20 00:12:40 +02:00
531999dc04 Ensure unique suggested sprite names 2025-02-19 22:12:29 +01:00
58bbfc0d4e Add types for global translation function 2025-02-19 22:18:09 +02:00
c12f26441e Merge branch 'staging' into support-multiple-expressions 2025-02-19 20:22:02 +01:00
e5e931356b Remove forceEnum from char args in slash commands
- This precented people from actually using the characterKey inside the chatbox to go to a character
2025-02-02 03:43:20 +01:00
1ea2134936 Add title tooltip to expression sprites
Closes #2596
2025-02-01 23:43:45 +01:00
fb2ee756dd Update and fix default expressions + emojis
- Move "use default emojis" from its own toggle into the fallback dropdown
- Add "no fallback" to the fallback dropdown
- fix fallback expressions not being consistently used
- Switching fallback will now reroll/reset the relevant expression
- Add html attributes on the expression image
2025-02-01 07:52:04 +01:00
5c30244627 Fix visual novel mode for new expression thingy 2025-02-01 04:46:30 +01:00
198d10e759 Allow setting specific sprites as expressions
- Update /expression-set command to allow setting specific sprites
- Enhance enum completion for /expression-set to show expressions/sprites and more their info
- Fix setting sprite folder reprinting stuff double
- Fix not being able to unset expressions
2025-01-30 02:42:05 +01:00
73393a5d5e yoink talkinghead - goodbye extras dependency 2025-01-30 01:44:27 +01:00
d316d51c0b Rework expression slash commands
- Common naming schema for slash commands, all starting with the name of the expression - moved the original names to aliases
- Make char name optional for /expression-last if not in group chat
- Removed legacy 'format' argument handling from /expression-classify
- Fixed /expression-upload to the new backend call, added optional 'spriteName' argument
2025-01-27 23:48:37 +01:00
84a8a2bc2b Fix expression sprite sorting, fade additional
- Sort alphabetically, but keep the main expression file first
- Fade additional sprite images if "allow multiple" is not chosen
2025-01-27 23:01:29 +01:00
3d6f48786d Refactor expression popups to modern popup 2025-01-27 21:57:40 +01:00
65ad79adce Fix expression delete 2025-01-27 21:50:13 +01:00
ef127df623 Update sprite delete call 2025-01-27 08:33:14 +01:00
3282c9426c Upload expressions update 2025-01-27 05:39:51 +01:00
239c3f1db7 Add settings for multiple expressions 2025-01-26 23:11:22 +01:00
adede8b6be Roll on the sprite to use for an expression 2025-01-26 19:12:37 +01:00
a072951102 Update backend returned sprites list 2025-01-26 00:15:46 +01:00
126e4fa698 Display additional images in expression list
- Update Expressions List to display additional images per expression
- Make additional images appear visually distinct
- Fix small issues with custom labels not always being shown
- Add tooltip on all expression images
- Modify /api/sprites/get endpoint to correctly parse the label from filenames that might be additional files
2025-01-08 01:20:25 +01:00