Very small API only about getting answer from ChatGPT from OpenAI!
By using OpenAI-GPT3
Only Spigot support!
- Add depedency into your maven/gradle
- Create instance for ChatGPT
- Use login, and register method
- And have fun!
Here you can see the configuration interface
Maven
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.Fly_Ultra</groupId>
<artifactId>TheChatGPT</artifactId>
<version>VERSION</version>
<scope>compile</scope>
</dependency>
Gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.Fly_Ultra:TheChatGPT:VERSION'
}
private ChatGPT chatGPT;
@Override
public void onEnable() {
instance = this;
// How to register ChatGPT
chatGPT = new ChatGPT(this);
chatGPT.login("your token", 0);
chatGPT.register("AI", "You", "text-davinci-003", 0.9D, 50, 1.0D, 0D, 0.6D);
}
// Getter for ChatGPT
public ChatGPT getChatGPT() {
return chatGPT;
}
// How to get answer from AI
getChatGPT().getAnswer(player, "How are you bro?");
TheChatGPT is licensed under the permissive MIT license. Please see LICENSE.txt
for more information.