You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.6 KiB
C#

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