Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Ensure Fore.RED is followed by Fore.RESET (#3182)

Lawrence Neal140fd6f3bfc0
diff --git a/autogpt/config/config.py b/autogpt/config/config.py
index 101f2919f3..9de7fe70fc 100644
--- a/autogpt/config/config.py
+++ b/autogpt/config/config.py
@@ -277,6 +277,7 @@ def check_openai_api_key() -> None:
print(
Fore.RED
+ "Please set your OpenAI API key in .env or as an environment variable."
+ + Fore.RESET
)
print("You can get your key from https://platform.openai.com/account/api-keys")
exit(1)