mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-05 14:23:44 +00:00
fix(utils.py): fix compatibility between together_ai and openai-python
This commit is contained in:
+1
-3
@@ -4285,9 +4285,7 @@ def get_optional_params(
|
||||
if max_tokens is not None:
|
||||
optional_params["max_tokens"] = max_tokens
|
||||
if frequency_penalty is not None:
|
||||
optional_params["repetition_penalty"] = (
|
||||
frequency_penalty # https://docs.together.ai/reference/inference
|
||||
)
|
||||
optional_params["frequency_penalty"] = frequency_penalty
|
||||
if stop is not None:
|
||||
optional_params["stop"] = stop
|
||||
if tools is not None:
|
||||
|
||||
Reference in New Issue
Block a user