/* Options: Date: 2025-01-08 03:13:10 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazordiffusion.com //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateApiProvider.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* open class CreateApiProvider : IReturn, ICreateDb { @Validate(Validator="GreaterThan(0)") open var apiTypeId:Int? = null open var apiBaseUrl:String? = null @Validate(Validator="NotEmpty") open var name:String? = null open var apiKeyVar:String? = null open var apiKey:String? = null open var apiKeyHeader:String? = null open var heartbeatUrl:String? = null open var taskPaths:HashMap? = null open var concurrency:Int? = null open var priority:Int? = null open var enabled:Boolean? = null open var models:ArrayList? = null open var selectedModels:ArrayList? = null companion object { private val responseType = IdResponse::class.java } override fun getResponseType(): Any? = CreateApiProvider.responseType } @DataContract open class IdResponse { @DataMember(Order=1) open var id:String? = null @DataMember(Order=2) open var responseStatus:ResponseStatus? = null } open class ApiProvider { open var id:Int? = null open var name:String? = null open var apiBaseUrl:String? = null open var apiTypeId:Int? = null open var apiKeyVar:String? = null open var apiKey:String? = null open var apiKeyHeader:String? = null open var heartbeatUrl:String? = null open var concurrency:Int? = null open var priority:Int? = null open var enabled:Boolean? = null open var offlineDate:Date? = null open var createdDate:Date? = null open var models:ArrayList = ArrayList() open var apiType:ApiType? = null @Ignore() open var selectedModels:ArrayList = ArrayList() } enum class TaskType(val value:Int) { OpenAiChat(1), Comfy(2), } open class ApiProviderModel { open var model:String? = null open var apiModel:String? = null }