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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace OllamaStudy.Core.OllamaResponse;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 响应基类
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ResponseBase
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 模型标识
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// 名称遵循 model:tag 格式:
|
|
|
|
|
/// model 可以具有可选的命名空间,例如 example/model
|
|
|
|
|
/// tag 用于标识特定版本,是可选的;如果未提供,则默认为 latest
|
|
|
|
|
/// </remarks>
|
|
|
|
|
/// <example>
|
|
|
|
|
/// llama3:70b
|
|
|
|
|
/// tianyi/orca-mini:0.5b
|
|
|
|
|
/// </example>
|
|
|
|
|
[JsonPropertyName("model")]
|
|
|
|
|
public required string Model { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("created_at")]
|
|
|
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 响应内容
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("response")]
|
|
|
|
|
public string? Response { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 响应是否全部完成
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("done")]
|
|
|
|
|
public bool Done { get; set; }
|
|
|
|
|
}
|