What problem does it solve?
It prevents WeChat Mini Program AI integration failures by ensuring correct billing eligibility and model group readiness before using wx.cloud.extend.AI for text generation and streaming.
Core Features & Use Cases
- Two-step preflight guardrails: validates 小程序成长计划 eligibility first, then checks group/model readiness via DescribeAIModels, with catalog lookup and enabling via DescribeManagedAIModelList + UpdateAIModel when needed.
- Correct provider vs model separation: uses only legal GroupName values for createModel(provider) (hunyuan-exp / cloudbase / custom-*), while passing the concrete model id only in the request data.model field.
- Streaming with callbacks: supports streamText with onText, onEvent, and onFinish, plus safe termination via [DONE].
- Scope: focused on Mini Program AI text generation (generateText, streamText) and explicitly not for browser/Web apps, Node.js backends, or image generation.
Quick Start
Tell the agent: "Integrate wx.cloud.extend.AI in my WeChat Mini Program to stream chat responses with streamText, and include the required eligibility and group readiness preflight before calling createModel."