Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/refine-breakpoint

This commit is contained in:
Jicheng Lu 2024-03-26 12:40:39 -05:00
commit fc74da3eb0

View file

@ -32,8 +32,6 @@ public partial class ConversationService
message.SenderId = _user.Id;
}
_storage.Append(_conversationId, message);
var conv = _services.GetRequiredService<IConversationService>();
var dialogs = conv.GetDialogHistory();
@ -72,6 +70,12 @@ public partial class ConversationService
}
}
// Persist to storage
_storage.Append(_conversationId, message);
// Add to thread
dialogs.Add(message);
if (!stopCompletion)
{
// Routing with reasoning