More work
This commit is contained in:
1 parent
c06f06c6ce
commit
8b476e6939
20 files changed
+871
-22
No files matched your search
@@ -0,0 +1,17 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user