Skip to content

Commit

Permalink
取消限制
Browse files Browse the repository at this point in the history
  • Loading branch information
Scorpion1221 committed Dec 25, 2024
1 parent 8128aa7 commit f6268ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api/core/workflow/nodes/code/code_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ def _check_string(self, value: str | None, variable: str) -> str | None:
if not isinstance(value, str):
raise OutputValidationError(f"Output variable `{variable}` must be a string")

if len(value) > dify_config.CODE_MAX_STRING_LENGTH:
raise OutputValidationError(
f"The length of output variable `{variable}` must be"
f" less than {dify_config.CODE_MAX_STRING_LENGTH} characters"
)
# if len(value) > dify_config.CODE_MAX_STRING_LENGTH:
# raise OutputValidationError(
# f"The length of output variable `{variable}` must be"
# f" less than {dify_config.CODE_MAX_STRING_LENGTH} characters"
# )

return value.replace("\x00", "")

Expand Down

0 comments on commit f6268ae

Please sign in to comment.