自检
- 仅用于提交 bug 报告,如果您想提问,请前往 Discussions 。
- 我已在 search for existing issues 中搜索现有问题,包括已关闭的问题。
- 我确认我使用英文提交此报告(我已阅读并同意 Language Policy )。
- 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- 请不要修改此模板 :) 并填写所有必需的字段。
Dify 版本
0.6.11
云或自托管
自托管(Docker),自托管(源代码)
重现步骤
根据参考链接中的文档配置了基于 Custom Modulation 的自定义调制,但它不起作用 https://docs.dify.ai/guides/extension/code-based-extension/moderation
我在里面添加了一个 builtin 文件,并在其中写入了一个4,因为如果不创建 builtin 文件,api-core/extension/extensible. py 文件中位置Map变量 position_map 的 Cloud_Service 值将为 None #3981 。这是相同的问题,但没有解决方案。
✔️ 预期行为
可以加载 Cloud_Service 扩展
❌ 实际行为
无法加载扩展
1条答案
按热度按时间dtcbnfnu1#
要解决在Dify版本0.6.11的自托管Docker设置中自定义内容审核扩展不加载的问题,请确保您已按照文档中概述的所有步骤正确执行。以下是您需要验证的关键步骤:
api/core/moderation
下正确初始化了目录结构,如下所示:schema.json
文件正确定义了必要的前端组件规范。cloud_service.py
文件包含正确的实现类和必要的方法。Cloud Service
内容审核扩展类型是否正确加载。验证所有容器是否成功运行:
这应该显示核心服务(api、worker、web)及其依赖项(weaviate、db、redis、nginx)的状态。
如果您遵循了所有这些步骤,问题仍然存在,那么可能还有其他未在提供的文档中覆盖的底层问题。