Community画像github.com

tencentcloudbase/ai-model-wechat

このスキルは、WeChatミニプログラムでwx.cloud.extend.AIを使用するためのものです。generateTextやstreamText(onText、onEvent、onFinishコールバック付き)を提供し、さまざまなAIモデルをサポートします。

ai-model-wechat とは?

このスキルは、WeChatミニプログラム(小程序、企業微信小程序、wx.cloudアプリ)向けに、wx.cloud.extend.AI APIをラップして簡単に利用できるようにします。generateText(テキスト生成)とstreamText(ストリーミング生成)の2つの主要機能を提供し、streamTextではonText、onEvent、onFinishのコールバックでリアルタイムのテキスト更新やイベント処理が可能です。モデルはwx.cloud.extend.AI.createModelを通じて管理され、グループとしてhunyuan-exp(小程序成長計画向け)、cloudbase(メイン管理)、またはcustom-*を指定できます。モデルID(例:deepseek-v4-flash、deepseek-v3.2、hunyuan-2.0-instruct-20251111、glm-5、kimi-k2.6)はdataラッパーのmodelフィールドに設定します。注意点として、APIはJS/Node SDKとは異なり、streamTextはdataラッパーが必要で、generateTextは生のレスポンスを返します。コードを書く前に必ず2段階の事前チェック(preflight)を実行する必要があります。ブラウザ/Web(ai-model-web使用)、Node.jsバックエンド(ai-model-nodejs使用)、画像生成(ai-model-nodejs使用)には対応していません。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/tencentcloudbase/skills/tree/main/skills/ai-model-wechat

Installed? Explore more 画像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

ai-model-wechat は何をしますか?

このスキルは、wx.cloud.extend.AI を使用した WeChat ミニプログラム AI 用です(小程序、企業微信小程序、wx.cloud アプリ)。generateText および streamText(onText、onEvent、onFinish のコールバック付き)を提供します。モデルは wx.cloud.extend.AI.createModel を介して管理され、グループとして hunyuan-exp(小程序成長計画)、cloudbase(メイン管理)、または custom-* を指定できます。モデル ID(deepseek-v4-flash、deepseek-v3.2、hunyuan-2.0-instruct-20251111、glm-5、kimi-k2.6)は data ラッパーの model フィールドに設定します。API は JS/Node SDK とは異なります — streamText は data ラッパーが必要で、generateText は生のレスポンスを返します。コードを書く前に必ず2段階の事前チェック(preflight)を実行してください — 本体を参照。キーワード: ミニプログラム AI、wx.cloud.extend.AI、小程序成長計画、ai_miniprogram_inspire_plan、Token Credits 資源包、generateText、streamText、createModel、hunyuan-exp、TokenHub、Hunyuan、DeepSeek、GLM、Kimi、MiniMax。ブラウザ/Web(ai-model-web を使用)、Node.js バックエンド(ai-model-nodejs を使用)、画像生成(ai-model-nodejs を使用)には対応していません。

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

tencentcloudbase/auth-wechat-miniprogram

CloudBase WeChat Mini Program native authentication guide. This skill should be used when users need mini program identity handling, OPENID/UNIONID access, or `wx.cloud` auth behavior in projects where login is native and automatic.

tencentcloudbase/cloudbase-document-database-in-wechat-miniprog

Use CloudBase document database WeChat MiniProgram SDK to query, create, update, and delete data. Supports complex queries, pagination, aggregation, and geolocation queries.

tencentcloudbase/cloudbase-platform

CloudBase platform overview and routing guide. This skill should be used when users need high-level capability selection, platform concepts, console navigation, or cross-platform best practices before choosing a more specific implementation skill.

tencentcloudbase/cloud-functions

CloudBase function runtime guide for building, deploying, and debugging your own Event Functions or HTTP Functions. This skill should be used when users need application runtime code on CloudBase, not when they are merely calling CloudBase official platform APIs.

tencentcloudbase/miniprogram-development

WeChat Mini Program development skill for building, debugging, previewing, testing, publishing, and optimizing mini program projects. This skill should be used when users ask to create, develop, modify, debug, preview, test, deploy, publish, launch, review, or optimize WeChat Mini Programs, mini program pages, components, `tabBar`, routing, navigation, icon assets, project structure, project configuration, `project.config.json`, `appid` setup, device preview, real-device validation, WeChat Developer Tools workflows, `miniprogram-ci` preview/upload flows, or mini program release processes. It should also be used when users explicitly mention CloudBase, `wx.cloud`, Tencent CloudBase, 腾讯云开发, or 云开发 in a mini program project.

tencentcloudbase/spec-workflow

Use when medium-to-large changes need explicit requirements, technical design, and task planning before implementation, especially for multi-module work, unclear acceptance criteria, or architecture-heavy requests.

tencentcloudbase/ui-design

Use when users need visual direction, interface hierarchy, layout decisions, design specifications, or prototypes before implementing a Web or mini program UI.

tencentcloudbase/web-development

Use when users need to implement, integrate, debug, build, deploy, or validate a Web frontend after the product direction is already clear, especially for React, Vue, Vite, browser flows, or CloudBase Web integration.

関連スキル