mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
Fix: TypeError: Object of type function is not JSON serializable
This commit is contained in:
parent
fcabc059ca
commit
d590c820c2
1 changed files with 2 additions and 0 deletions
|
|
@ -2990,6 +2990,8 @@ def get_optional_params_embeddings( # noqa: PLR0915
|
|||
|
||||
drop_params = passed_params.pop("drop_params", None)
|
||||
additional_drop_params = passed_params.pop("additional_drop_params", None)
|
||||
# Remove function objects from passed_params to avoid JSON serialization errors
|
||||
passed_params.pop("get_supported_openai_params", None)
|
||||
|
||||
def _check_valid_arg(supported_params: Optional[list]):
|
||||
if supported_params is None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue