KtorStableDiffusionGenerationRemoteDataSource

Coordinates KtorStableDiffusionGenerationRemoteDataSource behavior in the SDAI data layer.

Author

Dmitriy Moroz

Constructors

Properties

Link copied to clipboard

Exposes the api value used by the SDAI data layer.

Functions

Link copied to clipboard
open suspend override fun checkAvailability(baseUrl: String, credentials: AuthorizationCredentials)

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.