fix: 修复 Antigravity 账号状态假失败与用量401#617
Closed
cagedbird043 wants to merge 1 commit intoWei-Shaw:mainfrom
Closed
Conversation
Owner
|
已修复。 |
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.
变更说明
access_token,避免仅使用过期 token 导致fetchAvailableModels返回 401。access_token或refresh_token即允许拉取用量,不再因为旧状态误判。status=error的 Antigravity 账号参与刷新;token refresh failed / invalid_client错误状态;问题背景
在本地验证中,部分 Antigravity 账号出现“账号可用但后台显示 token refresh failed”,并且用量窗口需要删除账号重新认证后才恢复。根因是旧错误状态残留 + 用量接口未在请求前进行 token 修复。
验证
GET /api/v1/admin/accounts/:id/usage从 500/401 恢复为 200。