From e61138bdada3a90e077e45157b57cb7cbcf03c53 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 19 Jan 2023 19:04:54 -0300 Subject: [PATCH] Minor fixes --- server.py | 4 ++-- settings-template.json | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/server.py b/server.py index 700b430..11796fe 100644 --- a/server.py +++ b/server.py @@ -333,9 +333,9 @@ if args.chat or args.cai_chat: context += f"{data['char_name']}'s Persona: {data['char_persona']}\n" if 'world_scenario' in data and data['world_scenario'] != '': context += f"Scenario: {data['world_scenario']}\n" - context = f"{context.strip()}\n" + context = f"{context.strip()}\n\n" if 'example_dialogue' in data and data['example_dialogue'] != '': - context += f"{data['example_dialogue']}" + context += f"{data['example_dialogue'].strip()}\n" if 'char_greeting' in data: history = [['', data['char_greeting']]] else: diff --git a/settings-template.json b/settings-template.json index e822c05..25fad95 100644 --- a/settings-template.json +++ b/settings-template.json @@ -5,11 +5,13 @@ "preset": "NovelAI-Sphinx Moth", "name1": "Person 1", "name2": "Person 2", - "name1_pygmalion": "You", - "name2_pygmalion": "Kawaii", "context": "This is a conversation between two people.", - "context_pygmalion": "This is a conversation between two people.\n", "prompt": "Common sense questions and answers\n\nQuestion: \nFactual answer:", "prompt_gpt4chan": "-----\n--- 865467536\nInput text\n--- 865467537\n", - "stop_at_newline": true + "stop_at_newline": true, + "preset_pygmalion": "Pygmalion", + "name1_pygmalion": "You", + "name2_pygmalion": "Kawaii", + "context_pygmalion": "This is a conversation between two people.\n", + "stop_at_newline_pygmalion": false }