You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
content: "Extract the following information from this syllabus in JSON format: course_name, instructor, grade_weights (array of {name, weight}), assignments (array), due_dates (array of {assignment, due_date}), credit_hours"
673
673
},
674
-
{role: "user",content: docs.syllabus.substring(0,4000)}// Limit length to avoid token limits
674
+
{role: "user",content: docs.syllabus.substring(0,10000)}// Limit length to avoid token limits
675
675
]
676
676
});
677
677
@@ -707,13 +707,13 @@ async function processExtractedText(docs) {
707
707
// Process transcript text with OpenAI
708
708
console.log('Calling OpenAI API for transcript processing');
content: "Extract current grades from this document in JSON format. Parse the document carefully, looking for assignment names and their corresponding grades. Return an array of objects, each with 'name' and 'grade' properties. For each assignment that has a score, include it as a numeric value. For assignments with 'Dropped!' status, set the grade property to 'Dropped'. Format example: [{\"name\": \"Week 1 HW\", \"grade\": 100}, {\"name\": \"Week 2 HW\", \"grade\": 95.5}, {\"name\": \"Quiz 1\", \"grade\": \"Dropped\"}]"
750
750
},
751
-
{role: "user",content: docs.grades.substring(0,4000)}// Limit length to avoid token limits
751
+
{role: "user",content: docs.grades.substring(0,10000)}// Limit length to avoid token limits
752
752
]
753
753
});
754
754
@@ -827,7 +827,7 @@ async function generatePrediction(structuredData) {
0 commit comments