mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-03 01:40:21 +08:00
Add provider key cycle stats reset handling
This commit is contained in:
@@ -209,6 +209,18 @@ export async function clearOAuthInvalid(keyId: string): Promise<{ message: strin
|
||||
return response.data
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置 Key 的当前周期统计起点(Codex 号池)
|
||||
*/
|
||||
export async function resetProviderKeyCycleStats(keyId: string): Promise<{
|
||||
message: string
|
||||
reset_at: number
|
||||
windows: number
|
||||
}> {
|
||||
const response = await client.post(`/api/admin/endpoints/keys/${keyId}/reset-cycle-stats`)
|
||||
return response.data
|
||||
}
|
||||
|
||||
/**
|
||||
* 刷新 Provider 的所有 Key 限额信息(Codex / Antigravity)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user