mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-23 00:41:40 +00:00
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:
parent
aa5969c95a
commit
87d1208ae6
1 changed files with 3 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue