An open-source WeChat mini program AI tool developed based on the ChatGPT model. It provides features such as chatbot and drawing assistant, supporting users to communicate with ChatGPT through text and voice. It also includes an image generation function that allows previewing generated images and sharing them with WeChat friends via long press.
- WeChat Developer Tools: 1.06.2409140 Stable
- Base Library: 2.19.4
Use WeChat Developer Tools to build and run the project.
Before running the WeChat mini program, you must replace the following URLs:
const wssurl = "wss://ai.demo.com";
const drawImgUrl = 'https://ai.demo.com/api/T2I_api';
const sttUrl = 'https://ai.demo.com/ASR_api';Note: The data protocol of the communication address needs to be consistent. If using different protocols, you'll need to adjust the parsing process accordingly.
- 💬 Chat with ChatGPT - Text-based conversational AI
- 🎤 Voice Interaction - Communicate with ChatGPT using voice input
- 🎨 Image Generation - AI-powered drawing assistant
- 📤 Share Images - Preview and share generated images with WeChat friends
Image Generation and ChatGPT Voice Interaction:
100856.mov
1020239.mov
This library is licensed under the Apache 2.0 License.
基于 ChatGPT 模型开发的 AI 工具微信小程序开源项目,提供聊天机器人、绘画助手等功能,支持用户通过文本和语音与 ChatGPT 交流,并且还具备画图功能,支持预览绘制的图片并可长按发送给微信好友。
- 微信开发者工具:1.06.2409140 Stable
- 调试基础库:2.19.4
使用微信开发者工具构建和运行项目。
在运行微信小程序之前,请替换以下 URL 地址:
const wssurl = "wss://ai.demo.com";
const drawImgUrl = 'https://ai.demo.com/api/T2I_api';
const sttUrl = 'https://ai.demo.com/ASR_api';注意: 通信地址的数据协议需要保持一致,否则需要调整解析过程。
- 💬 ChatGPT 对话 - 基于文本的对话式 AI
- 🎤 语音交互 - 使用语音输入与 ChatGPT 交流
- 🎨 图像生成 - AI 驱动的绘画助手
- 📤 分享图片 - 预览并分享生成的图片给微信好友
图像生成和 ChatGPT 语音交互:
100856.mov
1020239.mov
本项目基于 Apache 2.0 License 开源协议。


