18 lines
475 B
C#
18 lines
475 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace PaperlessAI.Models.LMStudio;
|
|
|
|
public class LmStudioChatResponse
|
|
{
|
|
[JsonProperty("model_instance_id")]
|
|
public string? ModelInstanceId { get; set; }
|
|
|
|
[JsonProperty("output")]
|
|
List<LmStudioChatResponseOutput>? Outputs { get; set; }
|
|
|
|
public List<LmStudioChatResponseOutput>? GetOutputsByResponseType(string responseType)
|
|
{
|
|
return Outputs?.Where(x => x.Type?.ToUpper() == responseType.ToUpper()).ToList();
|
|
}
|
|
}
|