mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-07 22:11:51 +00:00
community[patch]: Fix missing protected_namespaces(). (#27610)
- [x] **PR message**: - **Description:** Fixes warning messages raised due to missing `protected_namespaces` parameter in `ConfigDict`. - **Issue:** https://github.com/langchain-ai/langchain/issues/27609 - **Dependencies:** No dependencies - **Twitter handle:** @gawbul
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
from typing import Any, List, Optional
|
||||
|
||||
from langchain_core.embeddings import Embeddings
|
||||
from pydantic import BaseModel
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
|
||||
class Text2vecEmbeddings(Embeddings, BaseModel):
|
||||
@@ -33,6 +33,8 @@ class Text2vecEmbeddings(Embeddings, BaseModel):
|
||||
device: Optional[str] = None
|
||||
model: Any = None
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
*,
|
||||
|
Reference in New Issue
Block a user