/ChatGPT-App

A simple ChatGPT app built using OpenAI API using Java for the backend and OkHttp library for creating HTTP requests

Primary LanguageJavaApache License 2.0Apache-2.0

ChatGPT-App

A simple ChatGPT app built using OpenAI API using Java for the backend and OKHTTP library for creating HTTP requests

build.gradle

Add the below dependency in Module level build.gradle

 implementation("com.squareup.okhttp3:okhttp:4.10.0")

AndroidManifest.xml In AndroidManifest.xml file give the permission to use Internet

 <uses-permission android:name="android.permission.INTERNET" />

API Call URL

https://api.openai.com/v1/completions

Screenshots

References