mirror of
https://github.com/langgenius/dify.git
synced 2026-05-02 08:28:03 +08:00
r2
This commit is contained in:
@ -20,7 +20,7 @@ class DatasourcePlugin(ABC):
|
||||
self.runtime = runtime
|
||||
|
||||
@abstractmethod
|
||||
def datasource_provider_type(self) -> DatasourceProviderType:
|
||||
def datasource_provider_type(self) -> str:
|
||||
"""
|
||||
returns the type of the datasource provider
|
||||
"""
|
||||
|
||||
@ -9,10 +9,10 @@ from core.tools.errors import ToolProviderCredentialValidationError
|
||||
|
||||
|
||||
class DatasourcePluginProviderController(ABC):
|
||||
entity: DatasourceProviderEntityWithPlugin
|
||||
entity: DatasourceProviderEntityWithPlugin | None
|
||||
tenant_id: str
|
||||
|
||||
def __init__(self, entity: DatasourceProviderEntityWithPlugin, tenant_id: str) -> None:
|
||||
def __init__(self, entity: DatasourceProviderEntityWithPlugin | None, tenant_id: str) -> None:
|
||||
self.entity = entity
|
||||
self.tenant_id = tenant_id
|
||||
|
||||
|
||||
Reference in New Issue
Block a user