Fix repeated local replies
This commit is contained in:
@@ -362,7 +362,6 @@ export class LocalVoiceSession {
|
||||
}
|
||||
|
||||
utterance.text = transcript.trim();
|
||||
this.memory.addUserTurn(utterance);
|
||||
this.options.logger.info("Local transcript", utterance.text);
|
||||
if (this.options.config.DEBUG_TEXT_EVENTS) {
|
||||
console.log(`\n[you] ${utterance.text}`);
|
||||
@@ -376,6 +375,7 @@ export class LocalVoiceSession {
|
||||
reply = "지금은 답변 생성에 실패했습니다. 잠시 후 다시 말씀해 주세요.";
|
||||
}
|
||||
|
||||
this.memory.addUserTurn(utterance);
|
||||
this.memory.addAssistantTurn(reply);
|
||||
this.options.logger.info("Local reply", reply);
|
||||
if (this.options.config.DEBUG_TEXT_EVENTS) {
|
||||
|
||||
Reference in New Issue
Block a user