fix(tests): guard conftest backfill against empty local cost map

This commit is contained in:
mateo-berri 2026-05-20 07:20:51 +00:00
parent 99fda58f57
commit 3c4e1c21ae
No known key found for this signature in database

View file

@ -31,9 +31,10 @@ import litellm
# the cassette state the branch is being tested with.
from litellm.litellm_core_utils.get_model_cost_map import GetModelCostMap
for _k, _v in GetModelCostMap.load_local_model_cost_map().items():
_local_cost_map = GetModelCostMap.load_local_model_cost_map()
for _k, _v in _local_cost_map.items():
litellm.model_cost.setdefault(_k, _v)
del _k, _v
del _local_cost_map
from tests._vcr_conftest_common import ( # noqa: E402,F401
VerboseReporterState,