tongyi plugin: Output data may contain inappropriate content #616

Closed
opened 2026-02-16 10:19:55 -05:00 by yindo · 3 comments
Owner

Originally created by @ihadu on GitHub (Sep 4, 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 Dify issues & Dify Official Plugins, 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.7.0

Plugin version

0.0.45

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

✔️ Error log

No response

Originally created by @ihadu on GitHub (Sep 4, 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 [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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.7.0 ### Plugin version 0.0.45 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce <img width="485" height="143" alt="Image" src="https://github.com/user-attachments/assets/dce037a4-969c-4715-a240-f74bcec49fc4" /> ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:19:55 -05:00
yindo closed this issue 2026-02-16 10:19:55 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 4, 2025):

Hi @ihadu! I'm Dosu and I’m helping the dify-official-plugins team.

The "Output data may contain inappropriate content" error is triggered by Dify's core content moderation system, which uses the OpenAI moderation model to check outputs for policy violations. If the output is flagged, Dify returns a preset response and a 400 error code instead of the original content. This moderation is enforced centrally in Dify, not in the Tongyi plugin itself, so plugin-specific configuration won't affect this behavior. You can review or adjust moderation settings in your Dify configuration if you want to fine-tune or disable output moderation for your self-hosted deployment. Recent updates to the Tongyi plugin (v0.0.45) improved error handling for these cases, but the moderation logic remains in Dify core, not the plugin itself. For more details on how moderation is implemented, see the Dify moderation code and recent plugin error handling changes.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosubot[bot] commented on GitHub (Sep 4, 2025): <!-- Greeting --> Hi @ihadu! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify-official-plugins team. <!-- Answer --> The "Output data may contain inappropriate content" error is triggered by Dify's core content moderation system, which uses the OpenAI moderation model to check outputs for policy violations. If the output is flagged, Dify returns a preset response and a 400 error code instead of the original content. This moderation is enforced centrally in Dify, not in the Tongyi plugin itself, so plugin-specific configuration won't affect this behavior. You can review or adjust moderation settings in your Dify configuration if you want to fine-tune or disable output moderation for your self-hosted deployment. Recent updates to the Tongyi plugin (v0.0.45) improved error handling for these cases, but the moderation logic remains in Dify core, not the plugin itself. For more details on how moderation is implemented, see the [Dify moderation code](https://github.com/langgenius/dify/blob/8d5f788f2b4a8b92ee108b10974eb1833973c72a/api/core/moderation/openai_moderation/openai_moderation.py) and [recent plugin error handling changes](https://github.com/langgenius/dify-official-plugins/pull/1636). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/b35535c1-539f-4d0a-8d0c-0cdce75006f9?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/b35535c1-539f-4d0a-8d0c-0cdce75006f9?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/b35535c1-539f-4d0a-8d0c-0cdce75006f9?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/b35535c1-539f-4d0a-8d0c-0cdce75006f9?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b35535c1-539f-4d0a-8d0c-0cdce75006f9?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/b35535c1-539f-4d0a-8d0c-0cdce75006f9?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b35535c1-539f-4d0a-8d0c-0cdce75006f9?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/1651)
Author
Owner

@ihadu commented on GitHub (Sep 4, 2025):

If possible, it would be great to support a skip_moderation parameter.
qwen-long already allows skipping both input and output content inspection by adding the following header:

extra_headers={'X-DashScope-DataInspection': '{"input":"cip","output":"cip"}'}
@ihadu commented on GitHub (Sep 4, 2025): If possible, it would be great to support a `skip_moderation` parameter. `qwen-long` already allows skipping both input and output content inspection by adding the following header: ```python extra_headers={'X-DashScope-DataInspection': '{"input":"cip","output":"cip"}'} ```
Author
Owner

@dosubot[bot] commented on GitHub (Sep 20, 2025):

Hi, @ihadu. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported that the Tongyi plugin (v0.0.45) on self-hosted Dify (v1.7.0) sometimes produces outputs flagged by Dify's core moderation system.
  • The moderation is enforced centrally by Dify using OpenAI's moderation model, not by the plugin itself.
  • It was suggested to adjust moderation settings in Dify's configuration to address this.
  • You requested a feature to add a skip_moderation parameter similar to qwen-long's header-based option to bypass content inspection.
  • The issue remains unresolved and no further updates have been provided.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of dify-official-plugins and Dify, and if you would like to keep the discussion open.
  • Otherwise, I will automatically close this issue in 5 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Sep 20, 2025): Hi, @ihadu. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported that the Tongyi plugin (v0.0.45) on self-hosted Dify (v1.7.0) sometimes produces outputs flagged by Dify's core moderation system. - The moderation is enforced centrally by Dify using OpenAI's moderation model, not by the plugin itself. - It was suggested to adjust moderation settings in Dify's configuration to address this. - You requested a feature to add a skip_moderation parameter similar to qwen-long's header-based option to bypass content inspection. - The issue remains unresolved and no further updates have been provided. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of dify-official-plugins and Dify, and if you would like to keep the discussion open. - Otherwise, I will automatically close this issue in 5 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#616