KtorSwarmUiGenerationRemoteDataSource
class KtorSwarmUiGenerationRemoteDataSource(val api: SwarmUiGenerationApi) : SwarmUiGenerationDataSource.Remote(source)
Coordinates KtorSwarmUiGenerationRemoteDataSource behavior in the SDAI data layer.
Author
Dmitriy Moroz
Throws
when the delegated operation cannot complete.
Functions
Link copied to clipboard
Executes the currentTimeMillis step in the SDAI data layer.
Link copied to clipboard
open suspend override fun imageToImage(baseUrl: String, sessionId: String, model: String, credentials: AuthorizationCredentials, payload: ImageToImagePayload): AiGenerationResult
Executes the imageToImage step in the SDAI data layer.
Link copied to clipboard
open suspend override fun textToImage(baseUrl: String, sessionId: String, model: String, credentials: AuthorizationCredentials, payload: TextToImagePayload): AiGenerationResult
Executes the textToImage step in the SDAI data layer.