fix: eval

This commit is contained in:
Han Xiao
2025-03-11 16:11:50 +08:00
parent 8d67a453f9
commit 87ff3e61e8

View File

@@ -465,10 +465,10 @@ Your journey ends here. You have successfully answered the original question. Co
thisStep.isFinal = true; thisStep.isFinal = true;
break break
} else { } else {
evaluationMetrics[currentQuestion] = evaluationMetrics[currentQuestion].filter(e => e !== evaluation.type);
if (evaluation.type === 'strict') { if (evaluation.type === 'strict') {
finalAnswerPIP = evaluation.improvement_plan || ''; finalAnswerPIP = evaluation.improvement_plan || '';
// remove 'strict' from the evaluation metrics // remove 'strict' from the evaluation metrics
evaluationMetrics[currentQuestion] = evaluationMetrics[currentQuestion].filter(e => e === 'strict');
} }
if (badAttempts >= maxBadAttempts) { if (badAttempts >= maxBadAttempts) {
thisStep.isFinal = false; thisStep.isFinal = false;