Commit Graph
99 Commits
Author SHA1 Message Date
CoheeandCopilot b0820c4517 Text Completion: Inject Story String @ depth (#4362)
* 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>
2025-08-09 20:33:04 +03:00
Cohee 25e965f717 Instruct: Add Sequences as Stop Strings control (#4355)
* Instruct: Add Sequences as Stop Strings control

* lint fix
2025-08-07 10:27:16 +03:00
Cohee fbb6180bc1 Adjust scoped variable naming, format comments 2025-06-29 18:09:47 +03:00
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
Cohee a927ab557a Check instruct activation regex before selecting bound context template match 2025-04-26 01:47:07 +03:00
Cohee d93aba5706 Fix useStopStrings defaulting 2025-03-27 22:52:01 +02:00
bmen25124 972b1e5fa7 Fixed variable naming, better jsdoc 2025-03-26 23:30:09 +03:00
bmen25124 c5f251c6e3 Added stop string cleanup, better stopping string param 2025-03-26 22:35:10 +03:00
bmen25124 1593951281 Cloned preset before using 2025-03-17 00:00:37 +03:00
bmen25124 0e41db615e New exports 2025-03-16 23:44:02 +03:00
bmen25124 d42a81f97c New connection manager events, ConnectionManagerRequestService (#3603) 2025-03-16 16:58:34 +02:00
Cohee cf63b70997 Fix instruct macro checkbox missing control bindings
Fixes #3643
2025-03-11 01:31:28 +02:00
InspectorCaracal b8fc9f2194 Fix name-inclusion logic check 2024-12-14 15:10:31 -07:00
Cohee a7e8d00145 Use Array.includes 2024-12-14 15:16:43 +02:00
InspectorCaracal 1ef25d6176 fix double-prefixing on example messages 2024-12-13 17:56:06 -07:00
Cohee 3c2e802547 Validate instruct/context existance 2024-11-23 17:44:23 +02:00
Karl-Johan Alm 50ffaeb06a UI: add UI to enable/disable auto-derived templates 2024-11-20 13:28:17 +09:00
Cohee 8c3ac0ac5a Fix instruct macros not using a proper enabled field 2024-11-02 16:34:21 +02:00
Cohee 48c3e81f42 DRY 2024-11-02 13:22:41 +02:00
Cohee 8f373cf1dc Macros: refactor with a single replace point 2024-11-01 21:47:25 +02:00
Cohee c8ef4b02bc Add .git to jsconfig ignore 2024-10-06 19:12:28 +03:00
Cohee b4529e75c6 Don't wrap empty sysprompts in instruct mode 2024-10-01 13:16:55 +03:00
Cohee bcc4914467 Auto-hide instruct sequences in <details> 2024-09-22 19:15:24 +03:00
Cohee bf5b6090eb Remove the concept of default context and instruct. Swap columns 2024-09-21 22:37:15 +03:00
Cohee e122dd2d7a Merge branch 'staging' into sysprompt-divorce 2024-09-21 02:11:42 +03:00
pandoraandCohee 125498cfd5 Fixing Mistral Templates (#2883)
* Update Mistral.json

* Rename Mistral.json to Mistral V1.json

* Create Mistral V2 & V3.json

* Create Mistral V3-Tekken.json

* Update and rename Mistral.json to Mistral V1.json

* Update Mistral V1.json

* Update Mistral V2 & V3.json

* Update Mistral V2 & V3.json

* Update Mistral V3-Tekken.json

* Update Mistral V1.json

* Create Mistral V2 & V3.json

* Create Mistral V3-Tekken.json

* Update Mistral V1.json

* Update Mistral V2 & V3.json

* Update Mistral V3-Tekken.json

* Update Mistral V1.json

* Update Mistral V2 & V3.json

* Update Mistral V3-Tekken.json

* Update Mistral V1.json

* Update Mistral V2 & V3.json

* Update Mistral V1.json

* Update Mistral V3-Tekken.json

* Update Mistral V1.json

* Update Mistral V2 & V3.json

* Update Mistral V3-Tekken.json

* Add to content index

* Remove example separators

* Simplify context fillers

* Add a hack for proper V1 format with names

* Readability

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-09-21 01:56:02 +03:00
Cohee 912bebeb01 Remove deprecated control property 2024-09-17 11:41:23 +00:00
Cohee b377a2b7d3 Decouple system prompts from instruct mode 2024-09-17 10:37:36 +00:00
Cohee ca4d3c5ffe Refactor instruct names behavior controls (#2837)
* 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
2024-09-16 00:46:03 +03:00
Wolfsblvt 4ba99412af Refactor args for context/instruct select 2024-09-08 01:00:50 +02:00
Cohee 97a2c4b2c7 Add quiet arg to /context 2024-09-07 21:40:21 +03:00
Cohee c68b344b60 Add quiet args to /instruct and /model 2024-09-06 23:09:06 +03:00
khanon 21cdf49322 fixes single-line inputs and textboxes squished when saving 2024-09-06 01:30:50 +00:00
Cohee e335b62b0b Remove CSS height set on system sequences 2024-09-05 20:20:42 +03:00
Cohee 733bb84044 Fix "system as user" toggle 2024-09-05 20:16:58 +03:00
Cohee dec85c42f7 These should be function calls 2024-09-05 20:07:37 +03:00
Cohee ac0c33eb76 Use CSS.supports to determine auto-fit validity 2024-09-05 20:00:45 +03:00
RossAscends 8e1dad6800 initial reversion commit 2024-09-06 01:48:21 +09:00
Cohee 4cfce43e5d Set min-height for contenteditable 2024-09-04 13:46:54 +03:00
Cohee 830df41380 Update Advanced Formatting verbiage 2024-09-03 22:59:41 +03:00
Cohee be03772c52 Fix instruct_system_same_as_user disabled mode heights 2024-09-01 19:45:09 +03:00
Cohee 016e3df564 Code clean-up 2024-09-01 18:08:03 +03:00
Cohee 882e86be11 Code clean-up 2024-09-01 18:05:48 +03:00
RossAscends 93bfe7f40b buttonify instruct header toggles, style instruct columns when disabled 2024-09-01 19:51:30 +09:00
RossAscends 2f36b659cf dumbfix heights of disabled instruct system sequence fields 2024-09-01 17:41:48 +09:00
RossAscends a764e2d6bf AF panel 3column reshuffle, autoComplete to UserSettings, collaspify Auto* settings 2024-08-06 00:39:17 +09:00
RossAscends b48d905c45 initial commit: AF panel textareas >> contentEditable divs 2024-08-05 14:30:15 +09:00
RossAscends 64e716bb62 async for resetScrollHeight, slightly faster WI/AF panel loads 2024-08-05 12:03:46 +09:00
Cohee 39c63dc78b Add user first and last prefixes for instruct 2024-07-26 23:10:09 +03:00
Cohee 974f142f24 Replace {{name}} macros in instruct suffixes 2024-07-13 00:16:31 +03:00