fix/feat: 修复log详情前端显示异常,同时增加log删除管理和日志记录下请求文本/prompt功能#109
Merged
Conversation
Contributor
Author
变更说明本次改动主要为日志管理页补充删除能力,支持管理员直接在页面中清理日志,而不需要手动处理日志文件。 整体实现尽量沿用现有日志页结构和交互方式,以增量方式补充,没有重做日志展示逻辑。 主要改动1. 新增日志删除能力日志管理页新增日志删除功能,支持:
这样在日志数量较多时,可以更方便地清理无用日志记录。 2. 为日志补充稳定 ID为了支持删除操作,后端为日志项补充了稳定 处理方式为:
这样无需清空旧日志文件,也可以直接对历史日志执行删除。 3. 新增日志删除接口后端新增日志删除接口:
前端会基于日志 4. 日志管理页补充选择交互前端日志管理页新增选择与删除相关交互,包括:
影响范围
|
Contributor
Author
补充:日志中记录请求提示词/请求文本本次额外补充了调用日志的请求内容记录能力,在日志详情中新增 当前覆盖范围包括:
记录方式为:
同时为了避免日志内容过大:
这样在查看日志详情时,除了接口、模型、耗时、状态和返回图片外,也可以直接看到这次调用的大致请求内容,便于定位异常输入、误触发内容审核或复现问题。 |
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.
关于
前端显示未修复
修复前:
修复后: