namespace Dpz.Core.Service.Network.Models.XunFei;
public class XunFeiResponseUsage
{
public UsageText? Text { get; set; }
public class UsageText
{
[JsonPropertyName("question_tokens")]
public int QuestionTokens { get; set; }
/// <summary>
/// 包含历史问题的总tokens大小
/// </summary>
[JsonPropertyName("prompt_tokens")]
public int PromptTokens { get; set; }
/// <summary>
/// 回答的tokens大小
/// </summary>
[JsonPropertyName("completion_tokens")]
public int CompletionTokens { get; set; }
/// <summary>
/// prompt_tokens和completion_tokens的和,也是本次交互计费的tokens大小
/// </summary>
[JsonPropertyName("total_tokens")]
public int TotalTokens { get; set; }
}
}