Added new ideaMatch exercise type.

This commit is contained in:
Cristiano Ferreira
2024-07-18 23:22:23 +01:00

View File

@@ -868,29 +868,7 @@ def gen_idea_match_exercise(text: str, quantity: int, start_id):
token_count = count_total_tokens(messages)
ideas = make_openai_call(GPT_4_O, messages, token_count, ["ideas"], GEN_QUESTION_TEMPERATURE)["ideas"]
# options = [
# {
# "id": "A",
# "sentence": "Cultural appropriation is a term that has gained significant traction in contemporary"
# },
# {
# "id": "B",
# "sentence": "Historically, cultural appropriation can be traced back to the era of colonialism"
# }
# ]
# sentences = [
# {
# "id": 21,
# "sentence": "Concluding Thoughts on Cultural Appropriation",
# "solution": "I"
# },
# {
# "id": 22,
# "sentence": "Understanding the Concept of Cultural Appropriation",
# "solution": "A"
# }
# ]
return {
"id": str(uuid.uuid4()),
"allowRepetition": False,