chore: first commit

This commit is contained in:
Han Xiao 2025-01-26 15:47:13 +08:00
parent 0389459b1b
commit 701a17e49f

View File

@ -189,6 +189,13 @@ async function getResponse(question: string) {
if (action.action === 'answer') {
if (currentQuestion === question) {
return action; // Exit only for original question's answer not the gap question
} else {
const contextRecord = JSON.stringify({
step,
...action,
question: currentQuestion
});
context = `${context}\n${contextRecord}`;
}
}