KtorOpenAiGenerationRemoteDataSource
class KtorOpenAiGenerationRemoteDataSource(val api: OpenAiGenerationApi) : OpenAiGenerationDataSource.Remote(source)
Coordinates KtorOpenAiGenerationRemoteDataSource behavior in the SDAI data layer.
Author
Dmitriy Moroz
Throws
when the delegated operation cannot complete.
Functions
Link copied to clipboard
open suspend override fun textToImage(apiKey: 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.