From e5ca61d0263bf7d2ddf9813563031529102a1756 Mon Sep 17 00:00:00 2001 From: Teddy Amkie <38896345+TeddyAmkie@users.noreply.github.com> Date: Mon, 6 Oct 2025 19:57:21 -0700 Subject: [PATCH] feat: add stop parameter to non-supported params for GPT-5 (#15244) - Add 'stop' parameter to the non_supported_params list in OpenAIGPT5Config - This ensures the stop parameter is automatically dropped when calling GPT-5 models - Resolves issue where stop parameter was not being stripped for GPT-5 --- litellm/llms/openai/chat/gpt_5_transformation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/llms/openai/chat/gpt_5_transformation.py b/litellm/llms/openai/chat/gpt_5_transformation.py index fa357c1bd22..183f60debbd 100644 --- a/litellm/llms/openai/chat/gpt_5_transformation.py +++ b/litellm/llms/openai/chat/gpt_5_transformation.py @@ -41,6 +41,7 @@ class OpenAIGPT5Config(OpenAIGPTConfig): "presence_penalty", "frequency_penalty", "top_logprobs", + "stop", ] return [