mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
fix(utils.py): fix compatibility between together_ai and openai-python
This commit is contained in:
parent
156cccf706
commit
2e75279639
1 changed files with 1 additions and 3 deletions
|
@ -4285,9 +4285,7 @@ def get_optional_params(
|
||||||
if max_tokens is not None:
|
if max_tokens is not None:
|
||||||
optional_params["max_tokens"] = max_tokens
|
optional_params["max_tokens"] = max_tokens
|
||||||
if frequency_penalty is not None:
|
if frequency_penalty is not None:
|
||||||
optional_params["repetition_penalty"] = (
|
optional_params["frequency_penalty"] = frequency_penalty
|
||||||
frequency_penalty # https://docs.together.ai/reference/inference
|
|
||||||
)
|
|
||||||
if stop is not None:
|
if stop is not None:
|
||||||
optional_params["stop"] = stop
|
optional_params["stop"] = stop
|
||||||
if tools is not None:
|
if tools is not None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue