remove protected namespaces

This commit is contained in:
ayush chaurasia
2024-04-16 09:51:08 +05:30
parent 3ebd561fd9
commit ffbb104648

View File

@@ -3,7 +3,7 @@ import re
from functools import cached_property
from typing import Optional
from pydantic import BaseModel
from pydantic import BaseModel, config
from ...util import attempt_import_or_raise
from ..utils import api_key_not_found_help
@@ -15,10 +15,12 @@ class BaseLLM(BaseModel):
Base class for Language Model based Embedding Functions. This class is
loosely desined rn, and will be updated as the usage gets clearer.
"""
class Config:
protected_namespaces = () # Disable protected namespace check
model_name: str
model_kwargs: dict = {}
@cached_property
def _client():
"""