mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-15 06:13:48 +00:00
Improve ipc (#102)
This commit is contained in:
1 parent
47f5756e5a
commit
fc64c0b505
81 files changed
+2408
-799
No files matched your search
@@ -5,7 +5,6 @@ using System.Text.Json.Serialization;
|
||||
using AIStudio.Chat;
|
||||
using AIStudio.Dialogs;
|
||||
using AIStudio.Settings;
|
||||
using AIStudio.Tools;
|
||||
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
@@ -24,6 +23,9 @@ public partial class Workspaces : ComponentBase
|
||||
[Inject]
|
||||
private ThreadSafeRandom RNG { get; init; } = null!;
|
||||
|
||||
[Inject]
|
||||
private ILogger<Workspaces> Logger { get; init; } = null!;
|
||||
|
||||
[Parameter]
|
||||
public ChatThread? CurrentChatThread { get; set; }
|
||||
|
||||
@@ -309,7 +311,7 @@ public partial class Workspaces : ComponentBase
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.WriteLine(e);
|
||||
this.Logger.LogError($"Failed to load chat from '{chatPath}': {e.Message}");
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user