From af01567fae0378ad18e12b3423385b35ac793800 Mon Sep 17 00:00:00 2001 From: "nick.yi" Date: Thu, 6 Mar 2025 20:23:40 +0800 Subject: [PATCH] hotfix duplicate welcome message --- src/Infrastructure/BotSharp.Core/Realtime/RealtimeHub.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Infrastructure/BotSharp.Core/Realtime/RealtimeHub.cs b/src/Infrastructure/BotSharp.Core/Realtime/RealtimeHub.cs index 6d2b10ec..219cd6ba 100644 --- a/src/Infrastructure/BotSharp.Core/Realtime/RealtimeHub.cs +++ b/src/Infrastructure/BotSharp.Core/Realtime/RealtimeHub.cs @@ -103,10 +103,10 @@ public class RealtimeHub : IRealtimeHub await completer.UpdateSession(conn, turnDetection: false); // Add dialog history - foreach (var item in dialogs) - { - await completer.InsertConversationItem(item); - } + //foreach (var item in dialogs) + //{ + // await completer.InsertConversationItem(item); + //} if (dialogs.LastOrDefault()?.Role == AgentRole.Assistant) {