feat: add account model overview#31
Merged
Merged
Conversation
1faa632 to
e654ab8
Compare
Owner
Author
|
客观 review 结论:未发现阻塞合并的问题。重点检查了新增 account model-overview 接口的登录态保护、API key 仅服务端使用、未知模型沿用 gpt-5.4 的价格回退、多 key retry,以及 Blog CSP 外置脚本改动。\n\n验证:GitHub validate 通过;本地 npm test 143/143 通过;临时 SQLite 浏览器验证显示未兑换回退价格表、兑换后实时显示 5 个模型。\n\n剩余风险:PR 范围包含当前工作区已有的 Blog CSP 修复和 Account Token 总览清理,范围比单纯模型总览更大,但相关测试已覆盖。 |
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.
背景
主要改动
GET /api/account/model-overview,登录后用当前账号托管 API key 探测/v1/models,失败时回退价格表。gpt-5.4的规则。js/blog-index.js与js/blog-ui-init.js,适配 CSP。验证
node --test --test-name-pattern "模型总览" test/shop-flow.test.js,3 个模型总览测试通过npm run build:cssnpm test,143 个测试全部通过codex-auto-review、gpt-5.3-codex-spark、gpt-5.4、gpt-5.4-mini、gpt-5.5。风险