mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
fix(sap): correct filtering of optional_params (#18716)
This commit is contained in:
parent
bbabc1089c
commit
b4a39a9ea2
1 changed files with 1 additions and 5 deletions
|
|
@ -203,12 +203,8 @@ class GenAIHubOrchestrationConfig(OpenAIGPTConfig):
|
|||
litellm_params: dict,
|
||||
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
|
||||
k: v for k, v in optional_params.items() if k not in {"tools", "model_version", "deployment_url"}
|
||||
}
|
||||
|
||||
model_version = optional_params.pop("model_version", "latest")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue