Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
bug: (#7586 followup) fix config of CODE_MAX_STRING_LENGTH (#7683)
Bowen Lianga15080a1d7b4
diff --git a/api/core/workflow/nodes/code/code_node.py b/api/core/workflow/nodes/code/code_node.pyindex 17554d3db45..335991ae87c 100644--- a/api/core/workflow/nodes/code/code_node.py+++ b/api/core/workflow/nodes/code/code_node.py@@ -88,9 +88,9 @@ class CodeNode(BaseNode):else:raise ValueError(f"Output variable `{variable}` must be a string")- if len(value) > dify_config.CODE_MAX_STRING_ARRAY_LENGTH:+ if len(value) > dify_config.CODE_MAX_STRING_LENGTH:raise ValueError(f'The length of output variable `{variable}` must be'- f' less than {dify_config.CODE_MAX_STRING_ARRAY_LENGTH} characters')+ f' less than {dify_config.CODE_MAX_STRING_LENGTH} characters')return value.replace('\x00', '')