Files
SillyTavern/public/scripts
kallewoofandCohee 1b2976ae1d feature: customizable mappings for presets per model name / chat template (#4153)
* feature: customizable mappings for presets per chat template

This adds the ability to assign custom context/instruct presets on a per-chat-template(-hash) basis. Users using custom templates may use this feature to auto-enable the preset of their choice, rather than the built-in defaults.

* fix: do not use chat tempate based instruct preset derivation if a preset was auto-selected already

This fixes issues where regex matched presets are overridden.

* reset chat template hash on connect

* handle derive_mappings being null

* unorthodox eslint requirement adherence

* button styling

* un-nest derivation related properties

* Migrate setting

* add bind model to preset button to the miscellaneous section

* switch to unified button for model preset mappings

* fix bind UI

* eslint

* do not include koboldcpp/ggml-model-xxx.gguf in preset saving

* review fixes

* stray console.log / eslint

* Update checkbox state if no model map exists

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-06-29 18:04:00 +03:00
..
2025-06-11 21:26:19 +03:00
2025-02-12 12:00:31 +02:00
2025-06-07 14:10:35 +03:00
2025-06-03 00:11:06 +03:00
2025-05-29 11:56:59 +02:00
2025-06-11 21:26:19 +03:00
2025-06-09 23:35:10 +03:00
2025-01-23 02:52:52 +02:00
2025-01-30 22:00:46 +02:00
2025-01-11 23:18:03 +02:00
2025-05-29 11:56:59 +02:00
2025-06-11 21:26:19 +03:00
2025-06-03 00:11:06 +03:00
2025-03-14 20:15:04 +02:00
2025-06-02 23:57:11 +03:00
2025-05-29 11:56:59 +02:00
2025-05-17 16:50:02 +03:00
2025-06-16 08:28:06 +00:00