ai-model-wechat

Call Hunyuan and DeepSeek AI models from WeChat Mini Programs with streaming callbacks.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about ai-model-wechat

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

FAQPage Schema
How do I call AI models from within a WeChat Mini Program?

To call AI models from within a WeChat Mini Program, use the wx.cloud.extend.AI module to initialize cloud capabilities, create a model instance, and generate text. This enables direct text generation without external backend APIs.

Does WeChat CloudBase support streaming responses for AI text generation?

Yes, WeChat CloudBase supports streaming responses for AI text generation via callback functions. You can receive incremental text updates during streaming using onText, onEvent, and onFinish callbacks within your Mini Program.

What base library version is required for WeChat Mini Program AI integration?

WeChat Mini Program AI integration requires base library version 3.7.1 or higher. You must ensure your Mini Program environment meets this prerequisite before initializing wx.cloud and calling wx.cloud.extend.AI.

Which AI models are available through wx.cloud.extend.AI in WeChat?

The AI models available through wx.cloud.extend.AI in WeChat include Hunyuan and DeepSeek. The skill provides model selection guidance and recommended defaults for text generation within CloudBase.

Can I use wx.cloud.extend.AI for image generation in a web app?

No, you cannot use wx.cloud.extend.AI for image generation in a web app. This module is specifically for text generation in WeChat Mini Programs and is not suitable for browser web apps, Node.js backends, or image generation.