添加提示

This commit is contained in:
zpc 2024-07-17 16:00:31 +08:00
parent 056b3144c5
commit eb5009f437

View File

@ -251,6 +251,10 @@ namespace HuanMeng.MiaoYu.Code.Chat
var claude = charact.ModelConfig.GetClaudeChatConfig();
IChat chat = new ClaudeChat(claude, HttpClientFactory);
var response = await chat.MessagesAsync(baseChatParams);
if (response == null)
{
throw new Exception("ai出现错误");
}
var claudeChatResponse = response as ClaudeChatResponse;
#endregion
T_Chat t_Chat = new T_Chat