From 8b371d834753deb07e4561847709ab25d543f941 Mon Sep 17 00:00:00 2001 From: Huu Le <39040748+leehuwuj@users.noreply.github.com> Date: Thu, 21 Nov 2024 11:38:52 +0700 Subject: [PATCH] chore: fix incompatible with pydantic (#442) --- .changeset/breezy-rice-shout.md | 5 +++++ templates/types/extractor/fastapi/pyproject.toml | 1 + templates/types/streaming/fastapi/pyproject.toml | 1 + 3 files changed, 7 insertions(+) create mode 100644 .changeset/breezy-rice-shout.md diff --git a/.changeset/breezy-rice-shout.md b/.changeset/breezy-rice-shout.md new file mode 100644 index 00000000..58172bd9 --- /dev/null +++ b/.changeset/breezy-rice-shout.md @@ -0,0 +1,5 @@ +--- +"create-llama": patch +--- + +Set pydantic version to <2.10 to avoid incompatibility with llama-index. diff --git a/templates/types/extractor/fastapi/pyproject.toml b/templates/types/extractor/fastapi/pyproject.toml index fd0857ca..e9574a01 100644 --- a/templates/types/extractor/fastapi/pyproject.toml +++ b/templates/types/extractor/fastapi/pyproject.toml @@ -13,6 +13,7 @@ python = "^3.11,<4.0" fastapi = "^0.109.1" uvicorn = { extras = ["standard"], version = "^0.23.2" } python-dotenv = "^1.0.0" +pydantic = "<2.10" llama-index = "^0.11.1" cachetools = "^5.3.3" reflex = "^0.6.2.post1" diff --git a/templates/types/streaming/fastapi/pyproject.toml b/templates/types/streaming/fastapi/pyproject.toml index 342d191c..4d181fa6 100644 --- a/templates/types/streaming/fastapi/pyproject.toml +++ b/templates/types/streaming/fastapi/pyproject.toml @@ -16,6 +16,7 @@ python = ">=3.11,<3.14" fastapi = "^0.109.1" uvicorn = { extras = ["standard"], version = "^0.23.2" } python-dotenv = "^1.0.0" +pydantic = "<2.10" aiostream = "^0.5.2" cachetools = "^5.3.3" llama-index = "^0.11.17" -- GitLab