feat:为 usage_logs 持久化脱敏后的用户输入摘要 - #3530
Open
c99180013-sys wants to merge 1 commit into
Open
Conversation
Contributor
|
All contributors have signed the CLA. ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
|
When can this feature be launched |
muneebhashone
pushed a commit
to muneebhashone/sub2api
that referenced
this pull request
Aug 25, 2026
muneebhashone
pushed a commit
to muneebhashone/sub2api
that referenced
this pull request
Aug 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
本 PR 为
usage_logs增加了用户输入摘要的持久化能力,方便在排查请求问题、复现异常输入、定位计费或风控争议时,能够直接看到一段经过脱敏和截断处理后的输入摘要。主要改动
usage_logs新增input_excerpt字段backend/migrations/154_add_usage_log_input_excerpt.sqlmessagesinputinputpromptcontentsinput_excerpt接入 usage log 主链路落库input_excerpt暴露到 usage log DTO实现细节
使用价值
这个字段主要用于:
注意事项