From 43d84b1334c38f5d01719d80bca62c659fec3ddd Mon Sep 17 00:00:00 2001 From: Vasilisa Parshikova Date: Mon, 23 Mar 2026 19:09:21 +0400 Subject: [PATCH] (sap) fix after bot review --- litellm/llms/sap/chat/transformation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/llms/sap/chat/transformation.py b/litellm/llms/sap/chat/transformation.py index 82cc03cf94d..361e0297d23 100755 --- a/litellm/llms/sap/chat/transformation.py +++ b/litellm/llms/sap/chat/transformation.py @@ -220,8 +220,8 @@ class GenAIHubOrchestrationConfig(OpenAIGPTConfig): # Filter strict for GPT models only - SAP AI Core doesn't accept it as a model param # LangChain agents pass strict=true at top level, which fails for GPT models # Anthropic models accept strict, so preserve it for them - if model.startswith("gpt") and "strict" in optional_params: - optional_params.pop("strict") + if model.startswith("gpt") and "strict" in params: + params.pop("strict") model_version = params.pop("model_version", "latest")