69 lines
1.7 KiB
C#
69 lines
1.7 KiB
C#
namespace LinkToolAddin.host.llm.entity
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
using System.Globalization;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
public partial class LlmChat
|
|
{
|
|
[JsonProperty("choices")]
|
|
public List<Choice> Choices { get; set; }
|
|
|
|
[JsonProperty("object")]
|
|
public string Object { get; set; }
|
|
|
|
[JsonProperty("usage")]
|
|
public Usage Usage { get; set; }
|
|
|
|
[JsonProperty("created")]
|
|
public long Created { get; set; }
|
|
|
|
[JsonProperty("system_fingerprint")]
|
|
public object SystemFingerprint { get; set; }
|
|
|
|
[JsonProperty("model")]
|
|
public string Model { get; set; }
|
|
|
|
[JsonProperty("id")]
|
|
public string Id { get; set; }
|
|
}
|
|
|
|
public partial class Choice
|
|
{
|
|
[JsonProperty("message")]
|
|
public Message Message { get; set; }
|
|
|
|
[JsonProperty("finish_reason")]
|
|
public string FinishReason { get; set; }
|
|
|
|
[JsonProperty("index")]
|
|
public long Index { get; set; }
|
|
|
|
[JsonProperty("logprobs")]
|
|
public object Logprobs { get; set; }
|
|
}
|
|
|
|
public partial class Usage
|
|
{
|
|
[JsonProperty("prompt_tokens")]
|
|
public long PromptTokens { get; set; }
|
|
|
|
[JsonProperty("completion_tokens")]
|
|
public long CompletionTokens { get; set; }
|
|
|
|
[JsonProperty("total_tokens")]
|
|
public long TotalTokens { get; set; }
|
|
|
|
[JsonProperty("prompt_tokens_details")]
|
|
public PromptTokensDetails PromptTokensDetails { get; set; }
|
|
}
|
|
|
|
public partial class PromptTokensDetails
|
|
{
|
|
[JsonProperty("cached_tokens")]
|
|
public long CachedTokens { get; set; }
|
|
}
|
|
} |