Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Wenxin Zhang <[email protected]>
  • Loading branch information
VincyZhang committed Apr 11, 2024
1 parent aa0fd64 commit d289dd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/script/ask_neuralchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ def get_issues_comment():
for item in response:
body = item.get("body", "")
body = filter_comment(body)
if body == "@NeuralChatBot" or body == "" or not body:
if body == "" or body == " " or body == "\n" or not body:
continue
owner = item.get("user", "").get("login", "")
if owner not in developers_list:
logging.info("This Comment is From User %s : %s END" % (owner, body))
messages.append({"role": "user", "content": body })
elif owner == "NeuralChat":
elif owner == "NeuralChatBot":
logging.info("This Comment is From NeuralChat: %s END" % body)
messages.append({"role": "assistant", "content": body })
else:
Expand Down

0 comments on commit d289dd2

Please sign in to comment.