Skip to content

Commit

Permalink
exchange placeholder for edit
Browse files Browse the repository at this point in the history
  • Loading branch information
curtis-sun committed Mar 21, 2024
1 parent 1fa1baf commit 0e67161
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multiagents/llms/feedback_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def interact(self, instruction, res, role, task):
eval = user_input(eval_placeholder + '\n')
if "yes" not in eval.lower():
refine_placeholder = 'Please input your preferred response in details.'
add_edit_message(cur_task, role, res['content'], refine_placeholder, get_time())
add_edit_message(cur_task, role, refine_placeholder, res['content'], get_time())
refined_reply = user_input(refine_placeholder + '\n')
self.feedbacks.append({"feedback": feedback, "refined_response": refined_reply, "auto": False, "task": task})
finish_select_edit_message(cur_task, role)
Expand All @@ -255,7 +255,7 @@ def interact(self, instruction, res, role, task):
print(res, flush=True)
print('='*25, flush=True)
refine_placeholder = 'We are sorry that we cannot refine our response based on your feedback. Please input your preferred response in details.'
add_edit_message(cur_task, role, res['content'], refine_placeholder, get_time())
add_edit_message(cur_task, role, refine_placeholder, res['content'], get_time())
refined_reply = user_input(refine_placeholder + '\n')
self.feedbacks.append({"feedback": feedback, "refined_response": refined_reply, "auto": False, "task": task})
finish_select_edit_message(cur_task, role)
Expand Down

0 comments on commit 0e67161

Please sign in to comment.