langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
46.76k stars 6.61k forks source link

Suggestion to Enable Conversation Log Viewing for Empty String Responses and Model Execution Exceptions #8758

Open neotize opened 3 days ago

neotize commented 3 days ago

Self Checks

1. Is this request related to a challenge you're experiencing? Tell me about your story.

It is suggested to support viewing the conversation logs in scenarios where the LLM replies with an empty string or when an exception occurs during LLM run execution. In some cases, such as when the LLM replies with an empty string after multiple 'goodbye' exchanges to end the conversation (as in the example), the logs are not viewable on the page, making it impossible to understand the details of each step.

2. Additional context or comments

{"event": "message", "task_id": "bc380e64-97e4-45a3-9c23-e1461e95098f", "id": "898c2daf-d2fa-408f-82d6-41464808053f", "message_id": "898c2daf-d2fa-408f-82d6-41464808053f", "conversation_id": "acd514bd-0383-4164-b34d-471d1f59951a", "mode": "advanced-chat", "answer": "", "metadata": {}, "created_at": 1727251867} 下载

3. Can you help us with this feature?

iamjoel commented 3 days ago

We have changed a lot of chat codes in next coming feature. To avoid code conflicts, we'll solve this issus after the feature is merged into main.