# Wechat-MiniProgram-ChatGPT **Repository Path**: morgan031/Wechat-MiniProgram-ChatGPT ## Basic Information - **Project Name**: Wechat-MiniProgram-ChatGPT - **Description**: No description available - **Primary Language**: JavaScript - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-19 - **Last Updated**: 2025-08-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Wechat-MiniProgram-ChatGPT ![JavaScript](https://img.shields.io/badge/JavaScript-ES6+-yellow.svg) [![License](http://img.shields.io/:license-apache-brightgreen.svg)](https://github.com/Json031/Wechat-MiniProgram-ChatGPT/blob/main/LICENSE) ![WeChat Developer Tools](https://img.shields.io/badge/WeChatDeveloperTools-1.06.2409140-blue) ![WeChat Mini Program Base Library](https://img.shields.io/badge/WeChatMiniProgramBaseLibrary-2.19.4-brightgreen)
基于ChatGPT模型开发的AI工具微信小程序开源项目,提供聊天机器人、绘画助手等功能,支持用户通过文本和语音与 ChatGPT 交流,并且还具备画图功能,支持预览绘制的图片并可长按发送给微信好友。
Open source project for WeChat mini program, an AI tool developed based on the ChatGPT model, provides functions such as chatbot and drawing assistant. It supports users to communicate with ChatGPT through text and voice, and also has drawing function. It supports previewing drawn images and long pressing to send them to WeChat friends. ## 环境要求Environment Requirements * 微信开发者工具1.06.2409140 Stable * 调试基础库 2.19.4 #### Using Wechat developer tool to build the project
使用微信开发者工具构建项目 #### Tip 1: 在运行微信小程序之前,请替换wssurl、drawImgUrl和sttUrl。
Before running the wechat mini program, replace the wssurl and drawImgUrl and sttUrl. * const wssurl = "wss://ai.demo.com"; * const drawImgUrl = 'https://ai.demo.com/api/T2I_api'; * const sttUrl = 'https://ai.demo.com/ASR_api'; #### Tip 2: 通信地址的数据协议需要保持一致,否则需要调整解析过程。
The data protocol of the communication address needs to be consistent, otherwise the parsing process needs to be adjusted. ## Effect demonstration 效果演示

## Image generation and ChatGPT voice interaction https://github.com/user-attachments/assets/e0495edd-8351-4b80-906b-83ac93aa2e8d https://github.com/user-attachments/assets/7f3ad47c-bfbe-462f-a63c-925a172dbfcd ## License许可证 This library is licensed under the [Apache 2.0 License](https://github.com/Json031/Wechat-MiniProgram-ChatGPT/blob/main/LICENSE).