{"id":381351,"date":"2026-10-09T06:01:17","date_gmt":"2026-10-09T06:01:17","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/ai-provider-for-tencent-cloud-token-hub\/"},"modified":"2026-10-09T06:01:04","modified_gmt":"2026-10-09T06:01:04","slug":"bestony-ai-provider-for-tencent-cloud-token-hub","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/bestony-ai-provider-for-tencent-cloud-token-hub\/","author":14788414,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.3","requires":"7.0","requires_php":"7.4","requires_plugins":null,"header_name":"Bestony AI Provider for Tencent Cloud Token Hub","header_author":"Bestony","header_description":"Bestony's independent Tencent Cloud Token Hub provider for the WordPress AI Client.","assets_banners_color":"","last_updated":"2026-10-09 06:01:04","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/bestony\/bestony-ai-provider-for-tencent-cloud-token-hub","header_author_uri":"https:\/\/github.com\/bestony","rating":0,"author_block_rating":0,"active_installs":0,"downloads":73,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"bestony","date":"2026-10-09 06:01:04","revision":3735982}},"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[2353,5707,25308,188717,285249],"plugin_category":[41],"plugin_contributors":[145631],"plugin_business_model":[],"class_list":["post-381351","plugin","type-plugin","status-publish","hentry","plugin_tags-ai","plugin_tags-chat","plugin_tags-connector","plugin_tags-tencent-cloud","plugin_tags-tokenhub","plugin_category-communication","plugin_contributors-bestony","plugin_committers-bestony"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/bestony-ai-provider-for-tencent-cloud-token-hub.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin adds Tencent Cloud Token Hub's OpenAI-compatible Chat Completions API to the WordPress AI Client.<\/p>\n\n<ul>\n<li>The model list is fetched live from <code>GET \/models<\/code>.<\/li>\n<li>Only models with <code>status: online<\/code> are exposed.<\/li>\n<li>Text generation, chat history, tool calling, streaming and structured output are supported.<\/li>\n<li>Confirmed vision models declare text and image input.<\/li>\n<li>Image, video and 3D generation models are excluded because this provider implements Chat Completions only.<\/li>\n<li>A request with more than four messages is rejected before it reaches the API.<\/li>\n<\/ul>\n\n<h3>Configuration<\/h3>\n\n<p>The provider ID is <code>tencentcloud_tokenhub<\/code>.<\/p>\n\n<p>The API key is owned by the AI Client credential registry. You can enter it in Settings \u2192 Connectors as <code>connectors_ai_tencentcloud_tokenhub_api_key<\/code>, or define <code>TENCENTCLOUD_TOKENHUB_API_KEY<\/code> as an environment variable or PHP constant supported by the SDK. The provider does not read the Connector option directly.<\/p>\n\n<p>Optional environment variables or PHP constants:<\/p>\n\n<ul>\n<li><code>TENCENTCLOUD_TOKENHUB_DEFAULT_MODEL<\/code> \u2014 model preferred by the AI plugin. Default: <code>hy4-preview<\/code>.<\/li>\n<li><code>TENCENTCLOUD_TOKENHUB_REQUEST_TIMEOUT<\/code> \u2014 request timeout in seconds. Default: <code>120<\/code>.<\/li>\n<li><code>TENCENTCLOUD_TOKENHUB_CONNECT_TIMEOUT<\/code> \u2014 connection timeout in seconds. Default: <code>10<\/code>.<\/li>\n<li><code>TENCENTCLOUD_TOKENHUB_STRUCTURED_OUTPUT<\/code> \u2014 <code>json_schema<\/code> (default), <code>json_object<\/code>, or <code>none<\/code>.<\/li>\n<\/ul>\n\n<p>The API base URL is fixed at <code>https:\/\/api.lkeap.cloud.tencent.com\/plan\/v3<\/code>. The key is sent only to this host. The plugin does not provide a custom host setting.<\/p>\n\n<h3>Model capabilities<\/h3>\n\n<p>Token Hub's <code>\/models<\/code> 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.<\/p>\n\n<p>Image, video, 3D, embedding, speech and other non-chat families are filtered out. No image, video or 3D generation endpoint is implemented.<\/p>\n\n<h3>Message limit<\/h3>\n\n<p>Token Hub rejects a <code>messages<\/code> array longer than four entries. This provider throws an AI Client parameter exception before sending a request when the prompt would exceed that limit.<\/p>\n\n<h3>External services<\/h3>\n\n<p>This independent plugin connects to Tencent Cloud Token Hub, a service provided by Tencent Cloud:<\/p>\n\n<ul>\n<li><code>GET \/models<\/code> \u2014 fetches the online model list and checks credentials.<\/li>\n<li><code>POST \/chat\/completions<\/code> \u2014 sends prompts, conversation history, tools, schemas and image inputs for text generation.<\/li>\n<\/ul>\n\n<p>Requests use <code>Authorization: Bearer &lt;API key&gt;<\/code>. See the <a href=\"https:\/\/cloud.tencent.com\/document\/product\/1823\/130078\">Token Hub API documentation<\/a> and <a href=\"https:\/\/cloud.tencent.com\/document\/product\/1823\/135872\">OpenAI Chat Completions field reference<\/a>.<\/p>\n\n<p>This service is provided by Tencent Cloud:<\/p>\n\n<ul>\n<li>Terms of service: <a href=\"https:\/\/cloud.tencent.com\/document\/product\/301\/1967\">https:\/\/cloud.tencent.com\/document\/product\/301\/1967<\/a><\/li>\n<li>Privacy policy: <a href=\"https:\/\/cloud.tencent.com\/document\/product\/301\/11470\">https:\/\/cloud.tencent.com\/document\/product\/301\/11470<\/a><\/li>\n<\/ul>\n\n<h3>Development<\/h3>\n\n<pre><code>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.\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Copy the plugin directory to <code>\/wp-content\/plugins\/bestony-ai-provider-for-tencent-cloud-token-hub\/<\/code>.<\/li>\n<li>Activate the plugin through the Plugins menu.<\/li>\n<li>Go to Settings \u2192 Connectors, open the Tencent Cloud Token Hub card and paste your API key.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20the%20plugin%20need%20a%20separate%20settings%20page%3F\"><h3>Does the plugin need a separate settings page?<\/h3><\/dt>\n<dd><p>No. The Connector card is the only place in WordPress where the API key is entered. Optional behaviour is configured with environment variables or PHP constants.<\/p><\/dd>\n<dt id=\"why%20is%20a%20model%20missing%20from%20the%20list%3F\"><h3>Why is a model missing from the list?<\/h3><\/dt>\n<dd><p>Offline models and known non-chat families are intentionally filtered. A model with an unrecognised ID is treated as text-only, so it remains available for Chat Completions.<\/p><\/dd>\n<dt id=\"can%20i%20use%20a%20configurable%20token%20hub%20host%3F\"><h3>Can I use a configurable Token Hub host?<\/h3><\/dt>\n<dd><p>No. The endpoint is fixed to the official Token Plan host so the API key is not sent to an arbitrary domain.<\/p><\/dd>\n<dt id=\"how%20do%20i%20handle%20a%20long%20conversation%3F\"><h3>How do I handle a long conversation?<\/h3><\/dt>\n<dd><p>Keep each request at four messages or fewer. Summarize earlier turns before starting the next request.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release with dynamic online model discovery, OpenAI-compatible Chat Completions, structured output, tool calling and conservative vision metadata.<\/li>\n<\/ul>","raw_excerpt":"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 \u2026","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/381351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=381351"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bestony"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=381351"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=381351"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=381351"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=381351"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=381351"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=381351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}