Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -638,10 +638,16 @@ Format your response with clear headers and bullet points."""
|
|
| 638 |
|
| 639 |
# Call OpenAI API
|
| 640 |
response = openai.chat.completions.create(
|
| 641 |
-
model="o1-preview",
|
| 642 |
messages=[
|
| 643 |
-
{
|
| 644 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 645 |
],
|
| 646 |
temperature=0.3
|
| 647 |
)
|
|
|
|
| 638 |
|
| 639 |
# Call OpenAI API
|
| 640 |
response = openai.chat.completions.create(
|
| 641 |
+
model="o1-preview",
|
| 642 |
messages=[
|
| 643 |
+
{
|
| 644 |
+
"role": "assistant",
|
| 645 |
+
"content": "I am an expert mathematics professor who grades student solutions carefully and accurately."
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"role": "user",
|
| 649 |
+
"content": verification_prompt
|
| 650 |
+
}
|
| 651 |
],
|
| 652 |
temperature=0.3
|
| 653 |
)
|