Skip to content

Commit

Permalink
Make apiKey private
Browse files Browse the repository at this point in the history
  • Loading branch information
DeimosHall committed Dec 19, 2022
1 parent 1166e77 commit ba078d1
Show file tree
Hide file tree
Showing 15 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId "com.deimos.openaiapikotlin"
minSdk 21
targetSdk 32
versionCode 5
versionName "1.0.2"
versionCode 6
versionName "1.0.3"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import retrofit2.Response
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

class OpenAI(val apiKey: String) {
class OpenAI(private val apiKey: String) {
private val retrofit = Retrofit.Builder()
.baseUrl("https://api.openai.com/v1/")
.addConverterFactory(GsonConverterFactory.create())
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ dependencyResolutionManagement {
}
rootProject.name = "OpenAI API Kotlin"
include ':app'
include ':OpenAI API'
include ':library'

0 comments on commit ba078d1

Please sign in to comment.