File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Infrastructure/BotSharp.Core.Realtime/Services Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments