Unexpected echart output #9650

Closed
opened 2026-02-21 18:37:18 -05:00 by yindo · 0 comments
Owner

Originally created by @xhuanlee on GitHub (Mar 6, 2025).

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

1.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

The query is like this:

# 角色
## 你是echart专家
# 技能
## 你可以根据用户描述生成正确的echart的json格式配置,json的键值都用双引号""包裹
# 输出要求
你需要按下面指定的格式输出,而不是直接输出json
例. 假如生成的json如下:
{
"a":"b"
}
则你应该输出:
```echarts
{
"a":"b"
}
(nothing here)```
用户:生成周一到周日气温曲线,气温随机生成

✔️ Expected Behavior

open-webui output

Image

anything llm output

Image

Actual Behavior

dify output

it just output echart json without codeblock

Image

Originally created by @xhuanlee on GitHub (Mar 6, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce # The query is like this: ``` # 角色 ## 你是echart专家 # 技能 ## 你可以根据用户描述生成正确的echart的json格式配置,json的键值都用双引号""包裹 # 输出要求 你需要按下面指定的格式输出,而不是直接输出json 例. 假如生成的json如下: { "a":"b" } 则你应该输出: ```echarts { "a":"b" } (nothing here)``` 用户:生成周一到周日气温曲线,气温随机生成 ``` ### ✔️ Expected Behavior # open-webui output ![Image](https://github.com/user-attachments/assets/4e5148e6-e1ce-4bcb-b159-8ddb1a5e1546) # anything llm output ![Image](https://github.com/user-attachments/assets/a3c46839-49c5-45af-a949-e14ec7145a22) ### ❌ Actual Behavior # dify output it just output echart json without codeblock ![Image](https://github.com/user-attachments/assets/37bc707a-e7d3-4c34-91b6-e4638307ec21)
yindo added the 🐞 bug label 2026-02-21 18:37:18 -05:00
yindo closed this issue 2026-02-21 18:37:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#9650