Update litellm/llms/dashscope/embed/transformation.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
yimao 2026-05-09 11:29:21 +08:00 committed by GitHub
parent aa5969c95a
commit 87d1208ae6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,8 +57,9 @@ class DashScopeEmbeddingConfig(BaseEmbeddingConfig):
continue
if k in supported:
optional_params[k] = v
elif not drop_params:
raise ValueError(f"Unsupported parameter for DashScope embeddings: {k}")
# unsupported params are dropped when drop_params=True;
# the upstream _check_valid_arg already raised UnsupportedParamsError
# for drop_params=False before this method is called.
return optional_params
def validate_environment(