feat: 新增AI聊天服务,重构任务提示词相关逻辑
1. 新增AI聊天服务接口、实现、控制器及相关DTO、配置类 2. 调整JournalPageTaskTypeEnum枚举值修正 3. 合并任务的基础Prompt和自定义Prompt为单个Prompt字段 4. 精简任务输出DTO冗余属性
This commit is contained in:
23
QYZH.InteractiveMagazine.Models/Dto/Ai/AiChatDto.cs
Normal file
23
QYZH.InteractiveMagazine.Models/Dto/Ai/AiChatDto.cs
Normal file
@ -0,0 +1,23 @@
|
||||
namespace QYZH.InteractiveMagazine.Models.Dto;
|
||||
|
||||
/// <summary>
|
||||
/// AI聊天输入
|
||||
/// </summary>
|
||||
public class AiChatInput
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户需求文本
|
||||
/// </summary>
|
||||
public string Message { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// AI聊天输出
|
||||
/// </summary>
|
||||
public class AiChatOutput
|
||||
{
|
||||
/// <summary>
|
||||
/// AI返回的内容(Markdown格式提示词)
|
||||
/// </summary>
|
||||
public string Content { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user