51 lines
1.2 KiB
C#
51 lines
1.2 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 ApplicationOutput
|
|
{
|
|
[JsonProperty("output")]
|
|
public Output Output { get; set; }
|
|
|
|
[JsonProperty("usage")]
|
|
public Usage Usage { get; set; }
|
|
|
|
[JsonProperty("request_id")]
|
|
public Guid RequestId { get; set; }
|
|
}
|
|
|
|
public partial class Output
|
|
{
|
|
[JsonProperty("finish_reason")]
|
|
public string FinishReason { get; set; }
|
|
|
|
[JsonProperty("session_id")]
|
|
public string SessionId { get; set; }
|
|
|
|
[JsonProperty("text")]
|
|
public string Text { get; set; }
|
|
}
|
|
|
|
public partial class Usage
|
|
{
|
|
[JsonProperty("models")]
|
|
public List<Model> Models { get; set; }
|
|
}
|
|
|
|
public partial class Model
|
|
{
|
|
[JsonProperty("output_tokens")]
|
|
public long OutputTokens { get; set; }
|
|
|
|
[JsonProperty("model_id")]
|
|
public string ModelId { get; set; }
|
|
|
|
[JsonProperty("input_tokens")]
|
|
public long InputTokens { get; set; }
|
|
}
|
|
} |