Skip to content

Commit

Permalink
suppress warnings from protected namespaces on embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
ccurme committed Sep 4, 2024
1 parent bf7d2a0 commit 7ad4259
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def __init__(self, **kwargs: Any):

model_config = ConfigDict(
extra="forbid",
protected_namespaces=(),
)

def embed_documents(self, texts: List[str]) -> List[List[float]]:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class HuggingFaceEndpointEmbeddings(BaseModel, Embeddings):

model_config = ConfigDict(
extra="forbid",
protected_namespaces=(),
)

@model_validator(mode="after")
Expand Down

0 comments on commit 7ad4259

Please sign in to comment.