KtorHuggingFaceGenerationApi

constructor(httpClient: HttpClient, apiBaseUrl: String, inferenceBaseUrl: String, json: Json = defaultNetworkJson)(source)

Parameters

httpClient

Configured Ktor client used to send provider requests.

apiBaseUrl

Hugging Face API base URL used for model validation.

inferenceBaseUrl

Hugging Face inference base URL used for generation requests.

json

JSON codec used for counted request/response payloads.


constructor(apiBaseUrl: String, inferenceBaseUrl: String)(source)