KtorHuggingFaceGenerationApi
class KtorHuggingFaceGenerationApi(val httpClient: HttpClient, val apiBaseUrl: String, val inferenceBaseUrl: String, val json: Json = defaultNetworkJson) : HuggingFaceGenerationApi(source)
Ktor implementation of Hugging Face generation requests with counted inference traffic.
Author
Dmitriy Moroz
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.