Skip to content

Commit d122d57

Browse files
test(litellm): Set LITELLM_LOCAL_MODEL_COST_MAP=true (getsentry#7630)
Avoid litellm making an HTTP call to determine model costs. This forces litellm to do a local lookup using the cost map bundled in the litellm wheel. Lookup failures will then surface in the weekly update.
1 parent 85e7ce6 commit d122d57

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎scripts/populate_tox/tox.jinja‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ setenv =
227227
# which targets the workspace `.venv` instead of the tox env and hangs.
228228
ray: RAY_ENABLE_UV_RUN_RUNTIME_ENV=0
229229
230+
litellm: LITELLM_LOCAL_MODEL_COST_MAP=true
231+
230232
# Avoid polluting test suite with imports
231233
common: PYTEST_ADDOPTS="--ignore=tests/test_shadowed_module.py"
232234
gevent: PYTEST_ADDOPTS="--ignore=tests/test_shadowed_module.py"

‎tox.ini‎

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

0 commit comments

Comments
 (0)