Skip to content

test(litellm): Set LITELLM_LOCAL_MODEL_COST_MAP=true - #7630

Merged
alexander-alderman-webb merged 1 commit into
masterfrom
webb/litellm/fix-ci
Sep 23, 2026
Merged

alexander-alderman-webb merged 1 commit into
masterfrom
webb/litellm/fix-ci

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Description

Avoid litellm making an HTTP call to determine model costs.
This forces litellm to do a local lookup with a cost map bundled in the litellm wheel. Lookup failures will then surface in the weekly update.

Issues

Reminders

@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ 129753 passed | ⏭️ 7148 skipped | Total: 136901 | Pass Rate: 94.78% | Execution Time: 434m 58s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +422
Passed Tests 📈 +423
Failed Tests 📉 -1
Skipped Tests —

➖ Removed Tests (1)

View removed tests
  • test_cache_spans_decorator[True]
    • File: tests.integrations.django.test_cache_module

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2543 uncovered lines.
✅ Project coverage is 90.22%. Comparing base (85e7ce6) to head (268d1f9).

Coverage diff
@@            Coverage Diff             @@
##        master       #PR       +/-##
==========================================
+ Coverage    90.22%    90.22%        —%
==========================================
  Files          194       194         —
  Lines        25997     25997         —
  Branches      9662      9662         —
==========================================
+ Hits         23454     23454         —
- Misses        2543      2543         —
- Partials      1451      1451         —

Generated by Codecov Action

@alexander-alderman-webb
alexander-alderman-webb marked this pull request as ready for review September 23, 2026 09:20
@alexander-alderman-webb
alexander-alderman-webb requested a review from a team as a code owner September 23, 2026 09:21
@alexander-alderman-webb
alexander-alderman-webb merged commit d122d57 into master Sep 23, 2026
314 of 316 checks passed
@alexander-alderman-webb
alexander-alderman-webb deleted the webb/litellm/fix-ci branch September 23, 2026 09:25

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 268d1f9. Configure here.

# which targets the workspace `.venv` instead of the tox env and hangs.
ray: RAY_ENABLE_UV_RUN_RUNTIME_ENV=0

litellm: LITELLM_LOCAL_MODEL_COST_MAP=true

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Local cost map flag value ignored

Medium Severity

LiteLLM enables the bundled cost map only when LITELLM_LOCAL_MODEL_COST_MAP equals the string True. The lowercase true set here does not match that check, so litellm test envs still fetch the remote cost map that this change is meant to disable.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 268d1f9. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants