Code Monkey home page Code Monkey logo

chatgpt-java-wx's Introduction

使用chatgpt提供的接口,实现自己的微信聊天小程序

java编写服务器,实现chatgpt接口的调用。微信小程序用于聊天。二者基于webSocket进行通信

运行说明

  1. 购买一个外网服务器(只需要能ping通外网即可),我选择的是阿里云的香港轻量级应用服务器
  2. 安装mysql和jdk,将mychatgpt.sql导入到数据库
  3. 将java程序中的apiKey(在src\main\java\com\ttpfx\model\ChatModel.java中)设置为自己的,然后更改application.yaml中的数据库连接的一些选项
  4. 将java代码打包传到服务器上,运行程序
  5. 打开微信小程序,将里面的url连接中的ip改为自己服务器的地址
  6. 然后就可以进入微信小程序体验了
  7. 帮我star一下~(≥▽≤)/~~(≥▽≤)/~

我的博客的地址为 https://blog.csdn.net/m0_51545690 ,分享技术文章,大家也可以关注一波

2033/4/3 大家测试尽量不要使用clash for windows这个软件,很不稳定,反正我用这个直接不能访问

chatgpt-java-wx's People

Contributors

c-ttpfx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.