fix(sap): honor allowed_openai_params in transform_request (#18432)

This commit is contained in:
Deepak Walia 2026-01-04 00:35:53 +05:30 • committed by GitHub
parent a3503e59c2
commit 3a4ebf173f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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_params
model_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: