Simple & light weighted chatGPT (OpenAI API-based library). chat with OpenAI for free and endlessly..
Step 1. Add the JitPack repository to your build file
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.smith8h:SGPT:1.0'
}
Step 1. got to this website here and get your api-token to use it in this library. Step 2. use these codes to start a conversation wi chatGPT:
SGPT.setup(this, "token")
.callback(new ChatCallBack() {
@Override public void onResponse(String response) {
// use response
}
@Override public void onFailure(String message) {
// use message
}
}
.chat("your message");
And that's it!
If you would like to support this project's further development, the creator of this projects or the continuous maintenance of the project feel free to donate. Your donation is highly appreciated. Thank you!
You can choose what you want to donate, all donations are awesome!