fix(router.py): check if fallbacks is none

This commit is contained in:
Krrish Dholakia 2023-11-25 14:58:07 -08:00
parent 95579fda7d
commit ab0bc87427
4 changed files with 11 additions and 5 deletions

View file

@ -1991,7 +1991,7 @@ def get_optional_params( # use the openai defaults
optional_params["temperature"] = temperature
if max_tokens is not None:
optional_params["max_tokens"] = max_tokens
if logit_bias != {}:
if logit_bias is not None:
optional_params["logit_bias"] = logit_bias
if top_p is not None:
optional_params["p"] = top_p