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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(sap): honor allowed_openai_params in transform_request (#18432)
Deepak Walia3a4ebf173f63
diff --git a/litellm/llms/sap/chat/transformation.py b/litellm/llms/sap/chat/transformation.pyindex 01ceb72c0de..e13abca59f8 100755--- a/litellm/llms/sap/chat/transformation.py+++ b/litellm/llms/sap/chat/transformation.py@@ -203,9 +203,13 @@ class GenAIHubOrchestrationConfig(OpenAIGPTConfig):headers: dict,) -> dict:supported_params = self.get_supported_openai_params(model)+ # Include extra params that passed validation (e.g., thinking_config for Gemini models via allowed_openai_params)+ extra_params = [k for k in optional_params if k not in supported_params and k not in {"tools", "model_version"}]+ supported_params = supported_params + extra_paramsmodel_params = {k: v for k, v in optional_params.items() if k in supported_params}+model_version = optional_params.pop("model_version", "latest")template = []for message in messages: