KtorHuggingFaceGenerationRemoteDataSource
class KtorHuggingFaceGenerationRemoteDataSource(val api: HuggingFaceGenerationApi) : HuggingFaceGenerationDataSource.Remote(source)
Coordinates KtorHuggingFaceGenerationRemoteDataSource behavior in the SDAI data layer.
Author
Dmitriy Moroz
Functions
Link copied to clipboard
open suspend override fun imageToImage(apiKey: String, modelName: String, payload: ImageToImagePayload): AiGenerationResult
Executes the imageToImage step in the SDAI data layer.
Link copied to clipboard
open suspend override fun textToImage(apiKey: String, modelName: String, payload: TextToImagePayload): AiGenerationResult
Executes the textToImage step in the SDAI data layer.
Link copied to clipboard
Executes the validateApiKey step in the SDAI data layer.