You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @hjlarry, I'm here to help you with any bugs, questions, or contributions while waiting for a human maintainer. Let me know how I can assist you!
The issues you've encountered with the input fields in the tool panel can be addressed as follows:
Secret Input Field Not Masking Text:
Ensure that the type for the secret input field is set to secret-input in the YAML configuration. This should mask the input text on the frontend and encrypt it on the backend [1].
Number Input Field Issues:
Entering 0 Not Displaying: This might be due to the input field not handling the value 0 correctly. Ensure that the input field component properly handles and displays 0.
Displaying .23 Instead of 0.23: This could be due to improper handling of number formatting. Ensure that the input field component correctly formats and displays numbers.
Default Value 0 Not Found: Ensure that the default value is correctly set and handled in the validate_parameters method. The default value should be assigned if the parameter is not set [2].
Select Field Issues:
Submitting First Value After Clearing: This might be due to the state not being reset correctly. Ensure that the state is properly cleared when the clear button is clicked.
Boolean Field Issues:
Required Star Not Displayed: Ensure that the required attribute is correctly set and displayed for boolean fields.
Default Value Handling: Ensure that the default value for boolean fields is correctly handled. If no default value is set, the field should not default to False unless explicitly specified.
Error on Selecting False: Ensure that the boolean field correctly handles the False value and does not raise an error when it is selected [1].
General Validation and State Management:
Ensure that the validation mechanisms for each input field type are correctly implemented and configured. This includes handling default values, required fields, and proper state management [1][2].
By addressing these issues, you should be able to resolve the problems with the input fields in the tool panel. If you need further assistance or specific code examples, feel free to ask!
Self Checks
Dify version
0.6.12-fix1
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
when you develop a tool, add this config in the yaml file:
you will get some input fields like this:

the problem is:
0
, it will not display; if you enter the0.23
, it will display.23
tool parameter test_number not found in tool config
False
is selected in the page. when you click run btn, it will raiseTest Boolean 不能为空
False
, it will raisetool parameter test_boolean not found in tool config
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
The text was updated successfully, but these errors were encountered: