langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
51.81k stars 7.51k forks source link

[FeatureRequest] make the value CODE_MAX_STRING_LENGTH customizable at runtime for each workflow #9195

Open Emasoft opened 1 month ago

Emasoft commented 1 month ago

Self Checks

1. Is this request related to a challenge you're experiencing? Tell me about your story.

THE PROBLEM:
Currently the default limit for the result string from the ‘Code Block’ is ‘80000’ characters. A measly output limit of 80Kb is insufficient for most tasks. I generate documents of many megabytes regularly. Currently this is a huge limitation for Defy. Especially since this setting is regulated by an env variable, CODE_MAX_STRING_LENGTH, that require the application to be restarted to be changed.

PROPOSED SOLUTION:
To solve this issue you should make the value ‘CODE_MAX_STRING_LENGTH’ customizable at runtime for each workflow from the workflow settings. You can’t force the user to restart the application anytime. Not to mention the Cloud version of Dify that cannot be restarted by the users. Different workflows have different needs. This limit must be set by the user according to what kind of data he processes and according to the results of his tests. So the flexibility of a value editable at runtime for each workflow is a practical need.

2. Additional context or comments

No response

3. Can you help us with this feature?

dosubot[bot] commented 6 days ago

Hi, @Emasoft. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

Next Steps:

Thank you for your understanding and contribution!