mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
fix(router.py): check if fallbacks is none
This commit is contained in:
parent
95579fda7d
commit
ab0bc87427
4 changed files with 11 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue