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) {
|
||||
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(
|
||||
|
||||
Reference in New Issue
Block a user