From 9f40ce5438ec3d12768ea760f38f0380c64c103a Mon Sep 17 00:00:00 2001 From: Jael Gu Date: Thu, 10 Aug 2023 11:52:13 +0800 Subject: [PATCH] Allow extra configs Signed-off-by: Jael Gu --- osschat_insert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osschat_insert.py b/osschat_insert.py index cb38028..92f7ccc 100644 --- a/osschat_insert.py +++ b/osschat_insert.py @@ -13,13 +13,13 @@ # limitations under the License. from typing import Dict, Optional, Any -from pydantic import BaseModel +from pydantic import BaseModel, Extra from towhee import ops, pipe, AutoPipes, AutoConfig @AutoConfig.register -class OSSChatInsertConfig(BaseModel): +class OSSChatInsertConfig(BaseModel, extra=Extra.allow): """ Config of pipeline """