# javagpt **Repository Path**: liu-yong-123/javagpt ## Basic Information - **Project Name**: javagpt - **Description**: JavaGPT 是一个与 ChatGPT API 接口的 Java GUI - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/javagpt - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 5 - **Created**: 2024-03-25 - **Last Updated**: 2024-03-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
Image description
# JavaGPT A Java GUI that interfaces ChatGPT API. ![](https://i.imgur.com/EbL1VRv.gif) ## 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](https://i.imgur.com/q3s1frY.gif) - 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](https://i.imgur.com/W0pzIic.gif) - 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](https://github.com/FrankCYB/JavaGPT/releases/latest "Latest release page"). Afterwords, extract the archieve Then open the config.properties file in a text editor Add your [ChatGPT API-Key](https://platform.openai.com/account/api-keys "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](https://www.reddit.com/r/windows/comments/12t9ax3/comment/jh1h1qm/?utm_source=share&utm_medium=web2x&context=3). ## 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](https://github.com/TheoKanning/openai-java "Project page") : A ChatGPT API wrapper for Java Made my life much easier 😁👍