Update student_functions.py
Browse files- student_functions.py +1 -1
student_functions.py
CHANGED
@@ -48,7 +48,7 @@ def generate_quiz(subject, topic, count, difficult):
|
|
48 |
quiz_output = ""
|
49 |
chat_response = client.chat.complete(
|
50 |
model=MODEL,
|
51 |
-
messages=
|
52 |
{"role": "system", "content": "You are a teaching assistant."},
|
53 |
{"role": "user",
|
54 |
"content": f'''Generate {count} multiple-choice questions in the subject of {subject} for the topic {topic} for students at a {difficult} level. Ensure the questions are well-diversified and cover various aspects of the topic. Format the questions as follows:
|
|
|
48 |
quiz_output = ""
|
49 |
chat_response = client.chat.complete(
|
50 |
model=MODEL,
|
51 |
+
messages=[
|
52 |
{"role": "system", "content": "You are a teaching assistant."},
|
53 |
{"role": "user",
|
54 |
"content": f'''Generate {count} multiple-choice questions in the subject of {subject} for the topic {topic} for students at a {difficult} level. Ensure the questions are well-diversified and cover various aspects of the topic. Format the questions as follows:
|