Add speaking endpoints and clean code.

This commit is contained in:
Cristiano Ferreira
2023-06-23 00:05:48 +01:00
parent a67f02ed78
commit 4e1ad6dc67
9 changed files with 274 additions and 89 deletions

View File

@@ -38,18 +38,14 @@ def correct_answer(
"content": f"The question you have to grade is of type {question_type} and is the following: {question}",
},
{
"role": "system",
"role": "user",
"content": "Please provide a JSON object response with the overall grade and breakdown grades, "
"formatted as follows: {'overall': 7.0, 'task_response': {'Fluency and Coherence': 8.0, "
"'Lexical Resource': 6.5, 'Grammatical Range and Accuracy': 7.5, 'Pronunciation': "
"6.0}}",
},
{
"role": "system",
"content": "Don't give explanations for the grades, just provide the json with the grades.",
},
{
"role": "system",
"role": "user",
"content": "If the answer is unrelated to the question give it the minimum grade.",
},
{