lambiengcode / compose-chatgpt-kotlin-android-chatbot

Compose ChatGPT Kotlin - Android Chatbot using Kotlin + Jetpack Compose + Coroutine + MVVM + Retrofit2 + OpenAI's GPT-3 API. Allow stream response from ChatGPT API.
https://youtube.com/shorts/esLh-n3Ao5U
MIT License
217 stars 31 forks source link

Need Settings for inserting chatGPT api key #2

Closed x-0D closed 1 year ago

x-0D commented 1 year ago

App just crashes if i try to talk. I think it is because chatGPT api key is missing. Where i can set up my key?

lambiengcode commented 1 year ago

@x-0D

  1. you need create firebase project and setup firestore
  2. download google-services.json and put it in to /app
  3. generate api key from openai console: https://platform.openai.com/account/api-keys
  4. in the app/src/main/java/com/chatgptlite/wanted/constants/Constants.kt file, replace with your actual API key: openAIApiKey=
lambiengcode commented 1 year ago

@x-0D i just uploaded the google-services.json file, you just need to change your openai_api_key to run the project.

x-0D commented 1 year ago

Can you build project for non-programmer, regular use? Here is reference foss technology but for web.

https://github.com/ztjhz/BetterChatGPT

(If you need it, i can configure ci/cd pipeline for autocompiling when new release created)