# chatgpt-java
**Repository Path**: sky8652/chatgpt-java
## Basic Information
- **Project Name**: chatgpt-java
- **Description**: OpenAI ChatGPT 的逆向工程SDK。可扩展用于聊天机器人等。demo展示http://hoppinzq.com/chat/index.html
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: http://hoppinzq.com/chat/index.html
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 119
- **Created**: 2023-06-19
- **Last Updated**: 2023-06-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# ChatGPT Java Api

[](https://maven-badges.herokuapp.com/maven-central/com.github.plexpt/chatgpt)
[简体中文文档](https://github.com/PlexPt/chatgpt-java/blob/main/README_zh.md).
Reverse Engineered ChatGPT by OpenAI. Extensible for chatbots etc.
Thanks to [revChatGPT](https://github.com/acheong08/ChatGPT).
# Features


## USE
maven
```
com.github.plexpt
chatgpt
1.1.2
```
gradle
```
implementation group: 'com.github.plexpt', name: 'chatgpt', version: '1.1.2'
```
then
```
Chatbot chatbot = new Chatbot("sessionToken");
Map chatResponse = chatbot.getChatResponse("hello");
System.out.println(chatResponse.get("message"));
```
### Get sessionToken
https://github.com/acheong08/ChatGPT/wiki/Setup#token-authentication
### CLI use
1. download from release
2. edit config.json
3. run
# Awesome ChatGPT
[My list](https://github.com/stars/acheong08/lists/awesome-chatgpt)
If you have a cool project you want added to the list, open an issue.
# Disclaimers
This is not an official OpenAI product. This is a personal project and is not affiliated with OpenAI in any way. Don't sue me
### This is a library and not intended for direct CLI use
The CLI functionality is for demo and testing only. Captcha is not supported (For unclean IP addresses)
### CLI use
[@rawandahmad698](https://github.com/rawandahmad698) has a much better CLI tool at
**[PyChatGPT](https://github.com/rawandahmad698/PyChatGPT)** supports captcha!
# Star History
[](https://star-history.com/#PlexPt/chatgpt-java&Date)