diff --git a/python/openai_harmony/__init__.py b/python/openai_harmony/__init__.py index c8bce8f..7a9a079 100644 --- a/python/openai_harmony/__init__.py +++ b/python/openai_harmony/__init__.py @@ -29,7 +29,7 @@ ) import re -from pydantic import BaseModel, Field +from pydantic import BaseModel, ConfigDict, Field # Re-export the low-level Rust bindings under a private name so that we can # keep the *public* namespace clean and purely Pythonic. @@ -179,6 +179,7 @@ def python() -> "ToolNamespaceConfig": class SystemContent(Content): + model_config = ConfigDict(protected_namespaces=("model_validate", "model_dump")) model_identity: Optional[str] = ( "You are ChatGPT, a large language model trained by OpenAI." )