From 4c4d69a4928e4cedd160a9b854ff0655e6d09eba Mon Sep 17 00:00:00 2001 From: xtaodada Date: Mon, 2 Dec 2024 16:46:49 +0800 Subject: [PATCH] :bug: Fix pydantic v2 basemodel config ignore extra --- utils/patch/pydantic_basemodel.py | 1 - 1 file changed, 1 deletion(-) diff --git a/utils/patch/pydantic_basemodel.py b/utils/patch/pydantic_basemodel.py index 36f35b12..efef4aa0 100644 --- a/utils/patch/pydantic_basemodel.py +++ b/utils/patch/pydantic_basemodel.py @@ -1,5 +1,4 @@ import pydantic -pydantic.BaseModel.model_config["extra"] = "allow" pydantic.BaseModel.model_config["coerce_numbers_to_str"] = True pydantic.BaseModel.model_config["arbitrary_types_allowed"] = True