You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
手动部署2.2版本,安装相关依赖后,始终提示:
pydantic.errors.PydanticUserError: model_config cannot be used as a model field name. Use model_config for model configuration.
依赖安装情况:
1、通过ubuntu中的宝塔面板部署,python版本:3.13、3.13.2均出现以上错误,查看 pydantic默认安装了2.11.1,无法安装2.4.0
2、在windows中部署,也出现以上错误。
pydantic.errors.PydanticUserError: model_config cannot be used as a model field name. Use model_config for model configuration.
For further information visit https://errors.pydantic.dev/2.11/u/model-config-invalid-field-name
FileCodeBox-2.2>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
手动部署2.2版本,安装相关依赖后,始终提示:
pydantic.errors.PydanticUserError:
model_config
cannot be used as a model field name. Usemodel_config
for model configuration.依赖安装情况:
1、通过ubuntu中的宝塔面板部署,python版本:3.13、3.13.2均出现以上错误,查看 pydantic默认安装了2.11.1,无法安装2.4.0
2、在windows中部署,也出现以上错误。
pydantic.errors.PydanticUserError:
model_config
cannot be used as a model field name. Usemodel_config
for model configuration.For further information visit https://errors.pydantic.dev/2.11/u/model-config-invalid-field-name
FileCodeBox-2.2>
Beta Was this translation helpful? Give feedback.
All reactions