Skip to content

Conversation

@fern-support
Copy link
Collaborator

tl/dr: python sdks generated with the new generator version (4.23.0 and later) consume much less memory ~72 MB

Description

We were seeing issues with memory footprint from just importing the vapi python sdk.
After some investigation, we discovered that this was caused by a change in pydantic versions 2.11.0 that caused one of our config specifications to eagerly do schema validation on all types at import type. In a recent change, we modified this configuration to retain the same type safety but to defer schema validation to usage time.

Testing Steps

We did some memory profiling tests to compare the most recent vapi-server-sdk python package against a locally generated preview sdk version to compare the cost of just importing the lib. We observed memory consumption of about 72MB with the new version, which we believe should be feasible for most environments to run.

  • Run the app locally using fern docs dev or navigate to preview deployment
  • Ensure that the changed pages and code snippets work

@github-actions
Copy link
Contributor

@dsinghvi dsinghvi merged commit 78566ac into main Jun 25, 2025
6 checks passed
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.

4 participants