Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 762b92d. Configure here.
|
|
||
| client = ElevenLabs( | ||
| api_key="YOUR_API_KEY", | ||
| api_key="YOUR_API_KEY", |
There was a problem hiding this comment.
Duplicate keyword argument in all code examples
High Severity
Every code example in the SDK now contains a duplicate api_key="YOUR_API_KEY" keyword argument. In Python, duplicate keyword arguments are a SyntaxError. Users copying any example from reference.md or the docstrings will get an immediate syntax error. This affects hundreds of examples across the entire codebase.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 762b92d. Configure here.
| if api_key is None: | ||
| raise ApiError( | ||
| body="The client must be instantiated be either passing in api_key or setting ELEVEN_API_KEY" | ||
| ) |
There was a problem hiding this comment.
Error message references wrong environment variable name
Medium Severity
The error message tells users to set ELEVEN_API_KEY, but client.py actually reads from ELEVENLABS_API_KEY via os.getenv("ELEVENLABS_API_KEY"). Users following the error guidance would set the wrong environment variable and still fail to initialize the client.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 762b92d. Configure here.


This PR regenerates code to match the latest API Definition.
Note
Medium Risk
Introduces potentially breaking SDK surface changes by making
api_keyrequired (and raisingApiErrorwhen missing) and by changingknowledge_base.documents.get_contentto return text instead ofNone. Remaining changes are largely auto-generated doc/example churn and version bumps.Overview
Regenerates the Fern-produced Python SDK and bumps the package version to
2.42.1(Fern CLI metadata updated, includingoriginGitCommit).Behavioral/API changes:
ElevenLabs/AsyncElevenLabsnow requireapi_keyat construction time and raiseApiErrorif it’s missing, andconversational_ai.knowledge_base.documents.get_content(sync/async + raw clients) now returns the document content asstr(using_response.text) instead of returningNone.Large amounts of auto-generated documentation/examples were updated (notably many snippets now show a duplicated
api_keyargument, and thestudio.create_podcastexample dropssafety_identifier).Reviewed by Cursor Bugbot for commit 762b92d. Bugbot is set up for automated code reviews on this repo. Configure here.