From 2dca7fe37a2540aa92430b8fc73b25fb72ca90bd Mon Sep 17 00:00:00 2001 From: Hasnaat Hussain Date: Sun, 30 Aug 2026 19:46:33 +0500 Subject: [PATCH] fix: handle optional embedding parameter allowlist Signed-off-by: Hasnaat Hussain --- litellm/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/utils.py b/litellm/utils.py index 89a9de3d1ed..1cb65816d4f 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -3757,7 +3757,7 @@ def get_optional_params_embeddings( and (custom_llm_provider == "azure" or custom_llm_provider in litellm.openai_compatible_providers) and "text-embedding-3" not in model and "dimensions" in optional_params - and "dimensions" not in allowed_openai_params + and "dimensions" not in (allowed_openai_params or ()) ): optional_params.pop("dimensions", None)