nmsl1234/dsh-privacy-gate0

dsh-privacy-gate

隐私判断插件:云端主模型会话下自动边界敏感拦截(用户自填判断模型 API)

AI Analysis

核心用途是防止敏感信息泄露到云端。适合在云端会话中处理敏感数据的安全敏感型用户。必要条件是需自填本地或第三方判断模型 API(如 Ollama 或 OpenAI 兼容端点)。

Package
dsh-privacy-gate
Version
0.1.0
Last updated
Aug 31, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

配置

在挂载行的 config: 块填写(默认全空,填了才激活):

- id: privacy-gate
  name: dsh-privacy-gate
  config:
    enabled: true
    judge:
      provider: ollama          # ollama | openai
      baseUrl: http://127.0.0.1:11434
      model: Ornith-128k:latest
      multimodal: false         # 原生多模态模型可开启(图片附件也过判断)
      timeoutMs: 15000
      maxChars: 20000
    localProviders:             # 视为本地的主模型 provider,命中则跳过
      - ollama
  • OpenAI 兼容端点:apiKey 填 .dsh/.credentials.yamlprivacy-gate.judge.apiKey(不进配置文件)
  • localProviders 默认 ['ollama']——主模型是本地时插件不起效(全链路本就本地)