Coder Social home page Coder Social logo

soho1319 / chatgptservice Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cxyxl66/chatgptservice

0.0 0.0 0.0 31.27 MB

springboot实现调用openAI接口,实现与openAI的对话交互,同时,实现了与前端网页以及小程序对接,前后分离项目

Java 100.00%

chatgptservice's Introduction

项目介绍

介绍

本项目使用spring boot,mysql ,mybaits等实现与ChatGPT官方提供的openAI接口对接,实现了与openAI的对话功能。同时,实现了与前端和微信小程序对接的接口。

效果图

先来看下效果图,可以看小程序端和前端效果

网页端

微信截图_20230715183726.png微信截图_20230715183754.png微信截图_20230715183909.png微信截图_20230715183922.png微信截图_20230715183943.png

小程序端

微信截图_20230715220647.png

微信截图_20230715220231.png

使用说明

1.clone该项目 git clone https://github.com/cxyxl66/ChatGPTService.git

2.打开项目,安装依赖,maven install

3.修改application.yaml

  • port 修改为自己想使用的端口号
  • spring.datasource.username,修改为自己本地或服务器的数据库用户名,password为数据库密码,url中修改数据库名称
  • 修改chatgpt.apiKey为自己的apiKey,可以去chatGPT官网查看
  • 修改com.cxyxl.util.UrlUtils类,将其中的appid和secret换成自己小程序的appid和secret

4.启动项目即可

求助交流

如果自己尝试过程中,遇到问题,可以关注我的公众号【c程序员修炼】,查看里面具体的文章介绍。或者加我的微信 cxyxl66

程序员修炼

chatgptservice's People

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.