fix(utils.py): fix get optional param embeddings

This commit is contained in:
Krrish Dholakia 2024-03-06 20:47:05 -08:00
parent be6674f5e0
commit c0c3117dec

View file

@ -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`.",