Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input text variable size can't be more than 256 #11853

Closed
5 tasks done
wy96f opened this issue Dec 19, 2024 · 1 comment
Closed
5 tasks done

Input text variable size can't be more than 256 #11853

wy96f opened this issue Dec 19, 2024 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@wy96f
Copy link
Contributor

wy96f commented Dec 19, 2024

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

latest

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. create a workflow
  2. add a text input

✔️ Expected Behavior

should be more thean 256

❌ Actual Behavior

Input text variable size can't be more than 256 in a workflow

@dosubot dosubot bot added the 🐞 bug Something isn't working label Dec 19, 2024
Copy link

dosubot bot commented Dec 19, 2024

The input text variable size is limited to 256 characters because it is defined as a "Short text" input type, which is designed for brief user input [1]. If you want to allow more than 256 characters, you can use the "Paragraph" input type, which allows for longer content without a specified character limit [1].

If you need to change the character limit for the "Short text" input type in a self-hosted setup, you can modify the MAX_VARIABLE_SIZE environment variable in the docker-compose.yaml file. The default value is set to 204800, which is larger than 256 characters. You can increase this value to suit your needs:

MAX_VARIABLE_SIZE: ${MAX_VARIABLE_SIZE:-204800}

Update the value of MAX_VARIABLE_SIZE to your desired limit [2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@wy96f wy96f closed this as completed Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant