54 lines
1.3 KiB
C#
54 lines
1.3 KiB
C#
namespace LinkToolAddin.host.llm.entity.stream
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
using System.Globalization;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
|
|
public partial class LlmStreamChat
|
|
{
|
|
[JsonProperty("choices")]
|
|
public Choice[] Choices { get; set; }
|
|
|
|
[JsonProperty("object")]
|
|
public string Object { get; set; }
|
|
|
|
[JsonProperty("usage")]
|
|
public object 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("finish_reason")]
|
|
public string FinishReason { get; set; }
|
|
|
|
[JsonProperty("delta")]
|
|
public Delta Delta { get; set; }
|
|
|
|
[JsonProperty("index")]
|
|
public long Index { get; set; }
|
|
|
|
[JsonProperty("logprobs")]
|
|
public object Logprobs { get; set; }
|
|
}
|
|
|
|
public partial class Delta
|
|
{
|
|
[JsonProperty("content")]
|
|
public string Content { get; set; }
|
|
}
|
|
} |