mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:28:10 +08:00
refactor: use sessionmaker in api_tools_manage_service.py (#34892)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -38,6 +38,17 @@ class ToolCredentialPolicyViolationError(ValueError):
|
||||
pass
|
||||
|
||||
|
||||
class ApiToolProviderNotFoundError(ValueError):
|
||||
error_code = "api_tool_provider_not_found"
|
||||
provider_name: str
|
||||
tenant_id: str
|
||||
|
||||
def __init__(self, provider_name: str, tenant_id: str):
|
||||
self.provider_name = provider_name
|
||||
self.tenant_id = tenant_id
|
||||
super().__init__(f"api provider {provider_name} does not exist")
|
||||
|
||||
|
||||
class WorkflowToolHumanInputNotSupportedError(BaseHTTPException):
|
||||
error_code = "workflow_tool_human_input_not_supported"
|
||||
description = "Workflow with Human Input nodes cannot be published as a workflow tool."
|
||||
|
||||
Reference in New Issue
Block a user