Added new ideaMatch exercise type.
This commit is contained in:
@@ -868,29 +868,7 @@ def gen_idea_match_exercise(text: str, quantity: int, start_id):
|
|||||||
token_count = count_total_tokens(messages)
|
token_count = count_total_tokens(messages)
|
||||||
|
|
||||||
ideas = make_openai_call(GPT_4_O, messages, token_count, ["ideas"], GEN_QUESTION_TEMPERATURE)["ideas"]
|
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 {
|
return {
|
||||||
"id": str(uuid.uuid4()),
|
"id": str(uuid.uuid4()),
|
||||||
"allowRepetition": False,
|
"allowRepetition": False,
|
||||||
|
|||||||
Reference in New Issue
Block a user