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]

fix build and test

Ishaan Jaffer2bc122302f04
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 5dd7a189fcd..6259c18c8bd 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1156,6 +1156,7 @@ jobs:
pip install "requests-mock>=1.12.1"
pip install "responses==0.25.7"
pip install "pytest-xdist==3.6.1"
+ pip install "pytest-forked==1.6.0"
pip install "semantic_router==0.1.10"
pip install "fastapi-offline==1.7.3"
- setup_litellm_enterprise_pip
diff --git a/tests/test_model_cost_map_url.py b/tests/test_model_cost_map_url.py
index b740c357193..f19fc3a1981 100644
--- a/tests/test_model_cost_map_url.py
+++ b/tests/test_model_cost_map_url.py
@@ -1,9 +1,16 @@
import importlib
import sys
+import pytest
def test_model_cost_map_url_from_env(monkeypatch):
- """Ensure `LITELLM_MODEL_COST_MAP_URL` env var is picked up on import and used by get_model_cost_map."""
+ """
+ Ensure `LITELLM_MODEL_COST_MAP_URL` env var is picked up on import and used by get_model_cost_map.
+
+ This test reloads the litellm module, so it runs in a forked process to avoid
+ affecting other tests running in parallel.
+ """
test_url = "https://example.com/test_model_cost_map.json"
# A minimal model cost map we expect to be loaded