using System.Collections.Generic;
#region DeepSeek API Key 配置数据模型
public class Configuration
{
    public string ApiKey { get; }
    public Configuration(string apiKey)
    {
        ApiKey = apiKey;
    }
}
#endregion
#region DeepSeek 请求数据模型
/// 
/// 聊天对话消息完成请求
/// 
public class ChatCompletionRequest
{
    /// 
    /// 消息列表
    /// 
    public List messages;
    /// 
    /// AI模型,是聊天模型还是推理模型
    /// 
    public string model;
    /// 
    /// 如果设置为 True,将会以 SSE(server-sent events)的形式以流式发送消息增量。消息流以 data: [DONE] 结尾。 unity一般设置false
    /// 
    public bool stream;
    //最大token
    public int max_tokens;
}
public class ChatMessage
{
    /// 
    /// 消息内容
    /// 
    public string content;
    /// 
    /// 角色,是哪个角色的消息(是用户消息还是DP系统消息又或者是我们自定义的NPC角色消息)
    /// 
    public string role;
}
#endregion
# region DeepSeek 响应数据模型
public class ChatCompletionResponse
{
    /// 
    /// iD
    /// 
    public string id;
    /// 
    /// 创建时间
    /// 
    public long created;
    /// 
    ///  AI模型,是聊天模型还是推理模型
    /// 
    public string model;
    /// 
    /// 可选择的消息内容
    /// 
    public List choices;
}
public class ChatResponseMessage
{
    /// 
    /// 消息索引
    /// 
    public int index;
    /// 
    /// 消息列表
    /// 
    public ChatMessage message;
    /// 
    /// AI模型,是聊天模型还是推理模型
    /// 
    public string finish_reason;
}
#endregion