跳到内容

Bestony AI Provider for Tencent Cloud Token Hub

v1.0.0

Bestony · 2026年10月9日 上架

Bestony AI Provider for Tencent Cloud Token Hub adds Tencent Cloud Token Hub as a provider for the WordPress AI Client. This is an independent third-p …

正在使用
10 以下
评分
暂无
累计下载
260
最近更新
2026年10月9日
需要 WordPress 7.0+已测试到 7.1.5PHP 7.4+

贡献者

This plugin adds Tencent Cloud Token Hub’s OpenAI-compatible Chat Completions API to the WordPress AI Client.

  • The model list is fetched live from GET /models.
  • Only models with status: online are exposed.
  • Text generation, chat history, tool calling, streaming and structured output are supported.
  • Confirmed vision models declare text and image input.
  • Image, video and 3D generation models are excluded because this provider implements Chat Completions only.
  • A request with more than four messages is rejected before it reaches the API.

Configuration

The provider ID is tencentcloud_tokenhub.

The API key is owned by the AI Client credential registry. You can enter it in Settings Connectors as connectors_ai_tencentcloud_tokenhub_api_key, or define TENCENTCLOUD_TOKENHUB_API_KEY as an environment variable or PHP constant supported by the SDK. The provider does not read the Connector option directly.

Optional environment variables or PHP constants:

  • TENCENTCLOUD_TOKENHUB_DEFAULT_MODEL — model preferred by the AI plugin. Default: hy4-preview.
  • TENCENTCLOUD_TOKENHUB_REQUEST_TIMEOUT — request timeout in seconds. Default: 120.
  • TENCENTCLOUD_TOKENHUB_CONNECT_TIMEOUT — connection timeout in seconds. Default: 10.
  • TENCENTCLOUD_TOKENHUB_STRUCTURED_OUTPUT — json_schema (default), json_object, or none.

The API base URL is fixed at https://api.lkeap.cloud.tencent.com/plan/v3. The key is sent only to this host. The plugin does not provide a custom host setting.

Model capabilities

Token Hub’s /models response does not include capability details. Unknown online models are therefore treated as text-only chat models. The provider maintains a conservative list of confirmed vision IDs, including the documented DeepSeek V4 Flash Vision, GLM-5V, HY-Vision, Hunyuan vision, and YT-VITA families. The list can be updated when Tencent adds documented vision models.

Image, video, 3D, embedding, speech and other non-chat families are filtered out. No image, video or 3D generation endpoint is implemented.

Message limit

Token Hub rejects a messages array longer than four entries. This provider throws an AI Client parameter exception before sending a request when the prompt would exceed that limit.

External services

This independent plugin connects to Tencent Cloud Token Hub, a service provided by Tencent Cloud:

  • GET /models — fetches the online model list and checks credentials.
  • POST /chat/completions — sends prompts, conversation history, tools, schemas and image inputs for text generation.

Requests use Authorization: Bearer <API key>. See the Token Hub API documentation and OpenAI Chat Completions field reference.

This service is provided by Tencent Cloud:

Development

php scripts/selfcheck.php runs local checks without WordPress or a real key. Add `--sdk=/path/to/wordpress-php-ai-client/src` to run SDK integration checks.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums