This function checks whether the API key provided in the OPENAI_API_KEY
environment variable is valid. This function will not re-check an API if it
has already been validated in the current session.
This function checks whether the API key provided in the OPENAI_API_KEY
environment variable is valid. This function will not re-check an API if it
has already been validated in the current session.