Check if a provider's API key is set in environment.
The provider to check
true if the provider's env key is set and non-empty
if (isProviderActive('openai')) { // Safe to use OpenAI} Copy
if (isProviderActive('openai')) { // Safe to use OpenAI}
Check if a provider's API key is set in environment.