Closed majestichou closed 3 weeks ago
The issue you're experiencing with the ComfyUI tool not processing prompt words containing double quotation marks or carriage returns might be related to how the input is parsed or handled within the tool. Unfortunately, I couldn't find specific information on how ComfyUI handles special characters like double quotation marks and carriage returns. However, here are a few general suggestions that might help:
Escape Special Characters: Try escaping double quotation marks in your prompt by using a backslash (\"
). This might help if the issue is related to JSON parsing or string handling.
Remove Carriage Returns: If possible, try to format your input without carriage returns. You can replace them with spaces or other delimiters that don't affect the meaning of your prompt.
Check Input Handling: Review the code or configuration where the input is processed to ensure that it correctly handles special characters. This might involve modifying the input parsing logic to accommodate these characters.
Update or Patch: Ensure that you are using the latest version of the ComfyUI tool, as updates might include fixes for such issues.
If these suggestions don't resolve the issue, you might need to look into the specific implementation details of the ComfyUI tool to identify where the input handling might be failing.
To continue talking to Dosu, mention @dosu.
Self Checks
Dify version
0.10.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
The ComfyUI tool is used to build an application. The yaml of this applicaiton is as follows:
When I type in the usual prompt words, for example, draw a puppy, the workflow generates the picture normally.
But when I type a prompt word with double quotation marks or carriage return line feeds, everything becomes abnormal and the app doesn't produce pictures properly.
The following is an example prompt word:
A blackboard that says "Hello World."
The tracing log is as follows:The following is another example prompt word:
The tracing log is as follows:
✔️ Expected Behavior
The ComfyUI tool can process prompt words containing double quotation marks or carriage returns.
❌ Actual Behavior
The ComfyUI tool can not process prompt words containing double quotation marks or carriage returns.