mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 00:47:21 +00:00
Added the guided chat to the BeyondFacts Lab (#1177)
This commit is contained in:
1 parent
e77645f44c
commit
79e0c80031
55 files changed
+3481
-72
No files matched your search
+6
@@ -1,5 +1,6 @@
|
||||
using System.Globalization;
|
||||
|
||||
using AIStudio.Chat;
|
||||
using AIStudio.Dialogs;
|
||||
|
||||
using DialogOptions = AIStudio.Dialogs.DialogOptions;
|
||||
@@ -133,7 +134,12 @@ public partial class BeyondFactsLabAssistant
|
||||
|
||||
await this.RunStoreActionAsync(async () =>
|
||||
{
|
||||
// An answer which still runs would otherwise end after the preparation is gone:
|
||||
var chatIds = await this.ConversationService.ForgetProjectAsync(project.ProjectId);
|
||||
await this.Store.DeleteAsync(project.ProjectId);
|
||||
|
||||
// What the chats received goes along with them; whatever this misses, the cleanup at the next start removes:
|
||||
await ChatProvenance.ForgetChatsAsync(chatIds);
|
||||
this.selectedProject = null;
|
||||
await this.ReloadProjectsAsync(null);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user