Class TencentHunyuanClient

All Implemented Interfaces:
com.tnsai.llm.LLMClient

public class TencentHunyuanClient extends AbstractOpenAICompatibleClient
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 Details

    • TencentHunyuanClient

      public TencentHunyuanClient(String model)
    • TencentHunyuanClient

      public TencentHunyuanClient(String model, float temperature)
    • TencentHunyuanClient

      public TencentHunyuanClient(String model, float temperature, Integer maxTokens)
    • TencentHunyuanClient

      public TencentHunyuanClient(String model, float temperature, Float topP, Integer maxTokens)
    • TencentHunyuanClient

      public TencentHunyuanClient(String baseUrl, String model, float temperature, Integer maxTokens, String apiKey)
    • TencentHunyuanClient

      public TencentHunyuanClient(String baseUrl, String model, float temperature, Float topP, Integer maxTokens, String apiKey)