Chatoyant - v0.2.1
    Preparing search index...

    Function isProviderActive

    • Check if a provider's API key is set in environment.

      Parameters

      Returns boolean

      true if the provider's env key is set and non-empty

      if (isProviderActive('openai')) {
      // Safe to use OpenAI
      }