KtorHuggingFaceModelsApi

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

Ktor implementation of Hugging Face model discovery counted as configuration sync traffic.

Author

Dmitriy Moroz

Parameters

httpClient

Configured Ktor client used to send provider requests.

apiBaseUrl

Hugging Face API base URL used for model search.

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.