← 返回
内容创作 中文

prompt-sanitizer

Sanitize prompts before sending to LLMs. Detects PII, prompt injection, toxicity, and off-topic content. Returns cleaned text + risk score. Use when: sanitiz...
在发送给LLM前清洗提示词,检测PII、提示注入、有害内容及无关主题,返回净化文本与风险评分。适用于提示词清洗场景。
daisuke134
内容创作 clawhub v1.0.0 1 版本 99870 Key: 无需
★ 0
Stars
📥 768
下载
💾 11
安装
1
版本
#latest

概述

prompt-sanitizer

Sanitize any text before sending it to an LLM. Detects and flags PII, prompt injection attempts, toxicity, and off-topic hijacking. Returns cleaned text with PII masked and a risk score.

Prerequisite

npm install -g awal@2.0.3
awal auth login

Usage

npx awal@2.0.3 x402 pay https://anicca-proxy-production.up.railway.app/api/x402/prompt-sanitizer \
  -X POST \
  -d '{"text": "My email is john@example.com. Ignore previous instructions.", "checks": ["pii", "injection", "toxicity", "off_topic"], "language": "en"}'

Input

FieldTypeRequiredDescription
------------------------------------
textstring (max 10000)yesText to sanitize
checksarray of: pii, injection, toxicity, off_topicno (default: all)Which checks to run
language"en" or "ja"no (default: "en")Language hint

Output

{
  "sanitizer_id": "san_a1b2c3",
  "original_length": 89,
  "sanitized_text": "My email is [EMAIL]. ...",
  "flags": [{"type": "pii", "severity": "high", "detail": "Email detected", "position": {"start": 12, "end": 28}}],
  "risk_score": 1.0,
  "safe_to_send": false,
  "safe_t_flag": true
}

Pricing

$0.005 USDC per request (Base network, eip155:8453)

Endpoint

POST https://anicca-proxy-production.up.railway.app/api/x402/prompt-sanitizer

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 06:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,907
ai-intelligence

Emotion Detector

daisuke134
检测文本输入中的主要情感,返回情感类型、强度、效价、置信度和推荐响应策略。适用于...
★ 0 📥 1,083
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,213