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] Remove flush_cache from llm_translation conftest to prevent connection churn

yuneng-jiangf434cdbdcee7
diff --git a/tests/llm_translation/conftest.py b/tests/llm_translation/conftest.py
index e258bafc014..8388e7bb107 100644
--- a/tests/llm_translation/conftest.py
+++ b/tests/llm_translation/conftest.py
@@ -93,18 +93,12 @@ def setup_and_teardown(event_loop): # Add event_loop as a dependency
if hasattr(litellm, attr):
setattr(litellm, attr, default_val)
- if hasattr(litellm, "in_memory_llm_clients_cache"):
- litellm.in_memory_llm_clients_cache.flush_cache()
-
# Set the event loop from the fixture
asyncio.set_event_loop(event_loop)
yield
# ---- Teardown ----
- if hasattr(litellm, "in_memory_llm_clients_cache"):
- litellm.in_memory_llm_clients_cache.flush_cache()
-
for attr, original_value in original_state.items():
if hasattr(litellm, attr):
setattr(litellm, attr, original_value)