You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve api_key from env var with runtime assertion
The upcoming SDK regeneration (#761) makes api_key required in the
generated base client. This updates the wrapper to resolve api_key from
the parameter or ELEVENLABS_API_KEY env var, raising a clear error if
neither is set — keeping the public API backwards-compatible.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
"Please pass in your ElevenLabs API Key or export ELEVENLABS_API_KEY in your environment."
27
+
)
28
+
returnresolved
29
+
30
+
22
31
classElevenLabs(BaseElevenLabs):
23
32
"""
24
33
Use this class to access the different functions within the SDK. You can instantiate any number of clients with different configuration that will propogate to these functions.
0 commit comments