AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

OPENAI API key not recognized

Open javableu opened this issue 2 years ago • 4 comments

⚠️ Search for existing issues first ⚠️

  • [X] I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

Windows

Which version of Auto-GPT are you using?

Latest Release

GPT-3 or GPT-4?

GPT-3.5

Steps to reproduce 🕹

I just did the last pull and the openAI API is not recognized anymore

Current behavior 😯

Please set your OpenAI API key in .env or as an environment variable. You can get your key from https://platform.openai.com/account/api-keys

Expected behavior 🤔

No response

Your prompt 📝

# Paste your prompt here

Your Logs 📒

<insert your logs here>

javableu avatar Apr 22 '23 07:04 javableu

reset your .env file and try again

ntindle avatar Apr 22 '23 08:04 ntindle

Hi,

I deleted the env file and restarted again. Same bug. It happened with the last update pulled an hour ago. Maybe something to do with the overload? I'm getting a print (os.getenv("OPENAI_API_KEY")) >> NONE in the config.py.

javableu avatar Apr 22 '23 08:04 javableu

Check your PYTHONPATH 🤔

holisHsu avatar Apr 22 '23 09:04 holisHsu

Maybe had to do with the Python path. I checked on an Ubuntu virtual machine and everything is fine. On widows 11 it failed.I used conda...

javableu avatar Apr 22 '23 10:04 javableu

I have the same problem and I have tried the same suggestion already. Also this version of AutoGPT is sooo confused and repeats itself a trillion times =) I did a complete reinstall of AutoGPT as well.

Rumpa112 avatar Apr 23 '23 01:04 Rumpa112

This is a setup issue. We’d love to help everyone, but discord is better suited to do so. Join and shoot a message in the #tech-support channel so we can get this fixed

ntindle avatar Apr 23 '23 02:04 ntindle

I've learned not to argue reason or logic with the AI 😆 so I might just as well try the same here and not use arguments like "how can this be a "setup/configurations" issue when I have tried doing a complete reinstall of autogpt and made sure im on the stable branch. And I still get this error constantly. Instead I will ask you, what's the fix! 😘

Den sön 23 apr. 2023 04:27Nicholas Tindle @.***> skrev:

Closed #2892 https://github.com/Significant-Gravitas/Auto-GPT/issues/2892 as completed.

— Reply to this email directly, view it on GitHub https://github.com/Significant-Gravitas/Auto-GPT/issues/2892#event-9074055586, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANQ4HDHSBUTCQDWNZTWTCTDXCSHQNANCNFSM6AAAAAAXHVS4RQ . You are receiving this because you commented.Message ID: @.*** com>

Rumpa112 avatar Apr 23 '23 07:04 Rumpa112