qexed_content_filter
- 提交:
a40e7105530a7578ed7a19f6e2fbacef4c10f2e6 - 语言:
zh-CN - 配置文件:
config/qexed_content_filter.toml - 字段数量:
9 - 说明: qexed_content_filter.toml: 聊天内容审核引擎、词库和外部 API 设置。
粘贴或上传 TOML 后预览当前值。
| 配置项 | 类型 | 默认值 | 当前值 | 说明 | 提示 |
|---|---|---|---|---|---|
content_filter | object | 见 #content_filter | 见 #content_filter | 聊天内容审核设置 | 无 |
复杂类型详情
content_filter
- 类型
object- 默认值
- 无
- 当前值
- 粘贴或上传 TOML 后预览当前值。
- 说明
- 聊天内容审核设置
| 配置项 | 类型 | 默认值 | 当前值 | 说明 | 提示 |
|---|---|---|---|---|---|
content_filter.api_token | string | <stored in .secrets> | 粘贴或上传 TOML 后预览当前值。 | 内容审核 API Bearer token | 无 |
content_filter.api_url | string | "" | 粘贴或上传 TOML 后预览当前值。 | 外部内容审核 HTTP API 地址,服务端发送 JSON { text } | 无 |
content_filter.block_message | string | "Your message was blocked by the server content filter." | 粘贴或上传 TOML 后预览当前值。 | API 拦截聊天时发送给玩家的提示 | 无 |
content_filter.enable | boolean | false | 粘贴或上传 TOML 后预览当前值。 | 启用聊天内容审核,默认关闭 | 无 |
content_filter.engine | string | "fixed" | 粘贴或上传 TOML 后预览当前值。 | 内容审核引擎:fixed、knowledge 或 api | 无 |
content_filter.knowledge_path | string | "" | 粘贴或上传 TOML 后预览当前值。 | 敏感词知识库文件路径,每行一个词,# 开头的行会被忽略 | 无 |
content_filter.replacement | string | "***" | 粘贴或上传 TOML 后预览当前值。 | 命中敏感词后的替换文本 | 无 |
content_filter.words | array | [] | 粘贴或上传 TOML 后预览当前值。 | fixed 和 knowledge 引擎使用的内置敏感词 | 无 |