From 7bd2ae05bfd83593123d302a0c8d7bdfdc1bfaa9 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Wed, 15 Feb 2023 21:32:53 -0300 Subject: [PATCH] Force your name to be "You" for pygmalion This allows you to customize your displayed name. --- server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 518f46d..1a5467d 100644 --- a/server.py +++ b/server.py @@ -505,8 +505,10 @@ def clean_chat_message(text): return text def generate_chat_prompt(text, tokens, name1, name2, context, chat_prompt_size, impersonate=False): - text = clean_chat_message(text) + if 'pygmalion' in model_name.lower(): + name1 = "You" + text = clean_chat_message(text) rows = [f"{context.strip()}\n"] i = len(history['internal'])-1 count = 0