/* Options: Date: 2025-01-08 03:21:59 SwiftVersion: 6.0 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazordiffusion.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: CreateApiProvider.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack public class CreateApiProvider : IReturn, Codable { public typealias Return = IdResponse // @Validate(Validator="GreaterThan(0)") public var apiTypeId:Int? public var apiBaseUrl:String? // @Validate(Validator="NotEmpty") public var name:String? public var apiKeyVar:String? public var apiKey:String? public var apiKeyHeader:String? public var heartbeatUrl:String? public var taskPaths:[TaskType:String] = [:] public var concurrency:Int? public var priority:Int? public var enabled:Bool? public var models:[ApiProviderModel] = [] public var selectedModels:[String] = [] required public init(){} } // @DataContract public class IdResponse : Codable { // @DataMember(Order=1) public var id:String? // @DataMember(Order=2) public var responseStatus:ResponseStatus? required public init(){} } public enum TaskType : Int, Codable { case OpenAiChat = 1 case Comfy = 2 } public class ApiProviderModel : Codable { public var model:String? public var apiModel:String? required public init(){} }