@langwatch/scenario
    Preparing search index...

    Function resolveElevenLabsConvAIApiKey

    • The key the hosted ConvAI adapter presents: explicit value, else ELEVENLABS_CONVAI_API_KEY, else ELEVENLABS_API_KEY.

      Two variables because a gateway and the vendor want different credentials and one process runs both. ELEVENLABS_BASE_URL moves the ConvAI mint to a gateway, which authenticates a LangWatch virtual key, while speech-to-text and text-to-speech keep going to ElevenLabs, which authenticates an ElevenLabs key. A single variable would have to be both. ELEVENLABS_CONVAI_API_KEY is what pairs with ELEVENLABS_BASE_URL; unset, the adapter falls back to ELEVENLABS_API_KEY and behaves exactly as before.

      Parameters

      • Optionalexplicit: string

      Returns string