Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
HungryFour committed Mar 9, 2024
1 parent 5d2309c commit 8eeafd3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions multiagents/llms/feedback_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ def extract_rules_from_feedback(self, messages, output, preferred_output):

return valid_rules

def judge_feedback(self, feedback):
judge_messages = [{'role': 'system', 'content': JUDGE_FEEDBACK_PROMPT}, {'role': 'user', 'content': feedback}]
reply = call_openai(judge_messages)
return "yes" in reply.lower()

def user_input(self, placeholder):
if USERINPUTREADFROMFILE:
print('='*10 + 'USER FEEDBACK: ' + placeholder, flush=True) # 参与前端逻辑,不能修改
Expand Down

0 comments on commit 8eeafd3

Please sign in to comment.