From 951ecff4b23ed9943a1d62995816d21d676d8cf7 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 18 Mar 2026 02:01:10 +0000 Subject: [PATCH] fix(ci): update router region test to use gpt-4.1-mini (fix flaky model lookup) Replace deprecated gpt-3.5-turbo-1106 with gpt-4.1-mini + mock_response in test_router_region_pre_call_check, following the same pattern used in commit 717d37cc5b for test_router_context_window_check_pre_call_check_out_group. Co-authored-by: Ishaan Jaff --- tests/local_testing/test_router.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/local_testing/test_router.py b/tests/local_testing/test_router.py index c2b07a55087..e68d271a113 100644 --- a/tests/local_testing/test_router.py +++ b/tests/local_testing/test_router.py @@ -907,8 +907,9 @@ def test_router_region_pre_call_check(allowed_model_region): { "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": "This is a mock response.", }, "model_info": {"id": "2"}, },