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

fix: silence pydantic warning about protected namespace #1116

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion memgpt/models/pydantic_models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import List, Optional, Dict, Literal
from pydantic import BaseModel, Field, Json
from pydantic import BaseModel, Field, Json, ConfigDict
import uuid
from datetime import datetime
from sqlmodel import Field, SQLModel
Expand All @@ -15,6 +15,9 @@ class LLMConfigModel(BaseModel):
model_wrapper: Optional[str] = None
context_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"
Expand Down
Loading