diff --git a/Objects/EbDataObject.cs b/Objects/EbDataObject.cs index 15119e5a..ace10b58 100644 --- a/Objects/EbDataObject.cs +++ b/Objects/EbDataObject.cs @@ -18,7 +18,7 @@ public EbDataObject() { } [OnDeserialized] public void OnDeserializedMethod(StreamingContext context) - { + { this.BareControlHtml = this.GetBareHtml(); this.ObjType = this.GetType().Name.Substring(2, this.GetType().Name.Length - 2); } diff --git a/ServiceStack_Artifacts/DbClient_Artifacts.cs b/ServiceStack_Artifacts/DbClient_Artifacts.cs index f47bc23f..227a681b 100644 --- a/ServiceStack_Artifacts/DbClient_Artifacts.cs +++ b/ServiceStack_Artifacts/DbClient_Artifacts.cs @@ -185,7 +185,7 @@ public class EbDbExplorerTablesDict public EbDbExplorerTablesDict() { this.TableCollection = new Dictionary(); - this.FunctionCollection = new List(); + this.FunctionCollection = new List(); } } diff --git a/ServiceStack_Artifacts/OpenAI_Artifacts.cs b/ServiceStack_Artifacts/OpenAI_Artifacts.cs new file mode 100644 index 00000000..08ad40ec --- /dev/null +++ b/ServiceStack_Artifacts/OpenAI_Artifacts.cs @@ -0,0 +1,65 @@ +using ExpressBase.Common; +using System; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Text; + +namespace ExpressBase.Objects.ServiceStack_Artifacts +{ + internal class OpenAI_Artifacts + { + + } + + [DataContract] + public class OpenAIQueryRequest + { + [DataMember(Order = 1)] + public string Query { get; set; } + [DataMember(Order = 2)] + public string SessionId { get; set; } + [DataMember(Order = 3)] + public bool IsAdminOwn { get; set; } + [DataMember(Order = 4)] + public string SolutionId { get; set; } + } + + [DataContract] + public class OpenAISessionStoreResponse + { + [DataMember(Order = 1)] + public int Id { get; set; } + } + + [DataContract] + public class OpenAISessionStoreRequest + { + [DataMember(Order = 1)] + public string SessionId { get; set; } + + [DataMember(Order = 2)] + public string ChatHeading { get; set; } + + [DataMember(Order = 3)] + public string Query { get; set; } + + [DataMember(Order = 4)] + public string UserId { get; set; } + } + + [DataContract] + public class SessionObject + { + [DataMember(Order = 1)] + public string SessionId { get; set; } + + [DataMember(Order = 2)] + public string ChatHeading { get; set; } + } + + public class ChatHistoryResponse + { + [DataMember(Order = 1)] + public Dictionary Sessions { get; set; } + } +}