mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
ba5f8afaa8
Co-authored-by: Nicolas <nicolascamara29@gmail.com> Co-authored-by: chenhe <guchenhe@gmail.com> Co-authored-by: takatost <takatost@gmail.com>
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
|