This commit implements a clean architecture where environment variables are only read, never set, ensuring compatibility with other ComfyUI packages. The changes: - Remove all code that sets global environment variables - Clean up config.yaml to remove API key placeholders - Add documentation for safe environment handling - Add comprehensive tests to verify non-polluting behavior - Ensure backward compatibility for other packages The commit includes detailed docs explaining the clean architecture and safety guarantees for package compatibility.
19 lines
355 B
Python
Executable File
19 lines
355 B
Python
Executable File
# lightrag_base.py
|
|
import torch
|
|
import numpy as np
|
|
from typing import Dict, List, Union
|
|
|
|
|
|
class LightRAGBaseNode:
|
|
def __init__(self):
|
|
self.CATEGORY = "LightRAG"
|
|
|
|
@staticmethod
|
|
def INPUT_TYPES():
|
|
return {}
|
|
|
|
RETURN_TYPES = ()
|
|
FUNCTION = "execute"
|
|
|
|
def execute(self, *args, **kwargs):
|
|
raise NotImplementedError |