Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Suppress pydantic warning over model_id field in DeployedModel #409

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

jeffreyftang
Copy link
Contributor

@jeffreyftang jeffreyftang commented Apr 11, 2024

Otherwise you get

UserWarning: Field "model_id" has conflict with protected namespace "model_".

You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(

@jeffreyftang jeffreyftang merged commit 63e38b5 into main Apr 11, 2024
1 check passed
@jeffreyftang jeffreyftang deleted the suppress-pydantic-namespace-warning branch April 11, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants