DBGPT 保存工作流时报错 arbitrary_types_allowed=True

DBGPT 保存工作流时报错:

ERROR common_exception_handler catch Exception: success=False err_code='E0003' err_msg="Unable to generate pydantic-core schema for <class 'dbgpt.core.awel.dag.base.DAG'>. Set arbitrary_types_allowed=True in the model_config to ignore this error or implement __get_pydantic_core_schema__ on your type to fully support it.\n\nIf you got this error by calling handler() within __get_pydantic_core_schema__ then you likely need to call handler.generate_schema(<some type>) since we do not call __get_pydantic_core_schema__ on <some type> otherwise to avoid infinite recursion.\n\nFor further information visit https://errors.pydantic.dev/2.9/u/schema-for-unknown-type" data=None

解决:

bash 复制代码
pip install fastapi==0.111.0 
相关推荐
爬山算法几秒前
MongoDB(1)什么是MongoDB?
数据库·mongodb
Nandeska6 分钟前
17、MySQL InnoDB ReplicaSet
数据库·mysql
AI_56786 分钟前
SQL性能优化全景指南:从量子执行计划到自适应索引的终极实践
数据库·人工智能·学习·adb
数据知道36 分钟前
PostgreSQL 性能优化:分区表实战
数据库·postgresql·性能优化
静听山水1 小时前
StarRocks表模型详解
数据库
静听山水1 小时前
Redis核心数据结构-Set
数据结构·数据库·redis
数研小生1 小时前
亚马逊商品列表API详解
前端·数据库·python·pandas
洛豳枭薰1 小时前
MySQL 并行复制
数据库·mysql
无尽的沉默1 小时前
Redis下载安装
数据库·redis·缓存
czlczl200209251 小时前
增删改查时如何提高Mysql与Redis的一致性
数据库·redis·mysql