Skip to content

基于ChatGPT模型开发的AI工具微信小程序,提供聊天机器人、绘画助手等功能,支持用户通过文本和语音与 ChatGPT 交流,并且还具备画图功能,支持预览绘制的图片并可长按发送给微信好友。 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.

License

Notifications You must be signed in to change notification settings

Json031/Wechat-MiniProgram-ChatGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Wechat-MiniProgram-ChatGPT

JavaScript License WeChat Developer Tools WeChat Mini Program Base Library


🌍 Language / 语言选择

English | 中文


📖 English

Overview

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.

Environment Requirements

  • WeChat Developer Tools: 1.06.2409140 Stable
  • Base Library: 2.19.4

Getting Started

Building the Project

Use WeChat Developer Tools to build and run the project.

Configuration (Important)

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.

Features

  • 💬 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

Effect Demonstration

screenshot-1 screenshot-2 screenshot-3

Demo Videos

Image Generation and ChatGPT Voice Interaction:

100856.mov
1020239.mov

License

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 驱动的绘画助手
  • 📤 分享图片 - 预览并分享生成的图片给微信好友

效果演示

截图-1 截图-2 截图-3

演示视频

图像生成和 ChatGPT 语音交互:

100856.mov
1020239.mov

许可证

本项目基于 Apache 2.0 License 开源协议。


⬆ Back to Top / 返回顶部

About

基于ChatGPT模型开发的AI工具微信小程序,提供聊天机器人、绘画助手等功能,支持用户通过文本和语音与 ChatGPT 交流,并且还具备画图功能,支持预览绘制的图片并可长按发送给微信好友。 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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published