mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 01:18:05 +08:00
fix: uses to check if the tools are already loaded
This commit is contained in:
@ -148,7 +148,7 @@ class ApiToolProviderController(ToolProviderController):
|
||||
:param tenant_id: the tenant id
|
||||
:return: the tools
|
||||
"""
|
||||
if self.tools is not None:
|
||||
if len(self.tools) > 0:
|
||||
return self.tools
|
||||
|
||||
tools: list[ApiTool] = []
|
||||
|
||||
Reference in New Issue
Block a user