Skip to content

Commit e692011

Browse files
committed
Temporarily relax correctAnswer schema to debug AI output
- Change ExerciseContentSchema.correctAnswer from enum to string - This allows us to see what values the AI is actually generating - Will help identify if AI is generating non-standard answer keys
1 parent 14b601c commit e692011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/domain/schemas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const ExerciseContentSchema = z.object({
8585
paragraph: z.string(),
8686
question: z.string(),
8787
options: z.object({ A: z.string(), B: z.string(), C: z.string(), D: z.string() }),
88-
correctAnswer: z.enum(['A', 'B', 'C', 'D']),
88+
correctAnswer: z.string(), // Temporarily relaxed to debug AI output
8989
allExplanations: z.object({
9090
A: z.string(),
9191
B: z.string(),

0 commit comments

Comments
 (0)