chatgpt-java-wx  by c-ttpfx

WeChat mini-program for ChatGPT

created 2 years ago
364 stars

Top 78.6% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a WeChat mini-program for chatting with ChatGPT, built with a Java backend that interfaces with the ChatGPT API. It targets users who want to create their own ChatGPT-powered chatbot within WeChat, offering a customisable and self-hosted solution.

How It Works

The system comprises a Java server and a WeChat mini-program. The Java server handles API calls to ChatGPT and communicates with the mini-program via WebSocket. This WebSocket-based communication allows for real-time chat interactions between the user in the WeChat mini-program and the ChatGPT model.

Quick Start & Requirements

  • Installation: Deploy the Java backend to a server with internet access (e.g., Alibaba Cloud Hong Kong Lightweight Server). Install MySQL and JDK (version 8 recommended). Import mychatgpt.sql into MySQL.
  • Configuration: Update application.yaml with database connection details, your ChatGPT API key, and optional proxy settings.
  • Deployment: Package the Java code, transfer it to the server, and run the application.
  • Mini-program: Update the IP address in the mini-program's URL configuration to your server's address.
  • Dependencies: MySQL, JDK 8, Maven.

Highlighted Details

  • WebSocket communication for real-time chat.
  • Supports proxy configuration for API access.
  • Requires self-hosting of the Java backend.

Maintenance & Community

Development and maintenance have been stopped as of July 18, 2023, due to blog content policy violations and ChatGPT's limited availability in China. The author's CSDN blog is linked for technical articles.

Licensing & Compatibility

The license is not specified in the README.

Limitations & Caveats

The project is no longer actively maintained or developed. The README suggests potential issues with JDK version compatibility and Maven dependency resolution.

Health Check
Last commit

2 years ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
5 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.