fix: remove prefix from followup hint, use raw text

This commit is contained in:
Developer
2026-05-21 13:00:03 +08:00
parent 3cc3b28471
commit 7b1103903f
@@ -256,12 +256,7 @@ Format your response as JSON:
if (shouldFollowUp && followupHints.length > 0) {
let hint = followupHints[Math.min(currentFollowUpCount, followupHints.length - 1)];
hint = hint.replace(/^如果.+?追问[:]\s*/i, '').replace(/^[""「『]|[""」』]$/g, '');
const hintLabel = isZh
? `让我帮你完善一下:${hint}`
: isJa
? `もう少し詳しく伺います:${hint}`
: `Let me help you elaborate: ${hint}`;
followupHintMsg = new AIMessage(hintLabel);
followupHintMsg = new AIMessage(hint);
}
const feedbackMessage = new AIMessage(