Skip to content

Fix warning about conflicting with the protected model_ namespace#108

Open
jdkessinger wants to merge 2 commits intoopenai:mainfrom
jdkessinger:main
Open

Fix warning about conflicting with the protected model_ namespace#108
jdkessinger wants to merge 2 commits intoopenai:mainfrom
jdkessinger:main

Conversation

@jdkessinger
Copy link
Copy Markdown

@jdkessinger jdkessinger commented Mar 26, 2026

model_identity causes a warning to be emitted when this module is imported which is unkind.

.venv/lib/python3.12/site-packages/pydantic/_internal/_fields.py:132
  /home/jkessinger/repos/yolo/.venv/lib/python3.12/site-packages/pydantic/_internal/_fields.py:132: UserWarning: Field "model_identity" in SystemContent has conflict with protected namespace "model_".
  
  You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
    warnings.warn(

Fixes #109

…odel_ namespace.

```
.venv/lib/python3.12/site-packages/pydantic/_internal/_fields.py:132
  /home/jkessinger/repos/yolo/.venv/lib/python3.12/site-packages/pydantic/_internal/_fields.py:132: UserWarning: Field "model_identity" in SystemContent has conflict with protected namespace "model_".
  
  You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
    warnings.warn(
```
It's not DictConfig. That's omegaconf.
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.

Python warnings.warn log spam Python log spam when importing openai_harmony.

1 participant