Fix repeated local replies
This commit is contained in:
@@ -361,7 +361,6 @@ export class GuildVoiceSession extends EventEmitter {
|
||||
};
|
||||
|
||||
this.options.logger.info("Transcript committed", this.guildId, hydratedUtterance.speakerName, hydratedUtterance.text);
|
||||
this.memory.addUserTurn(hydratedUtterance);
|
||||
|
||||
if (this.options.config.DEBUG_TEXT_EVENTS) {
|
||||
await this.announce(`🗣️ ${hydratedUtterance.speakerName}: ${hydratedUtterance.text}`);
|
||||
@@ -375,6 +374,7 @@ export class GuildVoiceSession extends EventEmitter {
|
||||
reply = "지금은 답변 생성에 실패했습니다. 잠시 후 다시 말씀해 주세요.";
|
||||
}
|
||||
|
||||
this.memory.addUserTurn(hydratedUtterance);
|
||||
this.memory.addAssistantTurn(reply);
|
||||
if (this.options.config.DEBUG_TEXT_EVENTS) {
|
||||
await this.announce(`🤖 ${reply}`);
|
||||
|
||||
Reference in New Issue
Block a user