After enabling Streaming Mode as Asynchronous Modified Filter in Azure OpenAI, the returned results will throw an error. #2108

Closed
opened 2026-02-21 17:41:45 -05:00 by yindo · 0 comments
Owner

Originally created by @sagarey on GitHub (Apr 11, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a quesion, 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).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.6.2

Cloud or Self Hosted

Cloud, Self Hosted (Docker)

Steps to reproduce

Azure OpenAI's default content filter affects streaming response, returning data in paragraphs rather than by characters. Therefore, I adjusted the streaming mode in the custom content filter feature of Azure AI Studio to Asynchronous Modified Filter, make the streaming response work as expected, which triggered this bug.
image

✔️ Expected Behavior

image

Actual Behavior

image
image
Debugging page and the app publishing both have issues. The chatbox streams the results as expected, but finally throws an error and clears the frontend display. I reproduced this problem in local Docker

Originally created by @sagarey on GitHub (Apr 11, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a quesion, 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] Pleas do not modify this template :) and fill in all the required fields. ### Dify version 0.6.2 ### Cloud or Self Hosted Cloud, Self Hosted (Docker) ### Steps to reproduce Azure OpenAI's default content filter affects streaming response, returning data in paragraphs rather than by characters. Therefore, I adjusted the streaming mode in the custom content filter feature of Azure AI Studio to Asynchronous Modified Filter, make the streaming response work as expected, which triggered this bug. ![image](https://github.com/langgenius/dify/assets/5120456/aaeef1cd-a9c7-45ec-b443-ad83144f5ef9) ### ✔️ Expected Behavior ![image](https://github.com/langgenius/dify/assets/5120456/e9e584a0-52d2-4ea7-9f29-e7ebfc9abafe) ### ❌ Actual Behavior ![image](https://github.com/langgenius/dify/assets/5120456/012d48ef-1e18-4e4f-a896-58983e2589dd) ![image](https://github.com/langgenius/dify/assets/5120456/b9c99610-7ecd-42de-a691-f6398859c5d8) Debugging page and the app publishing both have issues. The chatbox streams the results as expected, but finally throws an error and clears the frontend display. I reproduced this problem in local Docker
yindo added the 🐞 bug label 2026-02-21 17:41:45 -05:00
yindo closed this issue 2026-02-21 17:41:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#2108