standard-tests: rename langchain_standard_tests to langchain_tests, release 0.3.2 (#28203)

This commit is contained in:
Erick Friis
2024-11-18 19:10:39 -08:00
committed by GitHub
parent 24eea2e398
commit 0dbaf05bb7
60 changed files with 70 additions and 83 deletions

View File

@@ -0,0 +1,14 @@
"""Utilities for working with pydantic models."""
def get_pydantic_major_version() -> int:
"""Get the major version of Pydantic."""
try:
import pydantic
return int(pydantic.__version__.split(".")[0])
except ImportError:
return 0
PYDANTIC_MAJOR_VERSION = get_pydantic_major_version()