forked from hangshuo652/aurak
fix: 代码整合修复 - Entity类型、题库生成、评估流程等14项修复
This commit is contained in:
@@ -79,6 +79,12 @@ export const questionGeneratorNode = async (
|
||||
.join('\n');
|
||||
|
||||
const existingQuestions = state.questions || [];
|
||||
|
||||
if (existingQuestions.length >= limitCount) {
|
||||
console.log('[GeneratorNode] Skipping generation - enough questions from bank:', existingQuestions.length);
|
||||
return { questions: existingQuestions };
|
||||
}
|
||||
|
||||
const existingQuestionsText = existingQuestions
|
||||
.map((q, i) => `Q${i + 1}: ${q.questionText}`)
|
||||
.join('\n');
|
||||
|
||||
Reference in New Issue
Block a user