feat: 增加 OpenAI Codex 余额查询和多语言明细 - #29
Merged
Merged
Conversation
Owner
|
感谢你添加的 codex 配额支持,经过简单 review,代码貌似没有大问题,我决定将该 PR 合入主线。感谢你的支持。 |
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.
变更说明
auth.json读取 OpenAI OAuth 凭据。spend_control.individual_limit,并兼容其他individual_limit位置。limit_window_seconds分别展示,避免遗漏短周期或长周期额度。reset_after_seconds、reset_at、resets_at等重置时间格式。Go 套餐显示示例
该截图展示接口实际返回单一 30 天窗口时的显示结果;插件不会人为添加接口未返回的 7 天窗口。
验证
npm run test:balancenpm run typechecknpm run buildnode --check dist/tui.jsgit diff --check注意事项
OpenAI 配额接口使用 Codex 当前使用的内部 usage API,未来接口字段变化时可能需要调整。