[WordPress] 外掛分享: Bestony AI Provider for Tencent Cloud Token Hub

首頁 › 外掛目錄 › Bestony AI Provider for Tencent Cloud Token Hub
全新外掛
安裝啟用
—
尚無評分
7 天前
最後更新
—
問題解決
WordPress 7.0+ PHP 7.4+ v1.0.0 上架:2026-10-08

內容簡介

Bestony AI Provider for Tencent Cloud Token Hub 外掛將 Tencent Cloud Token Hub 的 OpenAI 相容 Chat Completions API 整合至 WordPress AI 客戶端,提供即時的模型列表和多種文本生成功能,提升網站的智能互動能力。

【主要功能】
• 支援即時獲取在線模型列表
• 提供文本生成和聊天歷史功能
• 限制請求消息數量不超過四條
• 支援結構化輸出格式選擇
• 可設定請求和連接超時時間

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Bestony AI Provider for Tencent Cloud Token Hub」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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 . See the Token Hub API documentation and OpenAI Chat Completions field reference.
This service is provided by Tencent Cloud:

Terms of service: https://cloud.tencent.com/document/product/301/1967
Privacy policy: https://cloud.tencent.com/document/product/301/11470

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.

延伸相關外掛

文章
Filter
Mastodon