chenfei-wu / TaskMatrix

Other
34.54k stars 3.33k forks source link

export openai_api_key #105

Open lengyanju8 opened 1 year ago

lengyanju8 commented 1 year ago

Did not find openai_api_key, please add an environment variable OPENAI_API_KEY which contains it, or pass openai_api_key as a named parameter. (type=value_error)

Sanjeev-Kumar78 commented 1 year ago

53 Checkout this may help you to resolve your issue.

I have also faced the same issue then I added this code in visual_chatgpt.py file os.environ["OPENAI_API_KEY"] = "{your_openai_key}"

mikesoes commented 1 year ago

I just cloned this project and my visual_chatgpt.py file does not contain 940 lines, but I just added the code you mentioned above and it worked!

Luyuhan0828 commented 1 year ago

53 Checkout this may help you to resolve your issue. I have also faced the same issue then I added this code in visual_chatgpt.py file os.environ["OPENAI_API_KEY"] = "{your_openai_key}"

Thanks, it works!

nagaki09 commented 1 year ago

53 Checkout this may help you to resolve your issue. I have also faced the same issue then I added this code in visual_chatgpt.py file os.environ["OPENAI_API_KEY"] = "{your_openai_key}"

thx,it works!

DoubleCore commented 1 year ago

53 Checkout this may help you to resolve your issue. I have also faced the same issue then I added this code in visual_chatgpt.py file os.environ["OPENAI_API_KEY"] = "{your_openai_key}"

thnaks !!! it works