/* Options: Date: 2025-01-08 03:05:19 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazordiffusion.com //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: False //ExportValueTypes: False IncludeTypes: QueryGenerationApiProviders.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using AiServer.ServiceModel.Types; using AiServer.ServiceModel; namespace AiServer.ServiceModel { public partial class QueryGenerationApiProviders : QueryDb, IReturn> { public virtual int? Id { get; set; } public virtual string Name { get; set; } } } namespace AiServer.ServiceModel.Types { public partial class AiProviderBase : ApiProviderBase { public virtual List Models { get; set; } = []; } public enum AiServiceProvider { Replicate, Comfy, OpenAi, } public partial class ApiProviderBase { public virtual int Id { get; set; } public virtual string Name { get; set; } public virtual string ApiKeyVar { get; set; } public virtual string ApiKey { get; set; } public virtual string ApiKeyHeader { get; set; } public virtual string ApiBaseUrl { get; set; } public virtual string HeartbeatUrl { get; set; } public virtual int Concurrency { get; set; } public virtual int Priority { get; set; } public virtual bool Enabled { get; set; } public virtual DateTime? OfflineDate { get; set; } public virtual DateTime CreatedDate { get; set; } } public partial class ApiTypeBase { public virtual int Id { get; set; } public virtual string ApiBaseUrl { get; set; } public virtual string ApiKeyHeader { get; set; } public virtual string Name { get; set; } public virtual string Website { get; set; } public virtual string Icon { get; set; } public virtual Dictionary ApiModels { get; set; } = new(); public virtual AiServiceProvider Provider { get; set; } } public partial class GenerationApiProvider : AiProviderBase { [References(typeof(AiServer.ServiceModel.Types.GenerationApiType))] public virtual int GenerationApiTypeId { get; set; } public virtual GenerationApiType Type { get; set; } } public partial class GenerationApiType : ApiTypeBase { } }