KtorStableDiffusionGenerationRemoteDataSource
class KtorStableDiffusionGenerationRemoteDataSource(val api: Automatic1111GenerationApi) : StableDiffusionGenerationDataSource.Remote(source)
Coordinates KtorStableDiffusionGenerationRemoteDataSource behavior in the SDAI data layer.
Author
Dmitriy Moroz
Functions
Link copied to clipboard
Executes the checkAvailability step in the SDAI data layer.
Link copied to clipboard
open suspend override fun imageToImage(baseUrl: String, credentials: AuthorizationCredentials, payload: ImageToImagePayload): List<AiGenerationResult>
Executes the imageToImage step in the SDAI data layer.
Link copied to clipboard
open suspend override fun interruptGeneration(baseUrl: String, credentials: AuthorizationCredentials)
Performs the SDAI side effect handled by interruptGeneration.
Link copied to clipboard
open suspend override fun textToImage(baseUrl: String, credentials: AuthorizationCredentials, payload: TextToImagePayload): List<AiGenerationResult>
Executes the textToImage step in the SDAI data layer.