Skip to content

Commit 1bab822

Browse files
authored
Add tenacity as a dependency to support LM retries with LiteLLM (#1731)
* Tenacity Signed-off-by: dbczumar <[email protected]> * Add to non-poetry Signed-off-by: dbczumar <[email protected]> --------- Signed-off-by: dbczumar <[email protected]>
1 parent b88caa3 commit 1bab822

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

poetry.lock

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

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ dependencies = [
4343
"magicattr~=0.1.6",
4444
"litellm",
4545
"diskcache",
46-
"json-repair"
46+
"json-repair",
47+
"tenacity>=8.2.3",
4748
]
4849

4950
[project.optional-dependencies]
@@ -137,6 +138,7 @@ magicattr = "^0.1.6"
137138
litellm = "1.49.1"
138139
diskcache = "^5.6.0"
139140
json-repair = "^0.30.0"
141+
tenacity = ">=8.2.3"
140142

141143
[tool.poetry.group.dev.dependencies]
142144
pytest = "^6.2.5"

requirements.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
backoff
22
datasets
3+
diskcache
4+
httpx
35
joblib~=1.3
6+
json-repair
47
litellm<=1.49.1
8+
magicattr~=0.1.6
59
openai
610
optuna
711
pandas
812
pydantic~=2.0
913
regex
1014
requests
1115
structlog
16+
tenacity>=8.2.3
1217
tqdm
1318
ujson
14-
httpx
15-
magicattr~=0.1.6
16-
diskcache
17-
json-repair

0 commit comments

Comments
 (0)