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;
}
