mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2
This commit is contained in:
@@ -4018,10 +4018,13 @@ def actionsubmit(data, actionmode=0, force_submit=False, force_prompt_gen=False,
|
|||||||
data = f"\n\n> {data}\n"
|
data = f"\n\n> {data}\n"
|
||||||
|
|
||||||
# "Chat" mode
|
# "Chat" mode
|
||||||
|
print(koboldai_vars.chatmode)
|
||||||
|
print(koboldai_vars.gamestarted)
|
||||||
if(koboldai_vars.chatmode and koboldai_vars.gamestarted):
|
if(koboldai_vars.chatmode and koboldai_vars.gamestarted):
|
||||||
data = re.sub(r'\n+', ' ', data)
|
data = re.sub(r'\n+', ' ', data)
|
||||||
if(len(data)):
|
if(len(data)):
|
||||||
data = f"\n{koboldai_vars.chatname}: {data}\n"
|
data = f"\n{koboldai_vars.chatname}: {data}\n"
|
||||||
|
print("Chat Mode Data: {}".format(data))
|
||||||
|
|
||||||
# If we're not continuing, store a copy of the raw input
|
# If we're not continuing, store a copy of the raw input
|
||||||
if(data != ""):
|
if(data != ""):
|
||||||
|
Reference in New Issue
Block a user