forked from hangshuo652/aurak
fix: remove prefix from followup hint, use raw text
This commit is contained in:
@@ -256,12 +256,7 @@ Format your response as JSON:
|
|||||||
if (shouldFollowUp && followupHints.length > 0) {
|
if (shouldFollowUp && followupHints.length > 0) {
|
||||||
let hint = followupHints[Math.min(currentFollowUpCount, followupHints.length - 1)];
|
let hint = followupHints[Math.min(currentFollowUpCount, followupHints.length - 1)];
|
||||||
hint = hint.replace(/^如果.+?追问[::]\s*/i, '').replace(/^[""「『]|[""」』]$/g, '');
|
hint = hint.replace(/^如果.+?追问[::]\s*/i, '').replace(/^[""「『]|[""」』]$/g, '');
|
||||||
const hintLabel = isZh
|
followupHintMsg = new AIMessage(hint);
|
||||||
? `让我帮你完善一下:${hint}`
|
|
||||||
: isJa
|
|
||||||
? `もう少し詳しく伺います:${hint}`
|
|
||||||
: `Let me help you elaborate: ${hint}`;
|
|
||||||
followupHintMsg = new AIMessage(hintLabel);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const feedbackMessage = new AIMessage(
|
const feedbackMessage = new AIMessage(
|
||||||
|
|||||||
Reference in New Issue
Block a user