iampawan / ChatGPT-Flutter-AIChatBot

A Chatbot chat app built using the Flutter framework and OpenAI's GPT-3 language model.
230 stars 99 forks source link

No file or variants found for asset: .env. #12

Closed rutvik2511 closed 1 year ago

rutvik2511 commented 1 year ago

Error (Xcode): No file or variants found for asset: .env.

Could not build the application for the simulator. Error launching application on iPhone 14.

https://drive.google.com/file/d/1GJ2StBeFaa7nieRR0NJCME50PnbO68O2/view?usp=share_link

Mrunal333 commented 1 year ago

HI @rutvik2511 , You have to add .env file in your project to store your secret key. I follow this simple steps: https://www.geeksforgeeks.org/how-to-add-env-file-in-flutter/

Thanks

iampawan commented 1 year ago

As mentioned by @Mrunal333 you need to add .env file in your project to store your API key. We are using flutter_dotenv package for that.