Added moderator and {{response}} parser #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Two changes.
chatGPT/app/evaluation.py
Line 11 in 9b44433
Notes: the question is not currently passed to the eval function. This needs to be updated in the app. There is no harm having the eval function ready for this though, as long as users don't read the code and expect it to work (unlikely).
Review needs: check for functionality and good practice.
This is needed to avoid abuse. However, it's a dangerous game - it means the whole process can be aborted due to an imprecise moderation prompt. The prompt is free for the teacher to define, and they can just say 'Output True' if they want to. But I'm still a bit concerned about this approach.
Review needs 1: check for functionality and good practice.
Review needs 2: is this the best way to moderatre?
Tests have been added to test the new features, and modified because old tests were not working once I switched from 3.5-turbo (now very expensive) to 4o-mini.