Skip to content

Commit 8ec7ecd

Browse files
authored
Merge pull request #991 from hchen2020/master
SetMessageId
2 parents f5bfdb5 + 23df406 commit 8ec7ecd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Infrastructure/BotSharp.Core.Realtime/Services/RealtimeHub.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ private async Task ConnectToModel(WebSocket userWebSocket)
8888

8989
var storage = _services.GetRequiredService<IConversationStorage>();
9090
var dialogs = convService.GetDialogHistory();
91-
/*if (dialogs.Count == 0)
91+
if (dialogs.Count == 0)
9292
{
9393
dialogs.Add(new RoleDialogModel(AgentRole.User, "Hi"));
9494
storage.Append(_conn.ConversationId, dialogs.First());
95-
}*/
95+
}
9696

9797
routing.Context.SetDialogs(dialogs);
98-
// routing.Context.SetMessageId(_conn.ConversationId, dialogs.Last().MessageId);
98+
routing.Context.SetMessageId(_conn.ConversationId, dialogs.Last().MessageId);
9999

100100
var states = _services.GetRequiredService<IConversationStateService>();
101101

0 commit comments

Comments
 (0)