Skip to content

fix(types): refactored type definitions to fix infinite recursion error#658

Closed
fern-support wants to merge 2 commits into
mainfrom
fern-support/fix-recursion-error
Closed

fix(types): refactored type definitions to fix infinite recursion error#658
fern-support wants to merge 2 commits into
mainfrom
fern-support/fix-recursion-error

Conversation

@fern-support
Copy link
Copy Markdown
Collaborator

@fern-support fern-support commented Oct 23, 2025

Fixes #637

The elevenlabs API spec has sophisticated typing definitions that include recursive types which contain elements of themselves.
Screenshot 2025-10-23 at 6 37 54 PM

This lead to complications in the way the types are defined. This was fixed by:

  • consolidating all the recursively defined types in a single file
  • still maintaining the standalone file for backwards compatibility

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.

Recursion Error on importing elevenlabs.conversational_ai

2 participants