test(clf_ai_gateway): name the gateway-rejected params instead of commenting them

This commit is contained in:
mateo-berri 2026-09-06 03:43:41 -07:00 • committed by bap1106
parent da8494e2f0
commit 7acf816586

View file

@ -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)