fix: DuckDuckGo image search tool error (#5606)
This commit is contained in:
parent
43335b5c87
commit
b8926ea267
8 changed files with 26 additions and 16 deletions
|
|
@ -167,8 +167,11 @@ class MessageCycleManage:
|
|||
extension = '.bin'
|
||||
else:
|
||||
extension = '.bin'
|
||||
# add sign url
|
||||
url = ToolFileManager.sign_file(tool_file_id=tool_file_id, extension=extension)
|
||||
# add sign url to local file
|
||||
if message_file.url.startswith('http'):
|
||||
url = message_file.url
|
||||
else:
|
||||
url = ToolFileManager.sign_file(tool_file_id=tool_file_id, extension=extension)
|
||||
|
||||
return MessageFileStreamResponse(
|
||||
task_id=self._application_generate_entity.task_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue