KtorOpenAiGenerationRemoteDataSource

Coordinates KtorOpenAiGenerationRemoteDataSource behavior in the SDAI data layer.

Author

Dmitriy Moroz

Throws

when the delegated operation cannot complete.

Constructors

Link copied to clipboard
constructor(api: OpenAiGenerationApi)

Properties

Link copied to clipboard

Exposes the api value used by the SDAI data layer.

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

Executes the validateApiKey step in the SDAI data layer.