mirror of
https://github.com/langgenius/dify.git
synced 2025-07-04 07:34:51 +00:00
11 lines
238 B
Python
11 lines
238 B
Python
![]() |
from abc import ABC, abstractmethod
|
||
|
|
||
|
|
||
|
class ApiKeyAuthBase(ABC):
|
||
|
def __init__(self, credentials: dict):
|
||
|
self.credentials = credentials
|
||
|
|
||
|
@abstractmethod
|
||
|
def validate_credentials(self):
|
||
|
raise NotImplementedError
|