fix test_filter_invalid_params_pre_call_check

This commit is contained in:
Ishaan Jaff 2024-05-23 21:16:32 -07:00
parent bc399029d8
commit 7d2c76f640

View file

@ -3345,7 +3345,7 @@ class Router:
special_params = ["response_object"]
# check if all params are supported
for k, v in non_default_params.items():
if k not in supported_openai_params and k in special_params:
if k not in supported_openai_params:
# if not -> invalid model
verbose_router_logger.debug(
f"INVALID MODEL INDEX @ REQUEST KWARG FILTERING, k={k}"