ai-model-wechat

Installation
Summary

AI text generation and streaming for WeChat Mini Programs via wx.cloud.extend.AI.

  • Supports two methods: generateText() for non-streaming responses and streamText() for real-time streaming with callback support (onText, onEvent, onFinish)
  • Built-in models include Hunyuan (recommended: hunyuan-2.0-instruct-20251111) and DeepSeek (recommended: deepseek-v3.2)
  • API differs from JS/Node SDK: generateText() returns raw model response; streamText() requires parameters wrapped in a data object
  • Requires WeChat base library 3.7.1+ with no additional SDK installation needed
  • Not suitable for browser/Web apps, Node.js backends, or image generation
SKILL.md

Standalone Install Note

If this environment only installed the current skill, start from the CloudBase main entry and use the published cloudbase/references/... paths for sibling skills.

  • CloudBase main entry: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/SKILL.md
  • Current skill raw source: https://cnb.cool/tencent/cloud/cloudbase/cloudbase-skills/-/git/raw/main/skills/cloudbase/references/ai-model-wechat/SKILL.md

Keep local references/... paths for files that ship with the current skill directory. When this file points to a sibling skill such as auth-tool or web-development, use the standalone fallback URL shown next to that reference.

When to use this skill

Use this skill for calling AI models in WeChat Mini Program using wx.cloud.extend.AI.

Use it when you need to:

  • Integrate AI text generation in a Mini Program
  • Stream AI responses with callback support
  • Call Hunyuan models from the WeChat environment
Related skills

More from tencentcloudbase/skills

Installs
826
GitHub Stars
58
First Seen
Jan 22, 2026