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 flaky CI: update deprecated model, filter leaked async task logs

yuneng-jiang717d37cc5b3d
diff --git a/tests/local_testing/test_router.py b/tests/local_testing/test_router.py
index f30d5cef227..c2b07a55087 100644
--- a/tests/local_testing/test_router.py
+++ b/tests/local_testing/test_router.py
@@ -825,8 +825,9 @@ def test_router_context_window_check_pre_call_check_out_group():
{
"model_name": "gpt-3.5-turbo-large", # openai model name
"litellm_params": { # params for litellm completion/embedding call
- "model": "gpt-3.5-turbo-1106",
+ "model": "gpt-4.1-mini",
"api_key": os.getenv("OPENAI_API_KEY"),
+ "mock_response": "Alexander was a great conqueror.",
},
},
]
diff --git a/tests/local_testing/test_router_debug_logs.py b/tests/local_testing/test_router_debug_logs.py
index 0ccbf5ab0af..1004e7747ef 100644
--- a/tests/local_testing/test_router_debug_logs.py
+++ b/tests/local_testing/test_router_debug_logs.py
@@ -83,6 +83,7 @@ def test_async_fallbacks(caplog):
log
for log in captured_logs
if "Task exception was never retrieved" not in log
+ and "Task was destroyed but it is pending" not in log
and "get_available_deployment" not in log
and "in the Langfuse queue" not in log
]