forked from phoenix/litellm-mirror
fix(utils.py): fix get optional param embeddings
This commit is contained in:
parent
be6674f5e0
commit
c0c3117dec
1 changed files with 5 additions and 5 deletions
|
@ -4030,7 +4030,7 @@ def get_optional_params_embeddings(
|
||||||
keys = list(non_default_params.keys())
|
keys = list(non_default_params.keys())
|
||||||
for k in keys:
|
for k in keys:
|
||||||
non_default_params.pop(k, None)
|
non_default_params.pop(k, None)
|
||||||
return non_default_params
|
else:
|
||||||
raise UnsupportedParamsError(
|
raise UnsupportedParamsError(
|
||||||
status_code=500,
|
status_code=500,
|
||||||
message=f"Setting user/encoding format is not supported by {custom_llm_provider}. To drop it from the call, set `litellm.drop_params = True`.",
|
message=f"Setting user/encoding format is not supported by {custom_llm_provider}. To drop it from the call, set `litellm.drop_params = True`.",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue