From 3595956f7ce055a944c56743329f1a5971345792 Mon Sep 17 00:00:00 2001 From: mountain Date: Tue, 12 May 2026 14:32:17 +0800 Subject: [PATCH] chore(deps): declare pydantic as a direct dependency pageindex/config.py imports `from pydantic import BaseModel` in production code, but pyproject.toml only pulled pydantic in transitively via litellm. A future litellm release could drop or re-pin pydantic and break installs. Pin to `>=2.5.0,<3.0.0` to match the v2-style BaseModel usage already in the codebase, and to stay compatible with litellm's own pydantic constraint. --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 512c8ed..c41882e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,6 +31,7 @@ openai-agents = ">=0.1.0" requests = ">=2.28.0" httpx = {extras = ["socks"], version = ">=0.28.1"} typing-extensions = ">=4.9.0" +pydantic = ">=2.5.0,<3.0.0" [tool.poetry.urls] Repository = "https://github.com/VectifyAI/PageIndex"