mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-15 14:38:19 +08:00

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
|