Skip to content

[Feature/功能]: 加入 prompt 敏感信息预处理功能 #850

@cesaryuan

Description

@cesaryuan

Pre-submission Checklist / 提交前检查

  • I have searched the existing issues and this feature has not been requested / 我已搜索现有 issues,此功能尚未被提出
  • I have read the documentation / 我已阅读文档

Problem Statement / 问题描述

我们在使用大模型的时候,面临这样的困境。claude code 会读取本地的文件。有可能会读取到包含敏感信息的文件,比如说 .env文件,里面会包含各种 API KEY 密码等等,这些信息我们不希望被上游的渠道商读取到,那么我觉得 axonhub 就可以作为这样一个中间处理器加入 Prompt 预处理功能。基于用户定义的正则替换方法,或者内置一些正则替换的规则,识别 prompt 章当中存在的敏感信息,从而做到打码处理。

Proposed Solution / 期望方案

预定义规则以及思路可以参考这个项目:https://github.com/AiToByte/SafeMask

Alternatives Considered / 备选方案

No response

Feature Category / 功能分类

Authentication / Security / 认证 / 安全

Additional Context / 其他补充信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions