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

Disable protected namespace warning #1006

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Conversation

VipulMascarenhas
Copy link
Member

Description

  • Disable protected_namespaces in Config to avoid printing a warning message for parameter starting with model_.

Before the fix:

> ads aqua model list
INFO:ads.common:Using 'api_key' authentication.
WARNING:py.warnings:/Users/user/miniconda3/envs/ads-aqua-v38/lib/python3.8/site-packages/pydantic/_internal/_fields.py:160: UserWarning: Field "model_parameters" has conflict with protected namespace "model_".

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

{
    "compartment_id": "ocid1.compartment.oc1..<ocid>",
    "icon": "",
    ...

After the fix:

> ads aqua model list
INFO:ads.common:Using 'api_key' authentication.
{
    "compartment_id": "ocid1.compartment.oc1..<ocid>",
    "icon": "",
    ...

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 12, 2024
Copy link

📌 Cov diff with main:

Coverage-100%

📌 Overall coverage:

Coverage-58.58%

@VipulMascarenhas VipulMascarenhas merged commit 83eb229 into main Nov 12, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants