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

Error detected in pubspec.yaml: No file or variants found for asset: .env. #7

Closed RuberDucky closed 1 year ago

RuberDucky commented 1 year ago

This Error got by your recently changes please make it correct

iampawan commented 1 year ago

Add one .env file for accessing Api key

RuberDucky commented 1 year ago

Done

asheinherbert commented 1 year ago

VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value

0 OpenAI.build (package:chat_gpt_sdk/src/openai.dart:59:58)

1 _ChatScreenState.loadEnv (package:chat_gpt_02/chat_screen.dart:32:31)

This is the error I am getting
YagoVY commented 1 year ago

Hi, First of all, you are a Hero Pawan.

I had the same issue. When I created the .env file the error disappeared but I am having errores when Running the App. Should I add something to the .env document or empty should work? Thanks!

RuberDucky commented 1 year ago

@iampawan sir will you upload the application of chatgpt because it is not working it compiled but not fetching the data/Answer