Change "system" role to "Your Computer".

This commit is contained in:
Toran Bruce Richards
2023-04-30 15:55:53 +12:00
parent a7816b8c79
commit 6d1653b84f

View File

@@ -58,7 +58,9 @@ def update_running_summary(current_memory: str, new_events: List[Dict]) -> str:
# Replace "assistant" with "you". This produces much better first person past tense results.
for event in new_events:
if event["role"] == "assistant":
event["role"] = "you"
event["role"] = "Me"
elif event["role"] == "system":
event["role"] = "Your Computer"
# This can happen at any point during execturion, not just the beginning
if (len(new_events) == 0):