← Back to changelog
October 25, 2023

Python SDK now supports Pydantic v1 and v2

Picture Max DeichmannMax Deichmann

The Python SDK uses Pydantic to validate the data you send to Langfuse at run time before it is asynchronously sent to the Langfuse API. Previously, the Python SDK used Pydantic v1 leading to incompatibilities with projects using Pydantic v2.

From 1.1.3 onwards, the Python SDK supports both Pydantic v1 and v2.

Was this page useful?

Questions? We're here to help

Subscribe to updates