What problem does it solve?
This Skill solves the problem of calling WeChat Mini Program AI text models reliably, including streaming partial responses, by wrapping the correct wx.cloud.extend.AI usage and the required CloudBase preflight checks.
Core Features & Use Cases
- Mini Program AI text generation: Use wx.cloud.extend.AI.generateText for non-streaming chat completion with the correct return shape (raw model response).
- Streaming with callbacks: Use wx.cloud.extend.AI.streamText with a required data wrapper plus onText, onEvent, and onFinish callbacks, or iterate textStream/eventStream.
- Correct provider/model selection for CloudBase: Guides the eligibility decision (Growth Plan vs Token Credits resource pack vs custom onboarding) and enforces group readiness (DescribeAIModels → optional DescribeManagedAIModelList → optional UpdateAIModel) before business code.
Use Case: Build a WeChat Mini Program chat UI that streams tokens as the user types, while ensuring the selected model is billable and enabled for the current environment.
Quick Start
Use the ai-model-wechat skill to generate or stream text from an enrolled Mini Program environment, then ask the model to respond to: "Write a friendly onboarding message for my Mini Program chat."