diff --git a/api/core/tools/custom_tool/tool.py b/api/core/tools/custom_tool/tool.py index 13dd2114d3..34d0f5c622 100644 --- a/api/core/tools/custom_tool/tool.py +++ b/api/core/tools/custom_tool/tool.py @@ -396,6 +396,10 @@ class ApiTool(Tool): # assemble invoke message based on response type if parsed_response.is_json and isinstance(parsed_response.content, dict): yield self.create_json_message(parsed_response.content) + + # FIXES: https://github.com/langgenius/dify/pull/23456#issuecomment-3182413088 + # We need never break the original flows + yield self.create_text_message(response.text) else: # Convert to string if needed and create text message text_response = (