From 0fc56ee72de84d2399a521c6268d9c7ed3abcce6 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Tue, 15 Apr 2025 21:55:00 -0700 Subject: [PATCH] fix(groq/): don't pass max retries --- litellm/llms/groq/chat/transformation.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/litellm/llms/groq/chat/transformation.py b/litellm/llms/groq/chat/transformation.py index b0ee69bed2..a8972635f3 100644 --- a/litellm/llms/groq/chat/transformation.py +++ b/litellm/llms/groq/chat/transformation.py @@ -57,6 +57,14 @@ class GroqChatConfig(OpenAIGPTConfig): def get_config(cls): return super().get_config() + def get_supported_openai_params(self, model: str) -> list: + base_params = super().get_supported_openai_params(model) + try: + base_params.remove("max_retries") + except ValueError: + pass + return base_params + def _transform_messages(self, messages: List[AllMessageValues], model: str) -> List: for idx, message in enumerate(messages): """