将AI审核功能添加到地下室预约流程中#944
Open
Morgen-Kornblume wants to merge 15 commits intoYuanpei-Intelligence:developfrom
Open
将AI审核功能添加到地下室预约流程中#944Morgen-Kornblume wants to merge 15 commits intoYuanpei-Intelligence:developfrom
Morgen-Kornblume wants to merge 15 commits intoYuanpei-Intelligence:developfrom
Conversation
Collaborator
Morgen-Kornblume
commented
Sep 3, 2025
- 地下室预约事由将可以由AI进行审核
- 目前仅支持 Ollama API 和 GLM API 的调用
- config 更新了 AI 审核功能控制,默认为关闭
feat(ai-inspection): 接入HTTP审核API,返回合规/不合规并附带理由
整合了 ollama 方法和 GLM 方法,并整合了相应的 config
Deophius
reviewed
Sep 3, 2025
Collaborator
Deophius
left a comment
There was a problem hiding this comment.
是不是还需要考虑被用户玩坏的可能性,搞个 rate limiting 之类的
- config_template.json 中添加了 GLM API 超时设定选项 - 新建了数据库中 AI 审核历史记录条目,和相应管理页面条目,可供反查/记录用户之前调用的时间和频次,防止刷接口 - 新增了API出现错误时记入日志以及微信通知 debug_stus 的功能(微信部分待测试) AI 安全部分仍有待于更加广泛的和持久的测试,尽量减少被人喂毒输出奇奇怪怪东西的可能性
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.