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,23 @@
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace PaperlessAI.Models.LMStudio;
|
||||
|
||||
public class LmStudioLlmResponse
|
||||
{
|
||||
[JsonProperty("document_Id")]
|
||||
public long DocumentId { get; set; } = -1;
|
||||
|
||||
[JsonProperty("success")]
|
||||
public bool Success { get; set; } = false;
|
||||
|
||||
[JsonProperty("message")]
|
||||
public string Message { get; set; } = string.Empty;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
public bool IsValid => !string.IsNullOrWhiteSpace(Message) && DocumentId != -1;
|
||||
}
|
||||
Reference in new issue
Block a user