Files
QYZH.InteractiveMagazine/QYZH.InteractiveMagazine.Models/Settings/AiChatSettings.cs
glz bf333cd718 feat: 新增AI聊天服务,重构任务提示词相关逻辑
1.  新增AI聊天服务接口、实现、控制器及相关DTO、配置类
2.  调整JournalPageTaskTypeEnum枚举值修正
3.  合并任务的基础Prompt和自定义Prompt为单个Prompt字段
4.  精简任务输出DTO冗余属性
2026-06-24 15:06:40 +08:00

38 lines
832 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace QYZH.InteractiveMagazine.Models.Settings;
/// <summary>
/// AI聊天配置
/// </summary>
public class AiChatSettings
{
/// <summary>
/// API密钥
/// </summary>
public string? ApiKey { get; set; }
/// <summary>
/// API基础地址OpenAI兼容
/// </summary>
public string? BaseUrl { get; set; }
/// <summary>
/// 模型名称
/// </summary>
public string? Model { get; set; }
/// <summary>
/// 请求超时时间(秒)
/// </summary>
public int TimeoutSeconds { get; set; } = 300;
/// <summary>
/// 最大生成Token数
/// </summary>
public int MaxTokens { get; set; } = 2000;
/// <summary>
/// 采样温度0-2值越低输出越确定
/// </summary>
public double Temperature { get; set; } = 0.5;
}