From ad7e289802a6868c8df895103045f63666dcfd90 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Tue, 14 May 2024 16:56:07 -0700 Subject: [PATCH] fix(types/router.py): fix python3.8 typing issue --- 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 ee6dd95c0c3..0cc84d8c300 100644 --- a/litellm/types/router.py +++ b/litellm/types/router.py @@ -200,7 +200,7 @@ class GenericLiteLLMParams(BaseModel): max_retries = int(max_retries) # cast to int super().__init__(max_retries=max_retries, **args, **params) - model_config = get_model_config() + model_config = get_model_config(arbitrary_types_allowed=True) if pydantic_version.startswith("1"): # pydantic v2 warns about using a Config class. # But without this, pydantic v1 will raise an error: