From 2e752796390b801dc75c8487ddb4d84fc9cde2b4 Mon Sep 17 00:00:00 2001 From: zu1k Date: Tue, 27 Feb 2024 16:38:17 +0800 Subject: [PATCH] fix(utils.py): fix compatibility between together_ai and openai-python --- litellm/utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/litellm/utils.py b/litellm/utils.py index 4502e14de..70616d255 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -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: