KtorHuggingFaceGenerationRemoteDataSource

Coordinates KtorHuggingFaceGenerationRemoteDataSource behavior in the SDAI data layer.

Author

Dmitriy Moroz

Constructors

constructor(api: HuggingFaceGenerationApi)

Properties

Link copied to clipboard

Exposes the api value used by the SDAI data layer.

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
open suspend override fun validateApiKey(apiKey: String): Boolean

Executes the validateApiKey step in the SDAI data layer.