mirror of
https://github.com/langgenius/dify.git
synced 2026-08-28 21:23:22 +08:00
This commit is contained in:
parent
df2478dc26
commit
4047a6bb12
@ -396,6 +396,10 @@ class ApiTool(Tool):
|
|||||||
# assemble invoke message based on response type
|
# assemble invoke message based on response type
|
||||||
if parsed_response.is_json and isinstance(parsed_response.content, dict):
|
if parsed_response.is_json and isinstance(parsed_response.content, dict):
|
||||||
yield self.create_json_message(parsed_response.content)
|
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:
|
else:
|
||||||
# Convert to string if needed and create text message
|
# Convert to string if needed and create text message
|
||||||
text_response = (
|
text_response = (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user