visual-chatgpt icon indicating copy to clipboard operation
visual-chatgpt copied to clipboard

export openai_api_key

Open lengyanju8 opened this issue 1 year ago • 4 comments

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)

lengyanju8 avatar Mar 12 '23 06:03 lengyanju8

#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}"

Sanjeev-Kumar78 avatar Mar 12 '23 08:03 Sanjeev-Kumar78

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!

mikesoes avatar Mar 13 '23 19:03 mikesoes

#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!

Luyuhan0828 avatar Mar 14 '23 11:03 Luyuhan0828

#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!

nagaki09 avatar Mar 14 '23 14:03 nagaki09

#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

DoubleCore avatar Mar 24 '23 13:03 DoubleCore