修改字段
This commit is contained in:
parent
24bb5a9a0d
commit
1b5faa06ea
|
|
@ -269,7 +269,7 @@ public class ChatBLL : MiaoYuBase
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
var claudeChatResponse = await Chat(charact, mess);
|
var claudeChatResponse = await Chat(charact, mess);
|
||||||
if (claudeChatResponse.Message.Contains("香港") || claudeChatResponse.Message.Contains("台湾"))
|
if (claudeChatResponse.Message.Contains("香港") || claudeChatResponse.Message.Contains("台湾")|||| claudeChatResponse.Message.Contains("摇头丸"))
|
||||||
{
|
{
|
||||||
var chatMessage = new ChatMessageDto()
|
var chatMessage = new ChatMessageDto()
|
||||||
{
|
{
|
||||||
|
|
@ -377,7 +377,7 @@ public class ChatBLL : MiaoYuBase
|
||||||
{
|
{
|
||||||
ClaudeType = ChatMessageType.text.ToString(),
|
ClaudeType = ChatMessageType.text.ToString(),
|
||||||
Content = $"您还剩余{cishu:F0}次聊天次数",
|
Content = $"您还剩余{cishu:F0}次聊天次数",
|
||||||
Role = ChatRole.tips.ToString(),
|
Role = ChatRole.pay.ToString(),
|
||||||
Timestamp = DateTime.Now,
|
Timestamp = DateTime.Now,
|
||||||
Id = 0
|
Id = 0
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -438,14 +438,12 @@ public partial class MiaoYuContext : MultiTenantDbContext//DbContext
|
||||||
.HasMaxLength(100)
|
.HasMaxLength(100)
|
||||||
.HasComment("聊天返回的Id");
|
.HasComment("聊天返回的Id");
|
||||||
entity.Property(e => e.ClaudeModel)
|
entity.Property(e => e.ClaudeModel)
|
||||||
.HasMaxLength(50)
|
.HasMaxLength(100)
|
||||||
.HasComment("人物模型,聊天返回的模型");
|
.HasComment("人物模型,聊天返回的模型");
|
||||||
entity.Property(e => e.ClaudeType)
|
entity.Property(e => e.ClaudeType)
|
||||||
.HasMaxLength(20)
|
.HasMaxLength(20)
|
||||||
.HasComment("聊天返回的消息的类型");
|
.HasComment("聊天返回的消息的类型");
|
||||||
entity.Property(e => e.Content)
|
entity.Property(e => e.Content).HasComment("消息内容");
|
||||||
.HasMaxLength(1000)
|
|
||||||
.HasComment("消息内容");
|
|
||||||
entity.Property(e => e.CreateTime)
|
entity.Property(e => e.CreateTime)
|
||||||
.HasComment("创建时间")
|
.HasComment("创建时间")
|
||||||
.HasColumnType("datetime");
|
.HasColumnType("datetime");
|
||||||
|
|
|
||||||
|
|
@ -31,5 +31,9 @@ namespace HuanMeng.MiaoYu.Model.EnumModel.Chat
|
||||||
/// 简介
|
/// 简介
|
||||||
/// </summary>
|
/// </summary>
|
||||||
profile,
|
profile,
|
||||||
|
/// <summary>
|
||||||
|
/// 支付
|
||||||
|
/// </summary>
|
||||||
|
pay,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user