kk
This commit is contained in:
@@ -142,6 +142,21 @@ class Provider(ABC):
|
||||
self.config = config or {}
|
||||
self.name = self.__class__.__name__.lower()
|
||||
|
||||
@classmethod
|
||||
def config(cls) -> List[Dict[str, Any]]:
|
||||
"""Return configuration schema for this provider.
|
||||
|
||||
Returns a list of dicts, each defining a field:
|
||||
{
|
||||
"key": "api_key",
|
||||
"label": "API Key",
|
||||
"default": "",
|
||||
"required": True,
|
||||
"secret": True
|
||||
}
|
||||
"""
|
||||
return []
|
||||
|
||||
@classmethod
|
||||
def required_config_keys(cls) -> List[str]:
|
||||
keys = getattr(cls, "REQUIRED_CONFIG_KEYS", None)
|
||||
|
||||
Reference in New Issue
Block a user