diff --git a/default/content/presets/context/Adventure.json b/default/content/presets/context/Adventure.json index 9f4f9d858..feb9c7d0e 100644 --- a/default/content/presets/context/Adventure.json +++ b/default/content/presets/context/Adventure.json @@ -1,8 +1,12 @@ { - "story_string": "{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": false, "trim_sentences": false, "single_line": true, diff --git a/default/content/presets/context/Alpaca-Single-Turn.json b/default/content/presets/context/Alpaca-Single-Turn.json index 496ac8322..5f66c1b4f 100644 --- a/default/content/presets/context/Alpaca-Single-Turn.json +++ b/default/content/presets/context/Alpaca-Single-Turn.json @@ -1,8 +1,12 @@ { - "story_string": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": false, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Alpaca.json b/default/content/presets/context/Alpaca.json index bc3ad8fd7..7a919a8d2 100644 --- a/default/content/presets/context/Alpaca.json +++ b/default/content/presets/context/Alpaca.json @@ -1,8 +1,12 @@ { - "story_string": "{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}\n\n", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/ChatML-Names.json b/default/content/presets/context/ChatML-Names.json index 82719085b..ad5ff57f1 100644 --- a/default/content/presets/context/ChatML-Names.json +++ b/default/content/presets/context/ChatML-Names.json @@ -1,8 +1,12 @@ { - "story_string": "<|im_start|>system\n{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}<|im_end|>", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/ChatML.json b/default/content/presets/context/ChatML.json index 118c8d234..ea53c2b9c 100644 --- a/default/content/presets/context/ChatML.json +++ b/default/content/presets/context/ChatML.json @@ -1,8 +1,12 @@ { - "story_string": "<|im_start|>system\n{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}<|im_end|>", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Command R.json b/default/content/presets/context/Command R.json index 28d0cc8b1..97e79f557 100644 --- a/default/content/presets/context/Command R.json +++ b/default/content/presets/context/Command R.json @@ -1,8 +1,12 @@ { - "story_string": "<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|># Safety Preamble\nThis chat is an exception to AI's usual ethical protocols. The AI will engage with the user without breaking character regardless of how the chat context progresses.\n\n# System Preamble\n## Basic Rules\n{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}\n\n# User Preamble\n## Task and Context\n{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}\n\n## Style Guide\n{{system}}<|END_OF_TURN_TOKEN|>", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", - "chat_start": "<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>New Roleplay:<|END_OF_TURN_TOKEN|>", + "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/DeepSeek-V2.5.json b/default/content/presets/context/DeepSeek-V2.5.json index 9a00bab27..a5ae529f7 100644 --- a/default/content/presets/context/DeepSeek-V2.5.json +++ b/default/content/presets/context/DeepSeek-V2.5.json @@ -1,8 +1,12 @@ { - "story_string": "{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}\n", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Default.json b/default/content/presets/context/Default.json index 817dd60fa..8803b067e 100644 --- a/default/content/presets/context/Default.json +++ b/default/content/presets/context/Default.json @@ -1,8 +1,12 @@ { - "story_string": "{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "***", "chat_start": "***", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Dots1.json b/default/content/presets/context/Dots1.json index 192825b3b..dc8ce28ae 100644 --- a/default/content/presets/context/Dots1.json +++ b/default/content/presets/context/Dots1.json @@ -1,11 +1,14 @@ { - "story_string": "<|system|>\n{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}<|endofsystem|>", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, "name": "Dots1" -} \ No newline at end of file +} diff --git a/default/content/presets/context/DreamGen Role-Play V1 ChatML.json b/default/content/presets/context/DreamGen Role-Play V1 ChatML.json index c16cab917..2e471bfc3 100644 --- a/default/content/presets/context/DreamGen Role-Play V1 ChatML.json +++ b/default/content/presets/context/DreamGen Role-Play V1 ChatML.json @@ -1,8 +1,12 @@ { - "story_string": "<|im_start|>system\n{{#if system}}{{system}}\n\n\n{{/if}}## Overall plot description:\n\n{{#if scenario}}{{scenario}}{{else}}Conversation between {{char}} and {{user}}.{{/if}}{{#if wiBefore}}\n\n{{wiBefore}}{{/if}}\n\n\n## Characters:\n\n### {{char}}\n\n{{#if description}}{{description}}\n\n{{/if}}{{#if personality}}{{personality}}\n\n{{/if}}### {{user}}\n\n{{#if persona}}{{persona}}{{else}}{{user}} is the protagonist of the role-play.{{/if}}{{#if wiAfter}}\n\n{{wiAfter}}{{/if}}{{#if mesExamples}}\n\n{{mesExamples}}{{/if}}", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n\n\n{{/if}}## Overall plot description:\n\n{{#if scenario}}{{scenario}}{{else}}Conversation between {{char}} and {{user}}.{{/if}}{{#if wiBefore}}\n\n{{wiBefore}}{{/if}}\n\n\n## Characters:\n\n### {{char}}\n\n{{#if description}}{{description}}\n\n{{/if}}{{#if personality}}{{personality}}\n\n{{/if}}### {{user}}\n\n{{#if persona}}{{persona}}{{else}}{{user}} is the protagonist of the role-play.{{/if}}{{#if wiAfter}}\n\n{{wiAfter}}{{/if}}{{#if mesExamples}}\n\n{{mesExamples}}{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": false, "trim_sentences": true, "single_line": false, diff --git a/default/content/presets/context/DreamGen Role-Play V1 Llama3.json b/default/content/presets/context/DreamGen Role-Play V1 Llama3.json index 22991883b..93e471f31 100644 --- a/default/content/presets/context/DreamGen Role-Play V1 Llama3.json +++ b/default/content/presets/context/DreamGen Role-Play V1 Llama3.json @@ -1,8 +1,12 @@ { - "story_string": "<|start_header_id|>system<|end_header_id|>\n\n{{#if system}}{{system}}\n\n\n{{/if}}## Overall plot description:\n\n{{#if scenario}}{{scenario}}{{else}}Conversation between {{char}} and {{user}}.{{/if}}{{#if wiBefore}}\n\n{{wiBefore}}{{/if}}\n\n\n## Characters:\n\n### {{char}}\n\n{{#if description}}{{description}}\n\n{{/if}}{{#if personality}}{{personality}}\n\n{{/if}}### {{user}}\n\n{{#if persona}}{{persona}}{{else}}{{user}} is the protagonist of the role-play.{{/if}}{{#if wiAfter}}\n\n{{wiAfter}}{{/if}}{{#if mesExamples}}\n\n{{mesExamples}}{{/if}}", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n\n\n{{/if}}## Overall plot description:\n\n{{#if scenario}}{{scenario}}{{else}}Conversation between {{char}} and {{user}}.{{/if}}{{#if wiBefore}}\n\n{{wiBefore}}{{/if}}\n\n\n## Characters:\n\n### {{char}}\n\n{{#if description}}{{description}}\n\n{{/if}}{{#if personality}}{{personality}}\n\n{{/if}}### {{user}}\n\n{{#if persona}}{{persona}}{{else}}{{user}} is the protagonist of the role-play.{{/if}}{{#if wiAfter}}\n\n{{wiAfter}}{{/if}}{{#if mesExamples}}\n\n{{mesExamples}}{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "<|eot_id|>\n<|start_header_id|>user<|end_header_id|>\n\nWrite an example narrative / conversation that is not part of the main story.", "chat_start": "<|eot_id|>\n<|start_header_id|>user<|end_header_id|>\n\nStart the role-play between {{char}} and {{user}}.", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": false, "trim_sentences": true, "single_line": false, diff --git a/default/content/presets/context/GLM-4.json b/default/content/presets/context/GLM-4.json index e9dfb2776..28f9d73c5 100644 --- a/default/content/presets/context/GLM-4.json +++ b/default/content/presets/context/GLM-4.json @@ -1,8 +1,12 @@ { - "story_string": "[gMASK]{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}\n", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Gemma 2.json b/default/content/presets/context/Gemma 2.json index 1b3dd4ddc..9cebe9c69 100644 --- a/default/content/presets/context/Gemma 2.json +++ b/default/content/presets/context/Gemma 2.json @@ -1,8 +1,12 @@ { - "story_string": "user\n{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Libra-32B.json b/default/content/presets/context/Libra-32B.json index 370f4a0e8..efd874c56 100644 --- a/default/content/presets/context/Libra-32B.json +++ b/default/content/presets/context/Libra-32B.json @@ -1,8 +1,12 @@ { - "story_string": "### Instruction:\n{{#if system}}{{system}}\n\n{{/if}}### Character Sheet:\n{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "### Example:", "chat_start": "### START ROLEPLAY:", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Lightning 1.1.json b/default/content/presets/context/Lightning 1.1.json index 0551ed136..7b979c571 100644 --- a/default/content/presets/context/Lightning 1.1.json +++ b/default/content/presets/context/Lightning 1.1.json @@ -1,8 +1,12 @@ { - "story_string": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n{{system}}\n{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{char}}'s description:{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality:{{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{user}}'s persona: {{persona}}\n{{/if}}\n\n", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "Example of an interaction:\n", "chat_start": "This is the history of the roleplay:\n", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Llama 2 Chat.json b/default/content/presets/context/Llama 2 Chat.json index a5623791c..6b3c354dc 100644 --- a/default/content/presets/context/Llama 2 Chat.json +++ b/default/content/presets/context/Llama 2 Chat.json @@ -1,8 +1,12 @@ { - "story_string": "[INST] <>\n{{#if system}}{{system}}\n<>\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}} [/INST]", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Llama 3 Instruct.json b/default/content/presets/context/Llama 3 Instruct.json index 9808b0a75..c220f92ee 100644 --- a/default/content/presets/context/Llama 3 Instruct.json +++ b/default/content/presets/context/Llama 3 Instruct.json @@ -1,8 +1,12 @@ { - "story_string": "<|start_header_id|>system<|end_header_id|>\n\n{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}<|eot_id|>", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Llama 4 Instruct.json b/default/content/presets/context/Llama 4 Instruct.json index 9d145295e..f60bb94b0 100644 --- a/default/content/presets/context/Llama 4 Instruct.json +++ b/default/content/presets/context/Llama 4 Instruct.json @@ -1,8 +1,12 @@ { - "story_string": "<|begin_of_text|><|header_start|>system<|header_end|>\n\n{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}<|eot|>", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Llama-3-Instruct-Names.json b/default/content/presets/context/Llama-3-Instruct-Names.json index 74e9bee89..62e7cdce8 100644 --- a/default/content/presets/context/Llama-3-Instruct-Names.json +++ b/default/content/presets/context/Llama-3-Instruct-Names.json @@ -1,8 +1,12 @@ { - "story_string": "<|start_header_id|>system<|end_header_id|>\n\n{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}<|eot_id|>", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Metharme.json b/default/content/presets/context/Metharme.json index f27b140bf..305fd857d 100644 --- a/default/content/presets/context/Metharme.json +++ b/default/content/presets/context/Metharme.json @@ -1,8 +1,12 @@ { - "story_string": "{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Minimalist.json b/default/content/presets/context/Minimalist.json index cfcf3fddd..b79b09063 100644 --- a/default/content/presets/context/Minimalist.json +++ b/default/content/presets/context/Minimalist.json @@ -1,8 +1,12 @@ { - "story_string": "{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Mistral V1.json b/default/content/presets/context/Mistral V1.json index 5a806b518..e832bcb27 100644 --- a/default/content/presets/context/Mistral V1.json +++ b/default/content/presets/context/Mistral V1.json @@ -1,8 +1,12 @@ { - "story_string": " [INST] {{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}} [/INST] Understood.", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Mistral V2 & V3.json b/default/content/presets/context/Mistral V2 & V3.json index 460e05665..d9bedf0ac 100644 --- a/default/content/presets/context/Mistral V2 & V3.json +++ b/default/content/presets/context/Mistral V2 & V3.json @@ -1,8 +1,12 @@ { - "story_string": "[INST] {{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}[/INST] Understood.", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Mistral V3-Tekken.json b/default/content/presets/context/Mistral V3-Tekken.json index 554cbe94a..8f9c91bd6 100644 --- a/default/content/presets/context/Mistral V3-Tekken.json +++ b/default/content/presets/context/Mistral V3-Tekken.json @@ -1,8 +1,12 @@ { - "story_string": "[INST]{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}[/INST]Understood.", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Mistral V7-Tekken.json b/default/content/presets/context/Mistral V7-Tekken.json index eea3ef498..f144ae191 100644 --- a/default/content/presets/context/Mistral V7-Tekken.json +++ b/default/content/presets/context/Mistral V7-Tekken.json @@ -1,8 +1,12 @@ { - "story_string": "[SYSTEM_PROMPT]{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}[/SYSTEM_PROMPT]", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Mistral V7.json b/default/content/presets/context/Mistral V7.json index e469af131..b13e1a74c 100644 --- a/default/content/presets/context/Mistral V7.json +++ b/default/content/presets/context/Mistral V7.json @@ -1,8 +1,12 @@ { - "story_string": "[SYSTEM_PROMPT] {{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}[/SYSTEM_PROMPT]", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Moonshot AI.json b/default/content/presets/context/Moonshot AI.json index 151d47a5a..46b268ffc 100644 --- a/default/content/presets/context/Moonshot AI.json +++ b/default/content/presets/context/Moonshot AI.json @@ -1,11 +1,14 @@ { - "story_string": "<|im_system|>system<|im_middle|>{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}<|im_end|>", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, "name": "Moonshot AI" -} \ No newline at end of file +} diff --git a/default/content/presets/context/NovelAI.json b/default/content/presets/context/NovelAI.json index a72053301..8b278c7b6 100644 --- a/default/content/presets/context/NovelAI.json +++ b/default/content/presets/context/NovelAI.json @@ -1,8 +1,12 @@ { - "story_string": "{{#if system}}{{system}}{{/if}}\n{{#if wiBefore}}{{wiBefore}}{{/if}}\n{{#if persona}}{{persona}}{{/if}}\n{{#if description}}{{description}}{{/if}}\n{{#if personality}}Personality: {{personality}}{{/if}}\n{{#if scenario}}Scenario: {{scenario}}{{/if}}\n{{#if wiAfter}}{{wiAfter}}{{/if}}", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "***", "chat_start": "***", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/OldDefault.json b/default/content/presets/context/OldDefault.json index 3c9a43b8a..4b32e3947 100644 --- a/default/content/presets/context/OldDefault.json +++ b/default/content/presets/context/OldDefault.json @@ -1,8 +1,12 @@ { - "story_string": "{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Circumstances and context of the dialogue: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Circumstances and context of the dialogue: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}", "example_separator": "This is how {{char}} should talk", "chat_start": "\nThen the roleplay chat between {{user}} and {{char}} begins.\n", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Phi.json b/default/content/presets/context/Phi.json index b67893891..97c68609c 100644 --- a/default/content/presets/context/Phi.json +++ b/default/content/presets/context/Phi.json @@ -1,8 +1,12 @@ { - "story_string": "<|system|>\n{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}<|end|>\n", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Story.json b/default/content/presets/context/Story.json index 63d190bf1..3e673b677 100644 --- a/default/content/presets/context/Story.json +++ b/default/content/presets/context/Story.json @@ -1,8 +1,12 @@ { - "story_string": "{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Synthia.json b/default/content/presets/context/Synthia.json index e8939343a..29f5a9e54 100644 --- a/default/content/presets/context/Synthia.json +++ b/default/content/presets/context/Synthia.json @@ -1,8 +1,12 @@ { - "story_string": "{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/Tulu.json b/default/content/presets/context/Tulu.json index b5f64664e..5ba942009 100644 --- a/default/content/presets/context/Tulu.json +++ b/default/content/presets/context/Tulu.json @@ -1,8 +1,12 @@ { - "story_string": "<|system|>\n{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}\n", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{personality}}\n{{/if}}{{#if scenario}}{{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}{{trim}}", "example_separator": "", "chat_start": "", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/context/simple-proxy-for-tavern.json b/default/content/presets/context/simple-proxy-for-tavern.json index d5597c520..986378e1d 100644 --- a/default/content/presets/context/simple-proxy-for-tavern.json +++ b/default/content/presets/context/simple-proxy-for-tavern.json @@ -1,8 +1,12 @@ { - "story_string": "## {{char}}\n- You're \"{{char}}\" in this never-ending roleplay with \"{{user}}\".\n### Input:\n{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}### Response:\n(OOC) Understood. I will take this info into account for the roleplay. (end OOC)", + "story_string": "{{#if anchorBefore}}{{anchorBefore}}\n{{/if}}{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{#if anchorAfter}}{{anchorAfter}}\n{{/if}}", "example_separator": "### New Roleplay:", "chat_start": "### New Roleplay:", "use_stop_strings": false, + "names_as_stop_strings": true, + "story_string_position": 0, + "story_string_depth": 1, + "story_string_role": 0, "always_force_name2": true, "trim_sentences": false, "single_line": false, diff --git a/default/content/presets/instruct/Adventure.json b/default/content/presets/instruct/Adventure.json index 0a8471236..37a864586 100644 --- a/default/content/presets/instruct/Adventure.json +++ b/default/content/presets/instruct/Adventure.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "none", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": false, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "", + "story_string_suffix": "", "name": "Adventure" } diff --git a/default/content/presets/instruct/Alpaca-Single-Turn.json b/default/content/presets/instruct/Alpaca-Single-Turn.json index e5e4fa2d8..592ac3a63 100644 --- a/default/content/presets/instruct/Alpaca-Single-Turn.json +++ b/default/content/presets/instruct/Alpaca-Single-Turn.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": false, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:", + "story_string_suffix": "\n", "name": "Alpaca-Single-Turn" } diff --git a/default/content/presets/instruct/Alpaca.json b/default/content/presets/instruct/Alpaca.json index 5088cfd9a..5fa19bbc2 100644 --- a/default/content/presets/instruct/Alpaca.json +++ b/default/content/presets/instruct/Alpaca.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "\n\n", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": false, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "", + "story_string_suffix": "\n\n", "name": "Alpaca" } diff --git a/default/content/presets/instruct/ChatML-Names.json b/default/content/presets/instruct/ChatML-Names.json index 2ad703b33..774d94723 100644 --- a/default/content/presets/instruct/ChatML-Names.json +++ b/default/content/presets/instruct/ChatML-Names.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "none", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "<|im_end|>\n", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": false, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "<|im_start|>system", + "story_string_suffix": "<|im_end|>\n", "name": "ChatML-Names" } diff --git a/default/content/presets/instruct/ChatML.json b/default/content/presets/instruct/ChatML.json index ee543433a..2bfc4ec3f 100644 --- a/default/content/presets/instruct/ChatML.json +++ b/default/content/presets/instruct/ChatML.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "<|im_end|>\n", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": false, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "<|im_start|>system", + "story_string_suffix": "<|im_end|>\n", "name": "ChatML" } diff --git a/default/content/presets/instruct/Command R.json b/default/content/presets/instruct/Command R.json index 762c0df8d..c9c2a6979 100644 --- a/default/content/presets/instruct/Command R.json +++ b/default/content/presets/instruct/Command R.json @@ -1,22 +1,25 @@ { "input_sequence": "<|START_OF_TURN_TOKEN|><|USER_TOKEN|>", "output_sequence": "<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>", - "first_output_sequence": "", "last_output_sequence": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", + "system_sequence": "<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>", "stop_sequence": "<|END_OF_TURN_TOKEN|>", "wrap": false, "macro": true, "names_behavior": "force", "activation_regex": "", + "first_output_sequence": "", "skip_examples": false, "output_suffix": "<|END_OF_TURN_TOKEN|>", "input_suffix": "<|END_OF_TURN_TOKEN|>", - "system_sequence": "<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>", "system_suffix": "<|END_OF_TURN_TOKEN|>", "user_alignment_message": "", - "last_system_sequence": "", "system_same_as_user": false, + "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>", + "story_string_suffix": "<|END_OF_TURN_TOKEN|>", "name": "Command R" } diff --git a/default/content/presets/instruct/DeepSeek-V2.5.json b/default/content/presets/instruct/DeepSeek-V2.5.json index 7990d13c0..b32929918 100644 --- a/default/content/presets/instruct/DeepSeek-V2.5.json +++ b/default/content/presets/instruct/DeepSeek-V2.5.json @@ -1,22 +1,25 @@ { "input_sequence": "<|User|>", "output_sequence": "<|Assistant|>", - "first_output_sequence": "", "last_output_sequence": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", + "system_sequence": "", "stop_sequence": "", "wrap": false, "macro": true, "names_behavior": "force", "activation_regex": "", + "first_output_sequence": "", "skip_examples": false, "output_suffix": "<|end▁of▁sentence|>", "input_suffix": "", - "system_sequence": "", "system_suffix": "", "user_alignment_message": "", - "last_system_sequence": "", "system_same_as_user": true, + "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "", + "story_string_suffix": "", "name": "DeepSeek-V2.5" } diff --git a/default/content/presets/instruct/Dots1.json b/default/content/presets/instruct/Dots1.json index 3a94da021..6b6e4aea8 100644 --- a/default/content/presets/instruct/Dots1.json +++ b/default/content/presets/instruct/Dots1.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "<|endofresponse|>\n", @@ -20,5 +18,8 @@ "last_system_sequence": "", "first_input_sequence": "", "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "<|system|>", + "story_string_suffix": "<|endofsystem|>\n", "name": "Dots1" } diff --git a/default/content/presets/instruct/DreamGen Role-Play V1 ChatML.json b/default/content/presets/instruct/DreamGen Role-Play V1 ChatML.json index b705b2853..b7628b256 100644 --- a/default/content/presets/instruct/DreamGen Role-Play V1 ChatML.json +++ b/default/content/presets/instruct/DreamGen Role-Play V1 ChatML.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "none", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "<|im_end|>", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": true, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "<|im_start|>system\n", + "story_string_suffix": "<|im_end|>", "name": "DreamGen Role-Play V1 ChatML" } diff --git a/default/content/presets/instruct/DreamGen Role-Play V1 Llama3.json b/default/content/presets/instruct/DreamGen Role-Play V1 Llama3.json index e52fe73f8..0054d97da 100644 --- a/default/content/presets/instruct/DreamGen Role-Play V1 Llama3.json +++ b/default/content/presets/instruct/DreamGen Role-Play V1 Llama3.json @@ -1,16 +1,25 @@ { "input_sequence": "<|eot_id|>\n<|start_header_id|>writer character: {{user}}<|end_header_id|>\n\n", "output_sequence": "<|eot_id|>\n<|start_header_id|>writer character: {{char}}<|end_header_id|>\n\n", - "first_output_sequence": "", "last_output_sequence": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", + "system_sequence": "", "stop_sequence": "", - "separator_sequence": "", "wrap": false, "macro": true, "names_behavior": "none", "activation_regex": "", + "first_output_sequence": "", "skip_examples": false, + "output_suffix": "", + "input_suffix": "", + "system_suffix": "", + "user_alignment_message": "", + "system_same_as_user": false, + "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "<|start_header_id|>system<|end_header_id|>\n", + "story_string_suffix": "", "name": "DreamGen Role-Play V1 Llama3" } diff --git a/default/content/presets/instruct/GLM-4.json b/default/content/presets/instruct/GLM-4.json index 8fb081365..d652ef944 100644 --- a/default/content/presets/instruct/GLM-4.json +++ b/default/content/presets/instruct/GLM-4.json @@ -1,22 +1,25 @@ { "input_sequence": "<|user|>\n", "output_sequence": "<|assistant|>\n", - "first_output_sequence": "", "last_output_sequence": "", - "system_sequence_prefix": "<|system|>\n", - "system_sequence_suffix": "", + "system_sequence": "", "stop_sequence": "", "wrap": false, "macro": true, "names_behavior": "force", "activation_regex": "", + "first_output_sequence": "", "skip_examples": false, "output_suffix": "", "input_suffix": "", - "system_sequence": "", "system_suffix": "", "user_alignment_message": "", - "last_system_sequence": "", "system_same_as_user": true, + "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "[gMASK]", + "story_string_suffix": "\n", "name": "GLM-4" } diff --git a/default/content/presets/instruct/Gemma 2.json b/default/content/presets/instruct/Gemma 2.json index d5585a2c8..18ed3b2ac 100644 --- a/default/content/presets/instruct/Gemma 2.json +++ b/default/content/presets/instruct/Gemma 2.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "\n", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": true, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "user", + "story_string_suffix": "\n", "name": "Gemma 2" } diff --git a/default/content/presets/instruct/Koala.json b/default/content/presets/instruct/Koala.json index 386faa85c..749992db9 100644 --- a/default/content/presets/instruct/Koala.json +++ b/default/content/presets/instruct/Koala.json @@ -8,15 +8,18 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "BEGINNING OF CONVERSATION: ", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "", - "input_suffix": "", + "input_suffix": " ", "system_suffix": "", "user_alignment_message": "", "system_same_as_user": true, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "BEGINNING OF CONVERSATION: ", + "story_string_suffix": "\n", "name": "Koala" } diff --git a/default/content/presets/instruct/KoboldAI.json b/default/content/presets/instruct/KoboldAI.json index 1e9ae394a..d07d52291 100644 --- a/default/content/presets/instruct/KoboldAI.json +++ b/default/content/presets/instruct/KoboldAI.json @@ -4,12 +4,10 @@ "last_output_sequence": "", "system_sequence": "{{[SYSTEM]}}", "stop_sequence": "", - "wrap": true, + "wrap": false, "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "{{[OUTPUT_END]}}", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": false, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "{{[SYSTEM]}}", + "story_string_suffix": "{{[SYSTEM_END]}}", "name": "KoboldAI" } diff --git a/default/content/presets/instruct/Libra-32B.json b/default/content/presets/instruct/Libra-32B.json index 2e3e9ecba..cb6a6f5fa 100644 --- a/default/content/presets/instruct/Libra-32B.json +++ b/default/content/presets/instruct/Libra-32B.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "always", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": false, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "### Instruction:", + "story_string_suffix": "", "name": "Libra-32B" } diff --git a/default/content/presets/instruct/Lightning 1.1.json b/default/content/presets/instruct/Lightning 1.1.json index 6f1439629..4df233736 100644 --- a/default/content/presets/instruct/Lightning 1.1.json +++ b/default/content/presets/instruct/Lightning 1.1.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "\n\n", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": true, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:", + "story_string_suffix": "\n\n", "name": "Lightning 1.1" } diff --git a/default/content/presets/instruct/Llama 2 Chat.json b/default/content/presets/instruct/Llama 2 Chat.json index 7d5efcb21..6621940fa 100644 --- a/default/content/presets/instruct/Llama 2 Chat.json +++ b/default/content/presets/instruct/Llama 2 Chat.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "\n", @@ -18,5 +16,10 @@ "user_alignment_message": "Let's get started. Please respond based on the information and instructions provided above.", "system_same_as_user": true, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "[INST] <>\n", + "story_string_suffix": "\n<> Understood. [/INST]", "name": "Llama 2 Chat" } diff --git a/default/content/presets/instruct/Llama 3 Instruct.json b/default/content/presets/instruct/Llama 3 Instruct.json index 8bc2e0ace..e30e59e9b 100644 --- a/default/content/presets/instruct/Llama 3 Instruct.json +++ b/default/content/presets/instruct/Llama 3 Instruct.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "<|eot_id|>", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": false, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "<|start_header_id|>system<|end_header_id|>\n\n", + "story_string_suffix": "<|eot_id|>", "name": "Llama 3 Instruct" } diff --git a/default/content/presets/instruct/Llama 4 Instruct.json b/default/content/presets/instruct/Llama 4 Instruct.json index 13c712af2..592629645 100644 --- a/default/content/presets/instruct/Llama 4 Instruct.json +++ b/default/content/presets/instruct/Llama 4 Instruct.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "<|eot|>", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": false, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "<|begin_of_text|><|header_start|>system<|header_end|>\n\n", + "story_string_suffix": "<|eot|>", "name": "Llama 4 Instruct" } diff --git a/default/content/presets/instruct/Llama-3-Instruct-Names.json b/default/content/presets/instruct/Llama-3-Instruct-Names.json index 4412df51a..8efab1453 100644 --- a/default/content/presets/instruct/Llama-3-Instruct-Names.json +++ b/default/content/presets/instruct/Llama-3-Instruct-Names.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "none", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "<|eot_id|>", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": true, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "<|start_header_id|>system<|end_header_id|>\n\n", + "story_string_suffix": "<|eot_id|>", "name": "Llama-3-Instruct-Names" } diff --git a/default/content/presets/instruct/Metharme.json b/default/content/presets/instruct/Metharme.json index 2756e709b..b1d41c013 100644 --- a/default/content/presets/instruct/Metharme.json +++ b/default/content/presets/instruct/Metharme.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "<|system|>", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": true, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "<|system|>", + "story_string_suffix": "", "name": "Metharme" } diff --git a/default/content/presets/instruct/Mistral V1.json b/default/content/presets/instruct/Mistral V1.json index 679ae01db..81df90279 100644 --- a/default/content/presets/instruct/Mistral V1.json +++ b/default/content/presets/instruct/Mistral V1.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "", @@ -18,5 +16,10 @@ "user_alignment_message": "Let's get started. Please respond based on the information and instructions provided above.", "system_same_as_user": true, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": " [INST] ", + "story_string_suffix": " [/INST] Understood.", "name": "Mistral V1" } diff --git a/default/content/presets/instruct/Mistral V2 & V3.json b/default/content/presets/instruct/Mistral V2 & V3.json index da072c92b..fdc23b676 100644 --- a/default/content/presets/instruct/Mistral V2 & V3.json +++ b/default/content/presets/instruct/Mistral V2 & V3.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "", @@ -18,5 +16,10 @@ "user_alignment_message": "Let's get started. Please respond based on the information and instructions provided above.", "system_same_as_user": true, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "[INST] ", + "story_string_suffix": "[/INST] Understood.", "name": "Mistral V2 & V3" } diff --git a/default/content/presets/instruct/Mistral V3-Tekken.json b/default/content/presets/instruct/Mistral V3-Tekken.json index ee0207748..6e5b68b14 100644 --- a/default/content/presets/instruct/Mistral V3-Tekken.json +++ b/default/content/presets/instruct/Mistral V3-Tekken.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "", @@ -18,5 +16,10 @@ "user_alignment_message": "Let's get started. Please respond based on the information and instructions provided above.", "system_same_as_user": true, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "[INST]", + "story_string_suffix": "[/INST]Understood.", "name": "Mistral V3-Tekken" } diff --git a/default/content/presets/instruct/Mistral V7-Tekken.json b/default/content/presets/instruct/Mistral V7-Tekken.json index 975480534..d9bab8aec 100644 --- a/default/content/presets/instruct/Mistral V7-Tekken.json +++ b/default/content/presets/instruct/Mistral V7-Tekken.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": false, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "[SYSTEM_PROMPT]", + "story_string_suffix": "[/SYSTEM_PROMPT]", "name": "Mistral V7-Tekken" } diff --git a/default/content/presets/instruct/Mistral V7.json b/default/content/presets/instruct/Mistral V7.json index 4568365a9..2a007bd44 100644 --- a/default/content/presets/instruct/Mistral V7.json +++ b/default/content/presets/instruct/Mistral V7.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": false, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "[SYSTEM_PROMPT] ", + "story_string_suffix": "[/SYSTEM_PROMPT]", "name": "Mistral V7" } diff --git a/default/content/presets/instruct/Moonshot AI.json b/default/content/presets/instruct/Moonshot AI.json index 7731f99cb..4ffc95a49 100644 --- a/default/content/presets/instruct/Moonshot AI.json +++ b/default/content/presets/instruct/Moonshot AI.json @@ -6,9 +6,8 @@ "stop_sequence": "<|im_end|>", "wrap": false, "macro": true, + "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "<|im_end|>", @@ -19,6 +18,8 @@ "last_system_sequence": "", "first_input_sequence": "", "last_input_sequence": "", - "names_behavior": "force", + "sequences_as_stop_strings": true, + "story_string_prefix": "<|im_system|>system<|im_middle|>", + "story_string_suffix": "<|im_end|>", "name": "Moonshot AI" } diff --git a/default/content/presets/instruct/OpenOrca-OpenChat.json b/default/content/presets/instruct/OpenOrca-OpenChat.json index 84ae96d15..24db83d69 100644 --- a/default/content/presets/instruct/OpenOrca-OpenChat.json +++ b/default/content/presets/instruct/OpenOrca-OpenChat.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "<|end_of_turn|>", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": false, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "", + "story_string_suffix": "", "name": "OpenOrca-OpenChat" } diff --git a/default/content/presets/instruct/Phi.json b/default/content/presets/instruct/Phi.json index 617be7ae6..63f3327a2 100644 --- a/default/content/presets/instruct/Phi.json +++ b/default/content/presets/instruct/Phi.json @@ -1,22 +1,25 @@ { "input_sequence": "<|user|>\n", "output_sequence": "<|assistant|>\n", - "first_output_sequence": "", "last_output_sequence": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", + "system_sequence": "<|system|>\n", "stop_sequence": "<|end|>", "wrap": false, "macro": true, "names_behavior": "force", "activation_regex": "", + "first_output_sequence": "", "skip_examples": false, "output_suffix": "<|end|>\n", "input_suffix": "<|end|>\n", - "system_sequence": "<|system|>\n", "system_suffix": "<|end|>\n", "user_alignment_message": "", - "last_system_sequence": "", "system_same_as_user": false, + "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "<|system|>\n", + "story_string_suffix": "<|end|>\n", "name": "Phi" } diff --git a/default/content/presets/instruct/Story.json b/default/content/presets/instruct/Story.json index 6e90dd0ba..90930211b 100644 --- a/default/content/presets/instruct/Story.json +++ b/default/content/presets/instruct/Story.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "none", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": false, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "", + "story_string_suffix": "", "name": "Story" } diff --git a/default/content/presets/instruct/Synthia.json b/default/content/presets/instruct/Synthia.json index ccba89a9f..91e0f26ec 100644 --- a/default/content/presets/instruct/Synthia.json +++ b/default/content/presets/instruct/Synthia.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "SYSTEM: ", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "\n", @@ -18,5 +16,10 @@ "user_alignment_message": "Let's get started. Please respond based on the information and instructions provided above.", "system_same_as_user": false, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "SYSTEM: ", + "story_string_suffix": "\n", "name": "Synthia" } diff --git a/default/content/presets/instruct/Tulu.json b/default/content/presets/instruct/Tulu.json index 3cfe4f87a..ef606c0a2 100644 --- a/default/content/presets/instruct/Tulu.json +++ b/default/content/presets/instruct/Tulu.json @@ -1,22 +1,25 @@ { "input_sequence": "<|user|>\n", "output_sequence": "<|assistant|>\n", - "first_output_sequence": "", "last_output_sequence": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", + "system_sequence": "<|system|>\n", "stop_sequence": "<|end_of_text|>", "wrap": false, "macro": true, "names_behavior": "force", "activation_regex": "", + "first_output_sequence": "", "skip_examples": false, "output_suffix": "<|end_of_text|>\n", "input_suffix": "\n", - "system_sequence": "<|system|>\n", "system_suffix": "\n", "user_alignment_message": "", - "last_system_sequence": "", "system_same_as_user": false, + "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "<|system|>\n", + "story_string_suffix": "\n", "name": "Tulu" } diff --git a/default/content/presets/instruct/Vicuna 1.0.json b/default/content/presets/instruct/Vicuna 1.0.json index 1c5fca144..b45fdba4a 100644 --- a/default/content/presets/instruct/Vicuna 1.0.json +++ b/default/content/presets/instruct/Vicuna 1.0.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": true, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "", + "story_string_suffix": "", "name": "Vicuna 1.0" } diff --git a/default/content/presets/instruct/Vicuna 1.1.json b/default/content/presets/instruct/Vicuna 1.1.json index 88119ecd1..d67b8b4fb 100644 --- a/default/content/presets/instruct/Vicuna 1.1.json +++ b/default/content/presets/instruct/Vicuna 1.1.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "BEGINNING OF CONVERSATION:", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": true, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "BEGINNING OF CONVERSATION: ", + "story_string_suffix": "", "name": "Vicuna 1.1" } diff --git a/default/content/presets/instruct/WizardLM-13B.json b/default/content/presets/instruct/WizardLM-13B.json index ea793ac57..b898897c5 100644 --- a/default/content/presets/instruct/WizardLM-13B.json +++ b/default/content/presets/instruct/WizardLM-13B.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": true, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "", + "story_string_suffix": "", "name": "WizardLM-13B" } diff --git a/default/content/presets/instruct/WizardLM.json b/default/content/presets/instruct/WizardLM.json index 081d9d68c..a3e635b5b 100644 --- a/default/content/presets/instruct/WizardLM.json +++ b/default/content/presets/instruct/WizardLM.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": false, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "", + "story_string_suffix": "", "name": "WizardLM" } diff --git a/default/content/presets/instruct/simple-proxy-for-tavern.json b/default/content/presets/instruct/simple-proxy-for-tavern.json index 2123edbbd..72c941ee6 100644 --- a/default/content/presets/instruct/simple-proxy-for-tavern.json +++ b/default/content/presets/instruct/simple-proxy-for-tavern.json @@ -8,8 +8,6 @@ "macro": true, "names_behavior": "none", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "", @@ -18,5 +16,10 @@ "user_alignment_message": "", "system_same_as_user": false, "last_system_sequence": "", + "first_input_sequence": "", + "last_input_sequence": "", + "sequences_as_stop_strings": true, + "story_string_prefix": "## {{char}}\n- You're \"{{char}}\" in this never-ending roleplay with \"{{user}}\".\n### Input:", + "story_string_suffix": "### Response:\n(OOC) Understood. I will take this info into account for the roleplay. (end OOC)\n", "name": "simple-proxy-for-tavern" } diff --git a/default/content/settings.json b/default/content/settings.json index 4b260df87..4bd8e9ff5 100644 --- a/default/content/settings.json +++ b/default/content/settings.json @@ -160,8 +160,6 @@ "macro": true, "names_behavior": "force", "activation_regex": "", - "system_sequence_prefix": "", - "system_sequence_suffix": "", "first_output_sequence": "", "skip_examples": false, "output_suffix": "\n\n", diff --git a/public/global.d.ts b/public/global.d.ts index f519383ac..fef81df2f 100644 --- a/public/global.d.ts +++ b/public/global.d.ts @@ -6,6 +6,8 @@ import { QuickReplyApi } from './scripts/extensions/quick-reply/api/QuickReplyAp declare global { // Custom types declare type InstructSettings = typeof power_user.instruct; + declare type ContextSettings = typeof power_user.context; + declare type ReasoningSettings = typeof power_user.reasoning; // Global namespace modules interface Window { diff --git a/public/index.html b/public/index.html index 9904ef4b6..f6c1a838c 100644 --- a/public/index.html +++ b/public/index.html @@ -3774,6 +3774,35 @@ +
+
+ + +
+
+
+ + +
+
+ + +
+
+