Skip to content

Commit

Permalink
get student query
Browse files Browse the repository at this point in the history
  • Loading branch information
LarynQi committed Jun 15, 2024
1 parent 604b4ec commit c790b3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/protocols/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def run(self, messages):
consent = self._get_consent(email)
context = self._get_context(email)
curr_message = {'role': 'user', 'content': code}
student_query = input("Have a specific question? Enter it here (or leave blank for general advice): ").lower().strip()
print()
help_payload = {
'email': email,
'promptLabel': 'Get_help',
Expand All @@ -84,7 +86,8 @@ def run(self, messages):
'version': 'v2',
'key': self.HELP_KEY,
'consent': consent,
'messages': context + [curr_message]
'messages': context + [curr_message],
'studentQuery': student_query,
}
elif res == 'never':
self._set_disabled(email, disabled=True)
Expand Down

0 comments on commit c790b3a

Please sign in to comment.