Skip to content

Commit 0035169

Browse files
authored
chore: pin transformers<5 for HanLP integration (#2785)
* chore: pin transformers<5 for HanLP integration * better pin * fix * better pins
1 parent ebdef18 commit 0035169

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

integrations/hanlp/pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ classifiers = [
2424
]
2525
dependencies = [
2626
"haystack-ai>=2.22.0",
27-
"hanlp>=2.1.1"
27+
"hanlp>=2.1.1",
28+
# the following pins can be removed once HanLP supports transformers 5
29+
"transformers>=4.1.1,<5",
30+
# tokenizers is a dependency of transformers. The following version is the first one which supports Python 3.13.
31+
"tokenizers>=0.20.2",
2832
]
2933

3034
[project.urls]

0 commit comments

Comments
 (0)