Code Monkey home page Code Monkey logo

javagpt's Introduction

Image description

JavaGPT

A Java GUI that interfaces ChatGPT API.

Features

  • Chat Streaming
    • Just like the website, responses will generate in real time
    • You can terminate a response while it is in progress
  • Chat History
    • See and interact with previous chats
    • Saves chats as .json for easy external modification and viewing
    • Accessible through the "Load Chat" button

Demo

  • Chat Titles
    • Autogenerate titles like ChatGPT website
    • Manually name chats if preferred
  • Revert Chats
    • Be able to void previous prompts and responses from chat
    • You can revert multiple times
  • Proxy Support
    • Supports SOCKS and HTTP proxies
    • Easily configurable via config.properties
  • HTML Viewer
    • View your chat content in HTML
    • Supports Markdown Language syntax

HTML View

  • Import premade prompts
  • Save chats to file
  • Support for ChatGPT 4, and 3.5 models
  • Cross platform

Setup

To get started download the latest release.

Afterwords, extract the archieve

Then open the config.properties file in a text editor

Add your ChatGPT API-Key on line 4 after "apikey="

Run JavaGPT.jar and enjoy! ๐Ÿ˜

Config Example

apikey=ENTER_CHAT_GPT_API_KEY_HERE
model=gpt-3.5-turbo		#Model used for ChatGPT Client (Supported Models: gpt-4, gpt-3.5-turbo, etc) > All supported models here "https://platform.openai.com/docs/models/gpt-3-5"
maxTokens=1024			#Max ammount of tokens allowed per ChatGPT API request
timeout=30			#Adjust allowed wait time for prompt response from ChatGPT API
proxyip= 			#Proxy IP
proxyport= 			#Proxy port number
proxytype= 			#Options: SOCKS,HTTP,HTTPS
autotitle=true			#Adjusts wether new chats will automatically generate file name titles based on the context of the chat
autoscroll=true			#Adjusts wether chat will scroll as new text is added
EnterToSubmit=true		#Adjusts wether the Enter key should be used to submit or to create new lines
chat_history=			#Adjust wether chats will save automatically
chat_location_override=		#Overrides default "chat_history" folder path (Original path is set to the location of the jar file on runtime)
WindowSize=			#Adjusts JFrame (Window) size. Options: small,medium,large (Set to "medium" by default)
FontSize=			#Adjusts font size of chat content 
Theme=dark			#Themes JFrame (Window) to set config. Options: dark,light

Requirements

  • Java 8 or higher

Important note for legacy systems

If your on a legacy Windows system such as 98, ME, 2000, and XP, there are additional steps involved to get Java 8 to run properly.
I made a guide on how to get Java 8 to run on these various OSs in a reddit thread. Link can be found here.

Final notes

If you enjoy JavaGPT and would like to support me in future updates and projects, please feel free to show your support by buying me a โ˜•

Buy Me A Coffee

Also, shoutout to TheoKanning and his contributors for making OpenAI-Java : A ChatGPT API wrapper for Java

Made my life much easier ๐Ÿ˜๐Ÿ‘

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.