Assert that a provider's API key is active, throwing if not.
The provider to assert
ProviderError if the provider's API key is not set
assertProviderActive('openai');// Throws if API_KEY_OPENAI is not set Copy
assertProviderActive('openai');// Throws if API_KEY_OPENAI is not set
Assert that a provider's API key is active, throwing if not.