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: