Browse Source
Allow extra configs
Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
1 changed files with
2 additions and
2 deletions
-
osschat_insert.py
|
@ -13,13 +13,13 @@ |
|
|
# limitations under the License. |
|
|
# limitations under the License. |
|
|
|
|
|
|
|
|
from typing import Dict, Optional, Any |
|
|
from typing import Dict, Optional, Any |
|
|
from pydantic import BaseModel |
|
|
|
|
|
|
|
|
from pydantic import BaseModel, Extra |
|
|
|
|
|
|
|
|
from towhee import ops, pipe, AutoPipes, AutoConfig |
|
|
from towhee import ops, pipe, AutoPipes, AutoConfig |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AutoConfig.register |
|
|
@AutoConfig.register |
|
|
class OSSChatInsertConfig(BaseModel): |
|
|
|
|
|
|
|
|
class OSSChatInsertConfig(BaseModel, extra=Extra.allow): |
|
|
""" |
|
|
""" |
|
|
Config of pipeline |
|
|
Config of pipeline |
|
|
""" |
|
|
""" |
|
|