Remove storage class method check
This commit is contained in:
parent
0e660d4000
commit
14fd89c168
1 changed files with 0 additions and 15 deletions
|
|
@ -317,21 +317,6 @@ class LightRAG:
|
||||||
f"Compatible implementations are: {', '.join(storage_info['implementations'])}"
|
f"Compatible implementations are: {', '.join(storage_info['implementations'])}"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Get storage class
|
|
||||||
storage_class = self._get_storage_class(storage_name)
|
|
||||||
|
|
||||||
# Check required methods
|
|
||||||
missing_methods = []
|
|
||||||
for method in storage_info["required_methods"]:
|
|
||||||
if not hasattr(storage_class, method):
|
|
||||||
missing_methods.append(method)
|
|
||||||
|
|
||||||
if missing_methods:
|
|
||||||
raise ValueError(
|
|
||||||
f"Storage implementation '{storage_name}' is missing required methods: "
|
|
||||||
f"{', '.join(missing_methods)}"
|
|
||||||
)
|
|
||||||
|
|
||||||
def check_storage_env_vars(self, storage_name: str) -> None:
|
def check_storage_env_vars(self, storage_name: str) -> None:
|
||||||
"""Check if all required environment variables for storage implementation exist
|
"""Check if all required environment variables for storage implementation exist
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue