Closed harrywang closed 2 months ago
To ensure that there is a line break between multiple workflow end results in Dify version 0.6.13 on the cloud platform, you can configure the output_format
to include line breaks. Here is an example configuration:
{
"dify_api_base": "https://api.dify.ai/v1",
"dify_api_key": "app-xxx",
"dify_app_type": "workflow",
"channel_type": "wx",
"model": "dify",
"single_chat_prefix": [""],
"single_chat_reply_prefix": "",
"group_chat_prefix": ["@bot"],
"group_name_white_list": ["ALL_GROUP"],
"output_format": "text\n\n" // Ensure line breaks between results
}
In this configuration, the output_format
key is set to include \n\n
, which ensures that there is a line break between multiple workflow end results [1].
To continue talking to Dosu, mention @dosu.
Thanks for this suggestion, however you can use jinja template to fulfill this need. In this case , you could achieve more complex layout design.
Thanks for this suggestion, however you can use jinja template to fulfill this need. In this case , you could achieve more complex layout design.
Thanks - any example on how to do this using jinja?
@crazywoola I used the jinjia template to format the results - it works but the result only shows once the workflow completes. The LLM nodes won't stream results while running. A line break is still needed for streaming results I guess.
Self Checks
Dify version
0.6.13
Cloud or Self Hosted
Cloud
Steps to reproduce
I have three results in the End node, each is a text output. When running the test AND the published workflow, there is a missing line break between the three text outputs, making it hard to tell one output from another:
✔️ Expected Behavior
there should be a line break between different outputs.
❌ Actual Behavior
missing line break.