hotfix duplicate welcome message
This commit is contained in:
parent
5d10f3d305
commit
af01567fae
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue