SillyTavern/public
kingbri 6b656bf380 Expressions: Classify using LLM
Rather than using a separate BERT model to classify the last message,
use the LLM itself to get the classified expression label as a JSON
and set that as the current sprite. Doing this should take more information
into consideration and cut down on extra processing.

This is made possible by the use of constrained generation with JSON
schemas. Only available to TabbyAPI since it's the only backend that
supports the use of JSON schemas, but there can hopefully be a way
to use this with other backends as well.

Intercepts the generation and sets top_k = 1 (for greedy sampling)
and the json_schema to an emotion enum. Doing this also prevents
reingestion of the entire context every time a message is sent and
then asked to be classified, which doesn't compromise the chat
experience.

Signed-off-by: kingbri <bdashore3@proton.me>
2024-04-12 01:55:16 -04:00
..
KoboldAI Settings Remove old format setting presets 2024-02-02 17:41:46 +02:00
NovelAI Settings Remove old format setting presets 2024-02-02 17:41:46 +02:00
OpenAI Settings Remove old format setting presets 2024-02-02 17:41:46 +02:00
QuickReplies
TextGen Settings Remove DreamGen textgen settings 2024-03-07 17:29:14 +01:00
User Avatars
assets Add vrm assets folders. 2024-01-05 22:28:18 +01:00
backgrounds
characters Add .gitkeeps 2024-03-28 22:36:18 +02:00
chats Add .gitkeeps 2024-03-28 22:36:18 +02:00
context Move context/instruct templates to default context index 2024-03-28 22:54:37 +02:00
css Address styling issues 2024-04-10 12:15:51 +02:00
group chats readme to .gitkeep 2024-03-29 19:52:19 +02:00
groups readme to .gitkeep 2024-03-29 19:52:19 +02:00
img #1994 Add Cohere as a Chat Completion source 2024-04-02 00:20:17 +03:00
instruct Move default instruct/context templates out of public 2024-03-28 22:40:43 +02:00
lib Compatibility with extensions 2024-04-02 20:25:37 +03:00
locales Merge pull request #2066 from sirius422/fix-zh-cn-locales 2024-04-11 19:33:49 +03:00
movingUI
scripts Expressions: Classify using LLM 2024-04-12 01:55:16 -04:00
sounds
themes Add gitkeep to themes 2024-03-30 23:57:49 +02:00
user #1809 Add gitkeep to user 2024-02-10 21:15:59 +02:00
webfonts
worlds
favicon.ico
index.html Merge pull request #2063 from kingbased/goog 2024-04-11 19:49:20 +03:00
jsconfig.json Use Readability to extract text from HTML 2024-02-29 16:37:52 +02:00
manifest.json Add manifest.json for Chrome Android 2023-11-22 19:18:00 +01:00
robots.txt
script.js Clean-up non-character state checks 2024-04-11 23:50:01 +03:00
st-launcher.ico Update st-launcher.ico 2024-04-11 17:12:40 +02:00
st.ico Add New Icon (#2068) 2024-04-11 20:52:57 +03:00
style.css Fix char management dropdown on rectangular avatars 2024-04-10 20:31:38 +03:00