KtorHordeGenerationApi
class KtorHordeGenerationApi(val httpClient: HttpClient, val baseUrl: String) : HordeGenerationApi(source)
Ktor implementation of Horde generation, status polling, and image download calls.
Author
Dmitriy Moroz
Parameters
httpClient
Configured Ktor client used to send provider requests.
baseUrl
Horde API base URL.
Types
Functions
Link copied to clipboard
Executes the cancelRequest step in the SDAI network layer.
Link copied to clipboard
Executes the checkGeneration step in the SDAI network layer.
Link copied to clipboard
Executes the checkHordeApiKey step in the SDAI network layer.
Link copied to clipboard
Executes the checkStatus step in the SDAI network layer.
Link copied to clipboard
Executes the downloadImage step in the SDAI network layer.
Link copied to clipboard
open suspend override fun generateAsync(apiKey: String, request: HordeGenerationAsyncRequest): HordeGenerationAsyncResponse
Executes the generateAsync step in the SDAI network layer.
Link copied to clipboard
Executes the function step in the SDAI network layer.