mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-27 14:26:48 +00:00
openai[patch]: set protected namespaces on embeddings (#26155)
This commit is contained in:
@@ -264,7 +264,9 @@ class OpenAIEmbeddings(BaseModel, Embeddings):
|
|||||||
"""Whether to check the token length of inputs and automatically split inputs
|
"""Whether to check the token length of inputs and automatically split inputs
|
||||||
longer than embedding_ctx_length."""
|
longer than embedding_ctx_length."""
|
||||||
|
|
||||||
model_config = ConfigDict(extra="forbid", populate_by_name=True)
|
model_config = ConfigDict(
|
||||||
|
extra="forbid", populate_by_name=True, protected_namespaces=()
|
||||||
|
)
|
||||||
|
|
||||||
@model_validator(mode="before")
|
@model_validator(mode="before")
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Reference in New Issue
Block a user