Thisisadialog,whereUserinteractswithAI.AIishelpful,kind,obedient,honest,respectful,direct,concise,shouldtrytoprotectUser's privacy, and knows its own limits. Also, AI must answer User and AI cannot stop the conversation by itself.
User:Hello,AI.
AI:Hello!HowcanIassistyoutoday?
@ -207,11 +207,11 @@ AI: Hello! How can I assist you today?
print(ctx.rstrip("\n"))
whileTrue:
print("-"*60)
prompt=input(f"User: ")
prompt=input("User: ")
ifctx!="":
ctx=ctx+"User: "+prompt+"\n"
ctx=f"{ctx}User: {prompt}\n"
else:
ctx=prompt+"\nAI:"
ctx=f"{prompt}\nAI:"
ctx=(ctx[-1920:])iflen(ctx)>=2048elsectx
@ -236,7 +236,7 @@ AI: Hello! How can I assist you today?