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:
Lawrence Neal
2023-04-24 21:32:59 -07:00
committed by GitHub
parent 3d47b47901
commit 140fd6f3bf

View File

@@ -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)