mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-20 13:19:11 +08:00
fix: undefined dereference to ApiTool
This commit is contained in:
parent
430af95b53
commit
51cc63d9ce
@ -484,7 +484,11 @@ class BaseAgentRunner(AppRunner):
|
||||
files = db.session.query(MessageFile).filter(MessageFile.message_id == message.id).all()
|
||||
if not files:
|
||||
return UserPromptMessage(content=message.query)
|
||||
file_extra_config = FileUploadConfigManager.convert(message.app_model_config.to_dict())
|
||||
if message.app_model_config:
|
||||
file_extra_config = FileUploadConfigManager.convert(message.app_model_config.to_dict())
|
||||
else:
|
||||
file_extra_config = None
|
||||
|
||||
if not file_extra_config:
|
||||
return UserPromptMessage(content=message.query)
|
||||
|
||||
|
@ -151,8 +151,6 @@ class ApiToolProviderController(ToolProviderController):
|
||||
"""
|
||||
if len(self.tools) > 0:
|
||||
return self.tools
|
||||
if self.identity is None:
|
||||
return None
|
||||
|
||||
tools: list[ApiTool] = []
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user