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")