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

Python client: Pydantic protected namespace "model_" #2722

Open
4 tasks
Simon-Stone opened this issue Nov 4, 2024 · 0 comments
Open
4 tasks

Python client: Pydantic protected namespace "model_" #2722

Simon-Stone opened this issue Nov 4, 2024 · 0 comments

Comments

@Simon-Stone
Copy link

System Info

not applicable

Information

  • Docker
  • The CLI directly

Tasks

  • An officially supported command
  • My own modifications

Reproduction

When instantiating DeployedModel, a warning is raised:

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(

The code to avoid this warning is already in the codebase, but has not been published, yet.

Is there a timeline for a 0.7.1 release that will include this fix?

Expected behavior

Instantiating DeployedModel does not raise any warnings.

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

No branches or pull requests

1 participant