Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

feat: add stop parameter to non-supported params for GPT-5 (#15244)

Teddy Amkiee5ca61d0263b
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 [