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.

43 lines
1003 B
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

namespace OllamaStudy.Core.OllamaResponse;
/// <summary>
/// 响应基类
/// </summary>
public class ResponseBase
{
/// <summary>
/// 模型标识
/// </summary>
/// <remarks>
/// 名称遵循 modeltag 格式:
/// 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; }
}