Skip to content

Latest commit

 

History

History
73 lines (46 loc) · 2.06 KB

README_en.md

File metadata and controls

73 lines (46 loc) · 2.06 KB

ChatGPT Java Api

stable Maven Central

简体中文文档.

Reverse Engineered ChatGPT by OpenAI. Extensible for chatbots etc.

Thanks to revChatGPT.

Features

image

image

USE

maven

<dependency>
    <groupId>com.github.plexpt</groupId>
    <artifactId>chatgpt</artifactId>
    <version>1.2.0</version>
</dependency>

gradle

implementation group: 'com.github.plexpt', name: 'chatgpt', version: '1.2.0'

then

  Chatbot chatbot = new Chatbot("sessionToken");
  Map<String, Object> 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

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 has a much better CLI tool at

PyChatGPT supports captcha!

Star History

Star History Chart