Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: silence pydantic warning about protected namespace (#1116)
Charles Packer691c3c165845
diff --git a/memgpt/models/pydantic_models.py b/memgpt/models/pydantic_models.pyindex 32f9317d8..3ee7d7717 100644--- a/memgpt/models/pydantic_models.py+++ b/memgpt/models/pydantic_models.py@@ -1,5 +1,5 @@from typing import List, Optional, Dict, Literal-from pydantic import BaseModel, Field, Json+from pydantic import BaseModel, Field, Json, ConfigDictimport uuidfrom datetime import datetimefrom sqlmodel import Field, SQLModel@@ -15,6 +15,9 @@ class LLMConfigModel(BaseModel):model_wrapper: Optional[str] = Nonecontext_window: Optional[int] = None+ # FIXME hack to silence pydantic protected namespace warning+ model_config = ConfigDict(protected_namespaces=())+class EmbeddingConfigModel(BaseModel):embedding_endpoint_type: Optional[str] = "openai"