What problem does it solve?
WeChat Mini Programs often lack direct, integrated access to AI text generation and streaming. This skill provides a WeChat Cloud-based approach to call built-in AI models from within Mini Programs using wx.cloud.extend.AI, enabling both non-streaming and streaming interactions with callback support. It supports built-in providers/models (Hunyuan and DeepSeek), clarifies platform constraints (not for browser/web apps or Node.js backends), and details prerequisites like WeChat base library 3.7.1+.
Core Features & Use Cases
- WeChat AI integration: Use wx.cloud.extend.AI to call text-generation models directly from Mini Programs.
- Streaming with callbacks: Receive incremental text via onText, onEvent, and onFinish during streaming.
- Model options and guidance: Select from Hunyuan and DeepSeek models with recommended defaults; understand differences from standard SDKs.
- Platform constraints: Not suitable for browser/web apps or Node.js backends; image generation is not supported in Mini Programs.
Quick Start
Initialize WeChat cloud with wx.cloud.init, create a model via wx.cloud.extend.AI, and call generateText or streamText with your chosen model and messages.