KtorHuggingFaceModelsApi

class KtorHuggingFaceModelsApi(val httpClient: HttpClient, val apiBaseUrl: String) : HuggingFaceModelsApi(source)

Coordinates KtorHuggingFaceModelsApi behavior in the SDAI network layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(httpClient: HttpClient, apiBaseUrl: String)
constructor(apiBaseUrl: String)

Creates a new SDAI component instance.

Types

Link copied to clipboard
private object Companion

Provides the companion object singleton used by the SDAI network layer.

Properties

Link copied to clipboard
private val apiBaseUrl: String

Exposes the apiBaseUrl value used by the SDAI network layer.

Link copied to clipboard
private val httpClient: HttpClient

Exposes the httpClient value used by the SDAI network layer.

Functions

Link copied to clipboard
open suspend override fun fetchTextToImageModels(): List<HuggingFaceModelRaw>

Loads SDAI data through fetchTextToImageModels.