From c790b3a130192a071b8e2e05abbe0036857167b6 Mon Sep 17 00:00:00 2001 From: Laryn Qi Date: Sat, 15 Jun 2024 15:46:47 -0400 Subject: [PATCH 1/3] get student query --- client/protocols/help.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/protocols/help.py b/client/protocols/help.py index dca527b7..1a73fe34 100644 --- a/client/protocols/help.py +++ b/client/protocols/help.py @@ -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', @@ -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) From 192dbc57c3a281707f38b7eee39d7370f0ec3dda Mon Sep 17 00:00:00 2001 From: Laryn Qi Date: Sat, 15 Jun 2024 15:54:33 -0400 Subject: [PATCH 2/3] allow python prereleases --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6d04ea77..17a58b45 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -80,6 +80,7 @@ jobs: uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Initialize environment shell: bash run: python -m venv "${VENV_DIR}" From 1ac50d80d504a94d28f8efe0be5148e1c2cef85b Mon Sep 17 00:00:00 2001 From: Laryn Qi Date: Sat, 15 Jun 2024 22:12:43 -0400 Subject: [PATCH 3/3] update setup python version --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 17a58b45..f16cd7c7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -77,7 +77,7 @@ jobs: key: v2-${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} restore-keys: ${{ runner.os }}-pip- - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} allow-prereleases: true