Git Product home page Git Product logo

api-chatgpt-java's Introduction

API-ChatGPT-Java

LinkedIn Badge GitHub contributors GitHub follow GitHub stars GitHub forks GitHub watchers

Project development API connects to GPT-3 for user interaction:

petal_20230209_142430.mp4

Technology

How to get it running

  • Clone this GIT project.
  • Make sure it is a Maven project and Maven is executed to load dependencies.
  • Create an Account at OpenAI & log in
  • Create API key
  • Store the key in application.properties file in cloned project.
  • Start it as Spring Boot application.
  • For chatting with ChatGPT: http://localhost:8080/
  • For drawing images with DALL-E: http://localhost:8080/image

Setup proxy

If you need a proxy to communicate with Internet (ChatGPT API is in Internet), adapt ChatGptController.java like this:

  • Replace: private HttpClient client = HttpClient.newHttpClient();
  • with: private HttpClient client = HttpClient.newBuilder().proxy(ProxySelector.of(InetSocketAddress.createUnresolved("proxy.host.com", 8080))).build();

Documentation

OpenAI API documentation: https://beta.openai.com/docs/api-reference/completions/create

Expression of Gratitude

  • Comment and share with other Developers about this project ๐Ÿ“ข
  • Invite me for a coffee โ˜• "Raise funds to support Software Development Students of SENA Dosquebradas - Colombia".
  • Say thank you publicly ๐Ÿค“.

โŒจ๏ธ with ๐Ÿ’œ by Paula Abad ๐Ÿ˜Š

api-chatgpt-java's People

Contributors

paulabad-bigdata avatar

Stargazers

 avatar

Watchers

 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.