Skip to content

🌿 Fern Regeneration -- April 8, 2026#765

Closed
fern-api[bot] wants to merge 1 commit intomainfrom
fern-bot/2026-04-08T23-42Z
Closed

🌿 Fern Regeneration -- April 8, 2026#765
fern-api[bot] wants to merge 1 commit intomainfrom
fern-bot/2026-04-08T23-42Z

Conversation

@fern-api
Copy link
Copy Markdown
Contributor

@fern-api fern-api Bot commented Apr 8, 2026

This PR regenerates code to match the latest API Definition.


Note

Medium Risk
Introduces potentially breaking SDK surface changes by making api_key required (and raising ApiError when missing) and by changing knowledge_base.documents.get_content to return text instead of None. 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, including originGitCommit).

Behavioral/API changes: ElevenLabs/AsyncElevenLabs now require api_key at construction time and raise ApiError if it’s missing, and conversational_ai.knowledge_base.documents.get_content (sync/async + raw clients) now returns the document content as str (using _response.text) instead of returning None.

Large amounts of auto-generated documentation/examples were updated (notably many snippets now show a duplicated api_key argument, and the studio.create_podcast example drops safety_identifier).

Reviewed by Cursor Bugbot for commit 762b92d. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ 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",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
Fix in Cursor Fix in Web

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"
)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 762b92d. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant