From 7acf816586ea978f0fc424298cd02fee37868cc3 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Sun, 6 Sep 2026 03:43:41 -0700 Subject: [PATCH] test(clf_ai_gateway): name the gateway-rejected params instead of commenting them --- .../test_clf_ai_gateway_chat_transformation.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_litellm/llms/clf_ai_gateway/test_clf_ai_gateway_chat_transformation.py b/tests/test_litellm/llms/clf_ai_gateway/test_clf_ai_gateway_chat_transformation.py index 7cec1d65f21..6415d77e13d 100644 --- a/tests/test_litellm/llms/clf_ai_gateway/test_clf_ai_gateway_chat_transformation.py +++ b/tests/test_litellm/llms/clf_ai_gateway/test_clf_ai_gateway_chat_transformation.py @@ -86,9 +86,8 @@ def test_supported_params_match_gateway_surface() -> None: params = ClfAiGatewayConfig().get_supported_openai_params(model="glm-5.3") assert "reasoning_effort" in params assert "tools" in params and "tool_choice" in params - # the gateway rejects these legacy/unknown fields with a 400 — never advertise them - for legacy in ("functions", "function_call", "logit_bias"): - assert legacy not in params + for rejected_by_gateway_with_400 in ("functions", "function_call", "logit_bias"): + assert rejected_by_gateway_with_400 not in params @pytest.mark.parametrize("model", MODELS)