Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test(cost-map): clear LITELLM_LOCAL_MODEL_COST_MAP in register_model url test

kerry9a721abf0d09
diff --git a/tests/test_litellm/test_utils.py b/tests/test_litellm/test_utils.py
index e90372141bd..e42608c9904 100644
--- a/tests/test_litellm/test_utils.py
+++ b/tests/test_litellm/test_utils.py
@@ -2386,6 +2386,7 @@ def test_register_model_with_scientific_notation():
@respx.mock
def test_register_model_url_fetch_uses_single_attempt(monkeypatch):
+ monkeypatch.delenv("LITELLM_LOCAL_MODEL_COST_MAP", raising=False)
monkeypatch.setattr(litellm, "model_cost", dict(litellm.model_cost))
before = dict(litellm.model_cost)
threads_before = {thread.name for thread in threading.enumerate()}