Skip to content

Commit 2e75279

Browse files
committed
fix(utils.py): fix compatibility between together_ai and openai-python
1 parent 156cccf commit 2e75279

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

litellm/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4285,9 +4285,7 @@ def _map_and_modify_arg(supported_params: dict, provider: str, model: str):
42854285
if max_tokens is not None:
42864286
optional_params["max_tokens"] = max_tokens
42874287
if frequency_penalty is not None:
4288-
optional_params["repetition_penalty"] = (
4289-
frequency_penalty # https://docs.together.ai/reference/inference
4290-
)
4288+
optional_params["frequency_penalty"] = frequency_penalty
42914289
if stop is not None:
42924290
optional_params["stop"] = stop
42934291
if tools is not None:

0 commit comments

Comments
 (0)