Chatoyant - v0.2.1
    Preparing search index...

    Function assertProviderActive

    • Assert that a provider's API key is active, throwing if not.

      Parameters

      Returns void

      ProviderError if the provider's API key is not set

      assertProviderActive('openai');
      // Throws if API_KEY_OPENAI is not set