Merge pull request #397 from hchen2020/master

Restore Append
This commit is contained in:
C. Oceania 2024-04-06 19:01:53 -05:00 committed by GitHub
commit 6cc1878676
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,11 +28,11 @@ public class ConversationStorage : IConversationStorage
var dialogElements = new List<DialogElement>();
// Prevent duplicate record to be inserted
/*var dialogs = db.GetConversationDialogs(conversationId);
var dialogs = db.GetConversationDialogs(conversationId);
if (dialogs.Any(x => x.MetaData.MessageId == dialog.MessageId && x.Content == dialog.Content))
{
return;
}*/
}
if (dialog.Role == AgentRole.Function)
{