forked from phoenix/litellm-mirror
add logit bias
This commit is contained in:
parent
dc7d2b7631
commit
abfc286c20
2 changed files with 3 additions and 2 deletions
|
@ -452,6 +452,8 @@ def get_optional_params(
|
|||
optional_params["temperature"] = temperature
|
||||
if max_tokens != float("inf"):
|
||||
optional_params["max_tokens"] = max_tokens
|
||||
if logit_bias != {}:
|
||||
optional_params["logit_bias"] = logit_bias
|
||||
return optional_params
|
||||
elif custom_llm_provider == "replicate":
|
||||
# any replicate models
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue