This commit is contained in:
2026-01-12 12:17:50 -08:00
parent 9981424397
commit b7b58f0e42
7 changed files with 21 additions and 254 deletions

View File

@@ -142,7 +142,12 @@ class Provider(ABC):
def __init__(self, config: Optional[Dict[str, Any]] = None):
self.config = config or {}
self.name = self.__class__.__name__.lower()
# Prioritize explicit NAME property for the instance name
self.name = str(
getattr(self, "NAME", None)
or getattr(self, "PROVIDER_NAME", None)
or self.__class__.__name__
).lower()
@classmethod
def config(cls) -> List[Dict[str, Any]]: