add: 使用依赖注入管理IChatRobot

添加默认实现
This commit is contained in:
2023-10-11 14:23:38 +08:00
parent 6a2068e8d1
commit 4aa89c4385
8 changed files with 105 additions and 36 deletions

View File

@@ -1,8 +1,12 @@
using Katheryne.Abstractions;
namespace Frontend.Models;
public class Chat
{
public Guid Guid { get; } = Guid.NewGuid();
public required IChatRobot Robot { get; init; }
public string Title { get; set; } = string.Empty;