mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
Force your name to be "You" for pygmalion
This allows you to customize your displayed name.
This commit is contained in:
parent
3746d72853
commit
7bd2ae05bf
@ -505,8 +505,10 @@ def clean_chat_message(text):
|
|||||||
return text
|
return text
|
||||||
|
|
||||||
def generate_chat_prompt(text, tokens, name1, name2, context, chat_prompt_size, impersonate=False):
|
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"]
|
rows = [f"{context.strip()}\n"]
|
||||||
i = len(history['internal'])-1
|
i = len(history['internal'])-1
|
||||||
count = 0
|
count = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user