Skip to content

Commit 5e536de

Browse files
committed
feat: add Python 3.14 support
Widen Python version constraint from <3.14 to <3.15 and bump redisvl minimum from 0.11.0 to 0.14.0, which supports Python 3.14. - Update python constraint to >=3.10,<3.15 - Bump redisvl to >=0.14.0,<1.0.0 - Add Python 3.14 classifier and black target - Fix semantic cache test that used distance_threshold=0.95 (was incorrectly treating distance as similarity score) Closes #148
1 parent 2d6216c commit 5e536de

3 files changed

Lines changed: 16 additions & 12 deletions

File tree

poetry.lock

Lines changed: 11 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ classifiers = [
1212
"Programming Language :: Python :: 3.11",
1313
"Programming Language :: Python :: 3.12",
1414
"Programming Language :: Python :: 3.13",
15+
"Programming Language :: Python :: 3.14",
1516
"License :: OSI Approved :: MIT License",
1617
]
1718
packages = [{ include = "langgraph" }]
1819

1920
[tool.poetry.dependencies]
20-
python = ">=3.10,<3.14"
21+
python = ">=3.10,<3.15"
2122
langgraph-checkpoint = ">=3.0.0,<5.0.0"
22-
redisvl = ">=0.11.0,<1.0.0"
23+
redisvl = ">=0.14.0,<1.0.0"
2324
redis = ">=5.2.1"
2425
orjson = "^3.9.0"
2526
tomli = { version = "^2.0.1", python = "<3.11" }
@@ -83,7 +84,7 @@ requires = ["poetry-core>=1.0.0"]
8384
build-backend = "poetry.core.masonry.api"
8485

8586
[tool.black]
86-
target-version = ['py310', 'py311', 'py312', 'py313']
87+
target-version = ['py310', 'py311', 'py312', 'py313', 'py314']
8788
exclude = '''
8889
(
8990
| \.egg

tests/integration/test_middleware_with_langgraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async def test_different_prompts_not_cached(self, redis_url: str) -> None:
8585
config = SemanticCacheConfig(
8686
redis_url=redis_url,
8787
name="test_llm_cache_diff",
88-
distance_threshold=0.95, # High similarity threshold - only near-exact matches
88+
distance_threshold=0.05, # Low distance threshold - only near-exact matches
8989
ttl_seconds=60,
9090
)
9191

0 commit comments

Comments
 (0)