Forum in maintenance, we will back soon 🙂
Notifications
Clear all
[Solved] raise ValueError("Please set the OPENAI_API_KEY in .env file.") ValueError: Please set the OPENAI_API_KEY in .env file.
Topic starter
i am using Generate Content Ideas Fast With AI & Automation script. i also set my API key as per introductions but still facing this error:-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\AI-Content-Ideas-Generator-Prototype-main\my_functions.py", line 17, in <module>
raise ValueError("Please set the OPENAI_API_KEY in .env file.")
ValueError: Please set the OPENAI_API_KEY in .env file.
For your information please find attached screen shot
Posted : 01/19/2024 7:37 am
I need to see the contents of the app.py file. You can use the (<>) icon to add a paste of the code.
The format of the .env file should be
OPENAI_API_KEY = sk-xxxx
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
Posted : 01/19/2024 6:23 pm
Hasan Aboul Hasan reacted
Forum Information
Our newest member: Pinkcat
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed