From b984fba73f1d54e2bb094d403a884f3777da0435 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Tue, 14 May 2024 16:53:02 -0700 Subject: [PATCH] fix(types/router.py): fix arbitrary_types_allowed flag --- litellm/types/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/types/router.py b/litellm/types/router.py index 39eaf6994a3..ee6dd95c0c3 100644 --- a/litellm/types/router.py +++ b/litellm/types/router.py @@ -25,7 +25,7 @@ def get_model_config(arbitrary_types_allowed: bool = False) -> ConfigDict: else: from pydantic import Extra - model_config = ConfigDict(extra=Extra.allow) # type: ignore + model_config = ConfigDict(extra=Extra.allow, arbitrary_types_allowed=arbitrary_types_allowed) # type: ignore return model_config