* TC/AF: Add Story String position
* Update public/scripts/power-user.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Add before/after anchors as story string params
* Move autofix story string at settings load
* Substitute in story string wrappers
* Only add an auto-newline after story string if wrap is enabled
* Do not init names_force_groups with default value
* Update default settings
* Auto-delete obsolete fields from instruct templates
* Update default templates
* Remove newline from GLM-4 prefix
* Format as one line
* Remove auto-fix leftovers from renderStoryString
* Remove pointless reassignments in autoFixMissingField
* Update KoboldAI template
* Add info hint for Story String sequences
* Update default templates
* Reformat extractMessageFromData
* Fix condition in autoFixStoryString
* Update tooltip text for Story String Sequences
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* 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>
* Refactor instruct names behavior controls
Closes#2819
* Remove current persona from force names
* Don't add current user name in groups
* Revert to old text
* Add titles to names behavior
* Proper default for names_behavior