这个功能有问题:回答结束后系统会给出 3 个建议 #1116

Closed
opened 2026-02-21 17:30:03 -05:00 by yindo · 2 comments
Owner

Originally created by @upseem on GitHub (Feb 27, 2024).

Self Checks

  • 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).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.5.6

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

api/core/generator/llm_generator.py
这个文件第80行 questions = output_parser.parse(response.message.content)
这个解析有问题,返回的是一个json型字符串,你这个解析有时候能解析成功,有时候会失败,我尝试修改了一下就可以了,
questions = json.loads(response.message.content)
直接将output_parser.parse 改成json.loads就解决了

✔️ Expected Behavior

返回三个问题

Actual Behavior

Originally created by @upseem on GitHub (Feb 27, 2024). ### Self Checks - [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] Pleas do not modify this template :) and fill in all the required fields. ### Dify version 0.5.6 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce api/core/generator/llm_generator.py 这个文件第80行 questions = output_parser.parse(response.message.content) 这个解析有问题,返回的是一个json型字符串,你这个解析有时候能解析成功,有时候会失败,我尝试修改了一下就可以了, questions = json.loads(response.message.content) 直接将output_parser.parse 改成json.loads就解决了 ### ✔️ Expected Behavior 返回三个问题 ### ❌ Actual Behavior 空
yindo added the 🐞 bug label 2026-02-21 17:30:03 -05:00
yindo closed this issue 2026-02-21 17:30:03 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 27, 2024):

🤖

It's great that you've identified a potential issue and even proposed a solution! Your contribution would be valuable to the project. Feel free to create a pull request with your proposed change so that the maintainers can review it. Thank you for your willingness to improve the project!

About Dosu

This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

@dosubot[bot] commented on GitHub (Feb 27, 2024): _🤖_ <!-- Answer --> It's great that you've identified a potential issue and even proposed a solution! Your contribution would be valuable to the project. Feel free to create a pull request with your proposed change so that the maintainers can review it. Thank you for your willingness to improve the project! <!-- Dosu Comment Footer --> <details open> <summary> #### About Dosu </summary> This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. </details>
Author
Owner

@crazywoola commented on GitHub (Feb 27, 2024):

Close due to #1542

@crazywoola commented on GitHub (Feb 27, 2024): Close due to #1542
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#1116