Package com.tnsai.llm.providers
Class TencentHunyuanClient
java.lang.Object
com.tnsai.llm.providers.AbstractLLMClient
com.tnsai.llm.providers.AbstractOpenAICompatibleClient
com.tnsai.llm.providers.TencentHunyuanClient
- All Implemented Interfaces:
com.tnsai.llm.LLMClient
Tencent Hunyuan LLM client.
Tencent's frontier model family is reachable via an OpenAI-compatible
chat-completions endpoint at
https://api.hunyuan.cloud.tencent.com/v1 — the same wire
format as GroqClient / XAIGrokClient / YiClient.
Supported models (at time of writing):
- hunyuan-pro — frontier tier
- hunyuan-standard — balanced cost / quality
- hunyuan-lite — cheap / fast small model
- hunyuan-vision — multimodal (image input)
The catalog evolves; check the live list at cloud.tencent.com/document/product/1729/111007.
Tencent Cloud also offers SigV3-signed authentication on a parallel native API path, but this client deliberately targets only the OpenAI-compatible surface — bearer-token auth keeps the wire format identical to every other OpenAI-shape provider in this module.
Configuration via environment variable:
HUNYUAN_API_KEY— Required for the cloud endpoint.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTencentHunyuanClient(String model) TencentHunyuanClient(String model, float temperature) TencentHunyuanClient(String model, float temperature, Float topP, Integer maxTokens) TencentHunyuanClient(String model, float temperature, Integer maxTokens) TencentHunyuanClient(String baseUrl, String model, float temperature, Float topP, Integer maxTokens, String apiKey) TencentHunyuanClient(String baseUrl, String model, float temperature, Integer maxTokens, String apiKey) -
Method Summary
Methods inherited from class com.tnsai.llm.providers.AbstractOpenAICompatibleClient
chat, streamChatMethods inherited from class com.tnsai.llm.providers.AbstractLLMClient
getBaseUrl, getCallTimeoutMs, getMaxTokens, getModel, getTemperature, getTopPMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tnsai.llm.LLMClient
chat, chat, chat, chat, chat, getCapabilities, getProviderName, listModels, streamChat, streamChat, streamChatWithHandler, streamChatWithHandler, streamChatWithSpec, streamChatWithSpec
-
Constructor Details
-
TencentHunyuanClient
-
TencentHunyuanClient
-
TencentHunyuanClient
-
TencentHunyuanClient
-
TencentHunyuanClient
-
TencentHunyuanClient
-