跳转到内容
本站为社区维护的非官方中文翻译,与 Cloudflare, Inc. 无关联。本站不提供账户登录,请勿在任何非官方站点输入您的 Cloudflare 账户信息。官方文档:developers.cloudflare.com

cf.llm.prompt.custom_topic_categories

cf.llm.prompt.custom_topic_categoriesMap<Number>

请求中 LLM 提示词的自定义主题标签到相关性评分(1–99)的映射。

评分越低,表示提示词与该主题越相关。仅在配置了自定义主题时填充。

需要 Cloudflare Enterprise 计划。您还必须启用 AI Security for Apps。

用法示例:

# Matches requests where the prompt is highly relevant to the "competitors" custom topic:
(cf.llm.prompt.custom_topic_categories["competitors"] lt 30)
类别:
  • Request

这篇文档对您有帮助吗?