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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test: use local model cost map in import-isolation subprocess
mateo-berrib8e11a75fa7e
diff --git a/tests/test_litellm/proxy/hooks/litellm_skills/test_main.py b/tests/test_litellm/proxy/hooks/litellm_skills/test_main.pyindex c037f60ac25..dc7ebf6e2ec 100644--- a/tests/test_litellm/proxy/hooks/litellm_skills/test_main.py+++ b/tests/test_litellm/proxy/hooks/litellm_skills/test_main.py@@ -1,3 +1,4 @@+import osimport subprocessimport sysfrom typing import Final@@ -78,6 +79,9 @@ def test_importing_proxy_hooks_does_not_mutate_litellm_callbacks():"assert len(litellm.callbacks) == 0, f'mutated: {litellm.callbacks}'")result: Final = subprocess.run(- [sys.executable, "-c", script], capture_output=True, text=True+ [sys.executable, "-c", script],+ capture_output=True,+ text=True,+ env={**os.environ, "LITELLM_LOCAL_MODEL_COST_MAP": "True"},)assert result.returncode == 0, f"stdout: {result.stdout}\nstderr: {result.stderr}"