mirror of
https://github.com/jcreek/AutomatedAssessmentFeedbackAgent.git
synced 2026-07-13 02:53:49 +00:00
fix(*): Ensure fallback data works correctly
This commit is contained in:
+6
-1
@@ -145,7 +145,12 @@ export async function gradeSubmissionWithAgent(
|
||||
task: string,
|
||||
roomId: string
|
||||
): Promise<OpenAIResponse> {
|
||||
if (!client || !agent) {
|
||||
if (!client) {
|
||||
// In test/CI mode, return fallback data
|
||||
return fallbackGrade(submission, task);
|
||||
}
|
||||
|
||||
if (!agent) {
|
||||
throw new Error('Agent not available');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user