mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-24 00:52:24 +00:00
fix: handle optional embedding parameter allowlist
Signed-off-by: Hasnaat Hussain <hasnaat.hussain.2@gmail.com>
This commit is contained in:
parent
ce3c4559e0
commit
2dca7fe37a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue