mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 18:09:21 +08:00
fix: handle list content type in Parameter Extraction node (#30070)
This commit is contained in:
@@ -281,7 +281,7 @@ class ParameterExtractorNode(Node[ParameterExtractorNodeData]):
|
||||
|
||||
# handle invoke result
|
||||
|
||||
text = invoke_result.message.content or ""
|
||||
text = invoke_result.message.get_text_content()
|
||||
if not isinstance(text, str):
|
||||
raise InvalidTextContentTypeError(f"Invalid text content type: {type(text)}. Expected str.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user