OpenAI run and some fixes
This commit is contained in:
@@ -423,13 +423,13 @@ def revise_identity(persona):
|
||||
plan_prompt += f" *{persona.scratch.curr_time.strftime('%A %B %d')}*? "
|
||||
plan_prompt += f"If there is any scheduling information, be as specific as possible (include date, time, and location if stated in the statement)\n\n"
|
||||
plan_prompt += f"Write the response from {p_name}'s perspective."
|
||||
plan_note = GPT_single_request(plan_prompt)
|
||||
plan_note = ChatGPT_single_request(plan_prompt)
|
||||
# print (plan_note)
|
||||
|
||||
thought_prompt = statements + "\n"
|
||||
thought_prompt += f"Given the statements above, how might we summarize {p_name}'s feelings about their days up to now?\n\n"
|
||||
thought_prompt += f"Write the response from {p_name}'s perspective."
|
||||
thought_note = GPT_single_request(thought_prompt)
|
||||
thought_note = ChatGPT_single_request(thought_prompt)
|
||||
# print (thought_note)
|
||||
|
||||
currently_prompt = f"{p_name}'s status from {(persona.scratch.curr_time - datetime.timedelta(days=1)).strftime('%A %B %d')}:\n"
|
||||
@@ -441,7 +441,7 @@ def revise_identity(persona):
|
||||
currently_prompt += "Follow this format below:\nStatus: <new status>"
|
||||
# print ("DEBUG ;adjhfno;asdjao;asdfsidfjo;af", p_name)
|
||||
# print (currently_prompt)
|
||||
new_currently = GPT_single_request(currently_prompt)
|
||||
new_currently = ChatGPT_single_request(currently_prompt)
|
||||
# print (new_currently)
|
||||
# print (new_currently[10:])
|
||||
|
||||
@@ -452,7 +452,7 @@ def revise_identity(persona):
|
||||
daily_req_prompt += f"Follow this format (the list should have 4~6 items but no more):\n"
|
||||
daily_req_prompt += f"1. wake up and complete the morning routine at <time>, 2. ..."
|
||||
|
||||
new_daily_req = GPT_single_request(daily_req_prompt)
|
||||
new_daily_req = ChatGPT_single_request(daily_req_prompt)
|
||||
new_daily_req = new_daily_req.replace('\n', ' ')
|
||||
print ("WE ARE HERE!!!", new_daily_req)
|
||||
persona.scratch.daily_plan_req = new_daily_req
|
||||
|
||||
Reference in New Issue
Block a user