Skip to content

Commit b5f3fec

Browse files
committed
Remove length limit on submissions
1 parent 1e2f0ef commit b5f3fec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/math_tutor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def process_input(self, submission: str, exemplary_solution: str, temperature: f
6666
except ValueError:
6767
raise ValueError(f"Submissions that are provided without an exemplary answer must be formatted as a question and answer separated by 'Answer:'.")
6868
# Check submission length
69-
if len(submission) > 5000:
70-
return "I apologize, but your submission is too long. Please limit your submission to 5000 characters or less.", "incorrect"
69+
# if len(submission) > 5000:
70+
# return "I apologize, but your submission is too long. Please limit your submission to 5000 characters or less.", "incorrect"
7171

7272
# Call OpenAI moderation endpoint
7373
moderation_response = self.client.moderations.create(input=submission)

0 commit comments

Comments
 (0)