Commit Graph

49 Commits

Author SHA1 Message Date
Cohee 909ec4191d Allow JS syntax in instruct activation regex 2024-05-17 01:14:07 +03:00
kingbri 96506947cb Messages + Instruct: Fix /send with name= if name is empty
If name is empty, don't try appending it to the message. This applies
for both instruct and non-instruct modes.

Signed-off-by: kingbri <bdashore3@proton.me>
2024-05-05 20:35:03 -04:00
Cohee 0faa7d3c75 Replace {{name}} macro in system prompt prefix 2024-04-18 23:15:24 +03:00
Cohee 6d65d47f00 Fix macro not being subbed in example separators for instruct 2024-04-09 11:24:16 +03:00
Cohee 0391ef63d6 Fix bottom text of the comment 2024-04-09 10:20:59 +03:00
Wolfsblvt 845409a239 Add a main {{systemPrompt}} macro 2024-04-08 20:05:59 +02:00
Wolfsblvt 5df454640f Fix forced persona name not being added to examples 2024-04-07 01:57:59 +02:00
Cohee 6cc73c2a0b Add instruct last system sequence 2024-04-04 22:27:08 +03:00
Cohee 422b9e1b63 Fix sequences to stop strings if missing values 2024-04-02 18:34:29 +03:00
Cohee d7817d1882 Set default newline suffix if wrap is enabled and there's no suffix in instruct template 2024-04-02 01:24:36 +03:00
Cohee 6aa97c73e9 Fix example dialogue formatting with block header 2024-03-31 21:27:13 +03:00
Cohee b0fb50aef6 Fix example dialogue separator being skipped in instruct mode 2024-03-31 10:30:06 +03:00
Cohee e99d37d549 Remove extraneous newlines when formatting quiet prompts 2024-03-30 15:54:42 +02:00
Cohee 06e15e6d5f L + skill issue + bad copypaste 2024-03-30 12:00:10 +02:00
Cohee 3c733b3243 New instruct macros 2024-03-28 23:12:33 +02:00
Cohee fcdd90cec4 Adjust last prompt line of quite gens 2024-03-28 21:51:02 +02:00
Cohee 310acfe810 Use new instruct sequences in prompt formatting 2024-03-28 00:52:20 +02:00
Cohee 8b7b32a141 (WIP) Add new instruct mode sequences. Deprecates separator sequence.
1. Separate suffixes for all roles
2. System message sequences
3. User alignment message
2024-03-27 23:40:10 +02:00
Cohee 1ff0e89529 Fix continue and bias spacing inconsistencies 2024-03-23 17:51:53 +02:00
Cohee da6545e615 Add {{name}} macro for instruct sequences. Resolves to an actual name behind the message (useful for group chats). When can't be determined, defaults to "System". 2024-03-12 23:26:45 +02:00
Cohee b9392893dc [FEATURE_REQUEST] Option to toggle disable instruct formatting for example dialogue insertion #1881 2024-03-03 19:12:20 +02:00
Cohee b8445eb2cd Add slash commands for instruct and context 2024-01-18 17:24:07 +02:00
Cohee 4fe13fab8e Customizable /gen instruct name 2024-01-12 19:16:42 +02:00
Cohee bddccd0356 Missed several context bind cases 2023-12-21 17:19:42 +02:00
Cohee dd661cf879 Instruct "Bind to context" is now an option 2023-12-21 15:12:30 +02:00
Cohee c63cd87cc0 lint: Require semicolons 2023-12-02 21:11:06 +02:00
valadaptive a37f874e38 Require single quotes 2023-12-02 13:04:51 -05:00
Cohee a2f293b6af Make context stop strings togglable 2023-12-01 23:06:37 +02:00
Cohee 69659e79e3 Add chat start and example separator as stop sequences 2023-12-01 19:01:06 +02:00
Cohee fb08552d46 Add instruct mode sequence macros 2023-11-26 16:37:05 +02:00
Cohee 1bf6d6d9f2 Don't trim the end of instruct last prompt line if newline wrap mode is disabled 2023-10-24 16:02:24 +03:00
Cohee 4c39a32be1 Don't reset instruct preset when toggling instruct mode 2023-09-28 21:59:03 +03:00
Stefan Daniel Schwarz 1d7165c047 context template preset manager 2023-08-26 12:09:47 +02:00
Stefan Daniel Schwarz 3e0ce12b23 first_output_sequence and system_sequence_prefix 2023-08-25 22:34:08 +02:00
Stefan Daniel Schwarz ddaa4fe409 force output sequence (first or last) 2023-08-25 22:02:11 +02:00
Stefan Daniel Schwarz ca37ac679e Improved Advanced Formatting UI 2023-08-25 21:04:06 +02:00
Stefan Daniel Schwarz be3ebcda0d improved instruct mode sequences (WIP) 2023-08-25 14:01:25 +02:00
Stefan Daniel Schwarz 4b389eba61 no eol separator after replaced sys prompt 2023-08-24 20:30:24 +02:00
Stefan Daniel Schwarz 56a6398189 system prompt in system sequence 2023-08-24 19:33:04 +02:00
Cohee 4038e7f9e3 #999 Instruct mode fixes 2023-08-24 02:22:37 +03:00
Cohee 17925423ae
Merge pull request #999 from StefanDanielSchwarz/roleplay-context
Return of the Roleplay Context
2023-08-24 00:29:05 +03:00
Stefan Daniel Schwarz 7cafa5d374 improved preset selection logic 2023-08-23 22:22:52 +02:00
Stefan Daniel Schwarz 8938ea1d72 auto select presets 2023-08-23 20:17:45 +02:00
Cohee 2c2a68ef76 Fix instruct system sequence missing + {{original}} 2023-08-23 18:04:22 +03:00
Cohee 9deaec5877 More typechecks and comments 2023-08-22 14:30:49 +03:00
Cohee 724e789509 Don't auto-enable instruct mode on regex match 2023-08-21 01:28:58 +03:00
Cohee 897ad28477 Apply preset manager for instruct presets 2023-08-21 00:56:53 +03:00
Cohee 8bb59a9e22 Merge branch 'staging' of https://github.com/SillyTavern/SillyTavern into staging 2023-08-20 23:33:26 +03:00
Cohee 6738ffe2a4 Add auto-select for instruct presets. Re-organize instruct mode code. Prepare for preset manager integration 2023-08-20 23:29:43 +03:00