mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-24 16:34:24 +01:00
Ensure Fore.RED is followed by Fore.RESET (#3182)
This properly resets the terminal, ensuring that the red text is red and the normal text remains unaffected. Co-authored-by: Richard Beales <rich@richbeales.net>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user