ai-model-wechat

Generate and stream text in WeChat Mini Programs via wx.cloud.extend.AI.

1|1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/xianmingyao/openclaw-CaySon --skill ai-model-wechat-xianmingyao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-model-wechat
Source: https://github.com/xianmingyao/openclaw-CaySon/tree/main/skills/cloudbase/references/ai-model-wechat
Command: npx skills add https://github.com/xianmingyao/openclaw-CaySon --skill ai-model-wechat-xianmingyao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill enables AI-driven text generation and streaming within WeChat Mini Programs by leveraging wx.cloud.extend.AI.

Core Features & Use Cases

  • Text generation via generateText with built-in WeChat-first models (Hunyuan, DeepSeek)
  • Streaming support with callbacks (onText, onEvent, onFinish) for real-time UI updates
  • Clear scoping to WeChat Mini Programs and enterprise WeChat; not intended for browser/Web apps or Node.js backends

Quick Start

Initialize WeChat cloud in your Mini Program and call wx.cloud.extend.AI to create a text-generation model and start streaming responses with callbacks.

Frequently Asked Questions about ai-model-wechat

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate AI text generation into a WeChat Mini Program?

AI text generation in a WeChat Mini Program is integrated by initializing WeChat cloud and calling wx.cloud.extend.AI to create a model, then using generateText for complete responses or streamText for real-time outputs.

Can I stream AI responses with callbacks in WeChat Mini Programs?

Streaming AI responses in WeChat Mini Programs is handled by streamText, which provides incremental text delivery via onText, onEvent, and onFinish callbacks to enable real-time UI updates during generation.

Does WeChat cloud AI support Hunyuan and DeepSeek models?

WeChat cloud AI supports built-in Hunyuan and DeepSeek models for text generation. You can access these models via wx.cloud.extend.AI to perform both standard and streaming text generation tasks.

What WeChat base library version is required for AI text streaming?

AI text streaming requires WeChat base library version 3.7.1 or higher. Additionally, streamText calls must use a data wrapper to properly handle the incremental response data within the Mini Program.

Can I use this WeChat AI text generation skill in a Node.js backend or web browser?

This AI text generation skill is scoped exclusively to WeChat Mini Programs and enterprise WeChat. It is not intended for use in browser-based Web apps or Node.js backend environments.

What is the difference between generateText and streamText in WeChat cloud?

generateText provides complete, non-streaming AI responses in a single call, while streamText delivers incremental text chunks via callbacks, making streamText suitable for real-time UI updates in WeChat Mini Programs.