Community影像github.com

tencentcloudbase/ai-model-wechat

用於微信小程式 AI 功能,透過 wx.cloud.extend.AI(小程序、企業微信小程序、wx.cloud 應用)實現 generateText 和 streamText 與回呼(onText、onEvent、onFinish)。模型透過 wx.cloud.extend.AI.createModel 使用群組 hunyuan-exp(小程序成長計畫)、cloudbase(主要託管)或 custom-*。

ai-model-wechat 是什麼?

此技能專為微信小程式生態系統設計,可直接在用戶端呼叫 wx.cloud.extend.AI 來整合大型語言模型。它支援 generateText 和 streamText 兩種輸出方式,其中 streamText 採用事件驅動架構,提供 onText、onEvent 和 onFinish 等回呼。模型管理透過 createModel 方法,群組包括 hunyuan-exp(適用於小程序成長計畫)、cloudbase(主要託管方案)及自定義群組。支援的模型 ID 包含 deepseek-v4-flash、deepseek-v3.2、hunyuan-2.0-instruct-20251111、glm-5 和 kimi-k2.6。需注意,此技能與標準 JS/Node SDK 的 API 有所不同:streamText 需要 data 包裹器,而 generateText 直接回傳原始回應。在編寫任何程式碼前,必須執行兩步驟的預檢流程。此技能不適用於瀏覽器/Web(請使用 ai-model-web)、Node.js 後端(請使用 ai-model-nodejs)或圖片生成(請使用 ai-model-nodejs)。關鍵字:Mini Program AI、wx.cloud.extend.AI、小程序成長計畫、ai_miniprogram_inspire_plan、Token Credits 資源包、generateText、streamText、createModel、hunyuan-exp、TokenHub、Hunyuan、DeepSeek、GLM、Kimi、MiniMax。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/tencentcloudbase/skills/tree/main/skills/ai-model-wechat

Installed? Explore more 影像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

ai-model-wechat 是做什麼的?

使用此技能進行微信小程式 AI 功能,透過 wx.cloud.extend.AI(小程序、企業微信小程序、wx.cloud 應用)。提供 generateText 和 streamText 功能,並支援回呼(onText、onEvent、onFinish)。模型透過 wx.cloud.extend.AI.createModel 設定,可使用群組 hunyuan-exp(小程序成長計畫)、cloudbase(主要託管)或 custom-*。模型 ID(deepseek-v4-flash、deepseek-v3.2、hunyuan-2.0-instruct-20251111、glm-5、kimi-k2.6)需放在 data 包裹器的 model 欄位中。API 與 JS/Node SDK 不同 — streamText 需要 data 包裹器,generateText 則回傳原始回應。必須在撰寫程式碼前執行兩步驟預檢 — 請參見正文。關鍵字:Mini Program AI、wx.cloud.extend.AI、小程序成長計畫、ai_miniprogram_inspire_plan、Token Credits 資源包、generateText、streamText、createModel、hunyuan-exp、TokenHub、Hunyuan、DeepSeek、GLM、Kimi、MiniMax。不適用於瀏覽器/Web(請使用 ai-model-web)、Node.js 後端(請使用 ai-model-nodejs)或圖片生成(請使用 ai-model-nodejs)。

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

tencentcloudbase/auth-wechat-miniprogram

CloudBase WeChat Mini Program native authentication guide. This skill should be used when users need mini program identity handling, OPENID/UNIONID access, or `wx.cloud` auth behavior in projects where login is native and automatic.

tencentcloudbase/cloudbase-document-database-in-wechat-miniprog

Use CloudBase document database WeChat MiniProgram SDK to query, create, update, and delete data. Supports complex queries, pagination, aggregation, and geolocation queries.

tencentcloudbase/cloudbase-platform

CloudBase platform overview and routing guide. This skill should be used when users need high-level capability selection, platform concepts, console navigation, or cross-platform best practices before choosing a more specific implementation skill.

tencentcloudbase/cloud-functions

CloudBase function runtime guide for building, deploying, and debugging your own Event Functions or HTTP Functions. This skill should be used when users need application runtime code on CloudBase, not when they are merely calling CloudBase official platform APIs.

tencentcloudbase/miniprogram-development

WeChat Mini Program development skill for building, debugging, previewing, testing, publishing, and optimizing mini program projects. This skill should be used when users ask to create, develop, modify, debug, preview, test, deploy, publish, launch, review, or optimize WeChat Mini Programs, mini program pages, components, `tabBar`, routing, navigation, icon assets, project structure, project configuration, `project.config.json`, `appid` setup, device preview, real-device validation, WeChat Developer Tools workflows, `miniprogram-ci` preview/upload flows, or mini program release processes. It should also be used when users explicitly mention CloudBase, `wx.cloud`, Tencent CloudBase, 腾讯云开发, or 云开发 in a mini program project.

tencentcloudbase/spec-workflow

Use when medium-to-large changes need explicit requirements, technical design, and task planning before implementation, especially for multi-module work, unclear acceptance criteria, or architecture-heavy requests.

tencentcloudbase/ui-design

Use when users need visual direction, interface hierarchy, layout decisions, design specifications, or prototypes before implementing a Web or mini program UI.

tencentcloudbase/web-development

Use when users need to implement, integrate, debug, build, deploy, or validate a Web frontend after the product direction is already clear, especially for React, Vue, Vite, browser flows, or CloudBase Web integration.

相關技能