using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OllamaStudy.UseHttpClient.OllamaResponse { /// /// Generate 响应对象 /// public class GenerateResponse : ResponseBase { /// /// 完成原因 /// [JsonPropertyName("done_reason")] public string? done_reason { get; set; } /// /// 目前未知 /// [JsonPropertyName("context")] public List context { get; set; } = new List(); /// /// 总耗时 /// [JsonPropertyName("total_duration")] public long total_duration { get; set; } /// /// 加载耗时 /// [JsonPropertyName("load_duration")] public long load_duration { get; set; } /// /// 提示词验证数量 /// [JsonPropertyName("prompt_eval_count")] public long prompt_eval_count { get; set; } /// /// 提示词验证耗时 /// [JsonPropertyName("prompt_eval_duration")] public long prompt_eval_duration { get; set; } /// /// 验证次数 /// [JsonPropertyName("eval_count")] public long eval_count { get; set; } /// /// 验证耗时 /// [JsonPropertyName("eval_duration")] public long eval_duration { get; set; } } }