mirror of
https://github.com/openai/codex.git
synced 2026-09-11 20:36:49 +00:00
## What changed - Accept optional `account/rateLimits/read` capabilities for Luna Reserve support and lightweight background polling while preserving omitted and `null` params. - Forward the Luna Reserve capability only for eligible ChatGPT sessions, and let lightweight polls skip the separate reset-credit detail request. - Return the backend's `ordinaryUsageAllowed` decision only when its account and user identity match the active session. ## Testing - Cover capability defaults, eligible and restricted authentication modes, lightweight polling, identity filtering, and backend permission handling. GitOrigin-RevId: f407a3ae1e70e411fdf245f072a16e453f59cd87
28 lines
1002 B
JSON
Generated
28 lines
1002 B
JSON
Generated
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/GetAccountRateLimitsParams"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"definitions": {
|
|
"GetAccountRateLimitsParams": {
|
|
"description": "Usage-read capabilities of the requesting client, never inferred from its experiment arm.",
|
|
"properties": {
|
|
"excludeResetCreditDetails": {
|
|
"description": "Skip the separate reset-credit detail lookup for background usage polls. The usage response still includes the available count; omitted/false preserves detailed reads.",
|
|
"type": "boolean"
|
|
},
|
|
"supportsLunaReserve": {
|
|
"description": "The client supports automatic Luna Reserve fallback. For eligible ChatGPT CLI users, allow the backend to record experiment exposure after ordinary usage is blocked.",
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
"title": "Nullable_GetAccountRateLimitsParams"
|
|
} |