Skip to content

smith8h/SGPT

Repository files navigation

SChatGPT Library

Latest release Builds and tests stability minsdk stable size


Simple & light weighted chatGPT (OpenAI API-based library). chat with OpenAI for free and endlessly..

Installation

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'
}

Documentation

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!

Donations ❤

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!

PayPal Buy me a coffee Ko-fi


With ❤️

About

Simple & light weighted chatGPT (openAi API-based library), chat with openai for free and endlessly..

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages