mirror of
https://github.com/langgenius/dify-docs-archived.git
synced 2026-07-21 09:55:25 -04:00
app.moderation.input 扩展点 ,当flagged为false时,返回数据格式问题 #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @anyfeng on GitHub (Apr 15, 2024).
@dosubot[bot] commented on GitHub (Apr 15, 2024):
When the
flaggedparameter is set to true in theapp.moderation.inputextension point, the format of the returned data depends on the specifiedaction. Foractionset todirect_output, the format should be:This indicates a direct response to the violation. If the
actionisoverrided, the format changes to:Here,
inputscontain the variables to be overridden, andqueryis the new query. This setup allows for a customized response based on the moderation outcome.Sources
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.
@anyfeng commented on GitHub (Apr 15, 2024):
sorry, i made a mistake;doc has that,but when flagged is false, the doc not displayed
@anyfeng commented on GitHub (Apr 15, 2024):
this is my api result
