ai-model-wechat

Official

Enable AI in WeChat Mini Programs with streaming.

AuthorTencentCloudBase
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill makes it straightforward to integrate WeChat Mini Programs with CloudBase AI models, enabling AI-powered text generation and streaming directly in the mini program environment, without complex server setup.

Core Features & Use Cases

  • Text generation via wx.cloud.extend.AI using built-in models such as hunyuan-2.0-instruct-20251111 and deepseek-v3.2.
  • Streaming support with callbacks (onText, onEvent, onFinish) to display incremental AI responses in real time.
  • Demonstrated use cases include chat assistants in WeChat Mini Programs, customer support bots, and interactive help desks within enterprise apps.

Quick Start

  1. Initialize the WeChat cloud environment in your app with wx.cloud.init({ env: "<YOUR_ENV_ID>" }).
  2. Create an AI model instance: const model = wx.cloud.extend.AI.createModel("hunyuan-exp"); // or another supported provider
  3. Use generateText for non-streaming responses or streamText for streaming, following the examples in the skill guide.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: ai-model-wechat
Download link: https://github.com/TencentCloudBase/skills/archive/main.zip#ai-model-wechat

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.