diff --git a/default/config.yaml b/default/config.yaml index 9c8c02de2..2c6f2fa98 100644 --- a/default/config.yaml +++ b/default/config.yaml @@ -95,3 +95,8 @@ deepl: formality: default # -- SERVER PLUGIN CONFIGURATION -- enableServerPlugins: false +# User session timeout *in seconds* (defaults to 24 hours). +## Set to a positive number to expire session after a certain time of inactivity +## Set to 0 to expire session when the browser is closed +## Set to a negative number to disable session expiration +sessionTimeout: 86400 diff --git a/default/content/index.json b/default/content/index.json index 6d4ca564b..de5316875 100644 --- a/default/content/index.json +++ b/default/content/index.json @@ -678,5 +678,13 @@ { "filename": "presets/context/ChatML-Names.json", "type": "context" + }, + { + "filename": "presets/context/Gemma 2.json", + "type": "context" + }, + { + "filename": "presets/instruct/Gemma 2.json", + "type": "instruct" } ] diff --git a/default/content/presets/context/Gemma 2.json b/default/content/presets/context/Gemma 2.json new file mode 100644 index 000000000..7e8dba55b --- /dev/null +++ b/default/content/presets/context/Gemma 2.json @@ -0,0 +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}}", + "example_separator": "", + "chat_start": "", + "use_stop_strings": false, + "allow_jailbreak": false, + "always_force_name2": true, + "trim_sentences": false, + "include_newline": false, + "single_line": false, + "name": "Gemma 2" +} \ No newline at end of file diff --git a/default/content/presets/instruct/Gemma 2.json b/default/content/presets/instruct/Gemma 2.json new file mode 100644 index 000000000..a399b8e89 --- /dev/null +++ b/default/content/presets/instruct/Gemma 2.json @@ -0,0 +1,24 @@ +{ + "system_prompt": "Continue writing this story and portray characters realistically.", + "input_sequence": "user", + "output_sequence": "model", + "last_output_sequence": "", + "system_sequence": "system", + "stop_sequence": "", + "wrap": true, + "macro": true, + "names": false, + "names_force_groups": false, + "activation_regex": "", + "system_sequence_prefix": "", + "system_sequence_suffix": "", + "first_output_sequence": "", + "skip_examples": false, + "output_suffix": "\n", + "input_suffix": "\n", + "system_suffix": "\n", + "user_alignment_message": "", + "system_same_as_user": true, + "last_system_sequence": "", + "name": "Gemma 2" +} diff --git a/default/content/settings.json b/default/content/settings.json index c04b88bfb..f558c769f 100644 --- a/default/content/settings.json +++ b/default/content/settings.json @@ -13,6 +13,7 @@ }, "world_info_depth": 2, "world_info_budget": 25, + "world_info_include_names": true, "world_info_recursive": true, "world_info_overflow_alert": false, "world_info_case_sensitive": false, diff --git a/public/index.html b/public/index.html index 6109568bb..5b9f5b455 100644 --- a/public/index.html +++ b/public/index.html @@ -3542,6 +3542,12 @@
+