Configuration

data class Configuration(val serverUrl: String = "", val swarmUiUrl: String = "", val swarmUiModel: String = "", val demoMode: Boolean = false, val source: ServerSource = ServerSource.AUTOMATIC1111, val hordeApiKey: String = "", val openAiApiKey: String = "", val huggingFaceApiKey: String = "", val huggingFaceModel: String = "", val stabilityAiApiKey: String = "", val stabilityAiEngineId: String = "", val authCredentials: AuthorizationCredentials = AuthorizationCredentials.None, val localOnnxModelId: String = "", val localOnnxModelPath: String = "", val localMediaPipeModelId: String = "", val localMediaPipeModelPath: String = "")(source)

Carries Configuration data through the SDAI domain layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(serverUrl: String = "", swarmUiUrl: String = "", swarmUiModel: String = "", demoMode: Boolean = false, source: ServerSource = ServerSource.AUTOMATIC1111, hordeApiKey: String = "", openAiApiKey: String = "", huggingFaceApiKey: String = "", huggingFaceModel: String = "", stabilityAiApiKey: String = "", stabilityAiEngineId: String = "", authCredentials: AuthorizationCredentials = AuthorizationCredentials.None, localOnnxModelId: String = "", localOnnxModelPath: String = "", localMediaPipeModelId: String = "", localMediaPipeModelPath: String = "")

Properties

Link copied to clipboard

Exposes the authCredentials value used by the SDAI domain layer.

Link copied to clipboard

Exposes the demoMode value used by the SDAI domain layer.

Link copied to clipboard

Exposes the hordeApiKey value used by the SDAI domain layer.

Link copied to clipboard

Exposes the huggingFaceApiKey value used by the SDAI domain layer.

Link copied to clipboard

Exposes the huggingFaceModel value used by the SDAI domain layer.

Link copied to clipboard

Exposes the localMediaPipeModelId value used by the SDAI domain layer.

Link copied to clipboard

Exposes the localMediaPipeModelPath value used by the SDAI domain layer.

Link copied to clipboard

Exposes the localOnnxModelId value used by the SDAI domain layer.

Link copied to clipboard

Exposes the localOnnxModelPath value used by the SDAI domain layer.

Link copied to clipboard

Exposes the openAiApiKey value used by the SDAI domain layer.

Link copied to clipboard

Exposes the serverUrl value used by the SDAI domain layer.

Link copied to clipboard

Exposes the source value used by the SDAI domain layer.

Link copied to clipboard

Exposes the stabilityAiApiKey value used by the SDAI domain layer.

Link copied to clipboard

Exposes the stabilityAiEngineId value used by the SDAI domain layer.

Link copied to clipboard

Exposes the swarmUiModel value used by the SDAI domain layer.

Link copied to clipboard

Exposes the swarmUiUrl value used by the SDAI domain layer.