Skip to content

Commit d4527de

Browse files
小调整
1 parent 418ac71 commit d4527de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/application/flow/step_node/ai_chat_step_node/impl/base_chat_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def handle_variables(self, tool_params):
453453
tool_params[k] = self.workflow_manage.generate_prompt(tool_params[k])
454454
if type(v) == dict:
455455
self.handle_variables(v)
456-
if (type(v) == list) and (type(v[0]) == str):
456+
if (type(v) == list) and len(v) > 0 and (type(v[0]) == str):
457457
tool_params[k] = self.get_reference_content(v)
458458
return tool_params
459459

0 commit comments

Comments
 (0)