Created
February 5, 2023 12:06
-
-
Save SuvidhaMalaviya/7bd2449e5d92e4c84f0b7ba5140e2fa1 to your computer and use it in GitHub Desktop.
ChatGPT Integration-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import retrofit2.Retrofit; | |
import retrofit2.converter.gson.GsonConverterFactory; | |
Retrofit retrofit = new Retrofit.Builder() | |
.baseUrl("https://api.openai.com") | |
.addConverterFactory(GsonConverterFactory.create()) | |
.build(); | |
ChatGPTAPI chatGPTAPI = retrofit.create(ChatGPTAPI.class); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment